1516X High Stakes 2.0
Codebase for 1516X High Stakes season
Loading...
Searching...
No Matches
status.cpp File Reference
#include "screen/status.h"
#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 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}

Variable Documentation

◆ label

lv_obj_t* label
static

Definition at line 8 of file status.cpp.