1516X High Stakes 2.0
Codebase for 1516X High Stakes season
Loading...
Searching...
No Matches
status.cpp File Reference
#include "main.h"
#include "pros/apix.h"
#include "robot/drivetrain.h"

Go to the source code of this file.

Functions

static void slider_event_cb (lv_event_t *e)
 

Variables

static lv_obj_t * label
 

Function Documentation

◆ slider_event_cb()

static void slider_event_cb ( lv_event_t * e)
static

Definition at line 9 of file status.cpp.

9 {
10 lv_event_code_t code = lv_event_get_code(e);
11 lv_obj_t* obj = lv_event_get_current_target(e);
12
13 if (code == LV_EVENT_VALUE_CHANGED) {
14 lv_calendar_date_t date;
15 if (lv_calendar_get_pressed_date(obj, &date)) {
16 LV_LOG_USER("Clicked date: %02d.%02d.%d", date.day, date.month,
17 date.year);
18 }
19 }
20}

Variable Documentation

◆ label

lv_obj_t* label
static

Definition at line 7 of file status.cpp.