#include "screen/status.h"
#include "main.h"
#include "pros/apix.h"
#include "robot/drivetrain.h"
Go to the source code of this file.
◆ slider_event_cb()
static void slider_event_cb |
( |
lv_event_t * | e | ) |
|
|
static |
Definition at line 10 of file status.cpp.
10 {
11 lv_event_code_t code = lv_event_get_code(e);
12 lv_obj_t *obj = lv_event_get_current_target(e);
13
14 if (code == LV_EVENT_VALUE_CHANGED) {
15 lv_calendar_date_t date;
16 if (lv_calendar_get_pressed_date(obj, &date)) {
17 LV_LOG_USER("Clicked date: %02d.%02d.%d", date.day, date.month, date.year);
18 }
19 }
20}
◆ label