mirror of
https://github.com/No-Chicken/Power-Pico.git
synced 2026-04-03 13:02:36 +08:00
update
This commit is contained in:
@@ -62,7 +62,7 @@ static void _chart_update_cb(lv_timer_t * timer) {
|
||||
void ui_chart_page_key_handler(uint8_t key_id)
|
||||
{
|
||||
if(key_id == KEYB_NUM) {
|
||||
PageManager_next();
|
||||
lv_lib_pm_next();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ void ui_set_page_key_handler(uint8_t key_id)
|
||||
{
|
||||
int panel_count = sizeof(panels) / sizeof(panels[0]);
|
||||
if(key_id == KEYB_NUM) { // key boot
|
||||
PageManager_next();
|
||||
lv_lib_pm_next();
|
||||
} if (key_id == KEYL_NUM) { // key left
|
||||
lv_obj_clear_state(panels[current_panel_index], LV_STATE_CHECKED);
|
||||
current_panel_index = (current_panel_index - 1 + panel_count) % panel_count;
|
||||
|
||||
@@ -30,7 +30,7 @@ static uint8_t timecount = 0;
|
||||
void ui_main_page_key_handler(uint8_t key_id)
|
||||
{
|
||||
if(key_id == KEYB_NUM) {
|
||||
PageManager_next();
|
||||
lv_lib_pm_next();
|
||||
} else if (key_id == KEYL_NUM) {
|
||||
// rotation - 90 degrees
|
||||
// rotation – LV_DISPLAY_ROTATION_0/90/180/270
|
||||
|
||||
Reference in New Issue
Block a user