This commit is contained in:
不吃油炸鸡
2025-11-26 19:22:06 +08:00
parent 0fa51a923b
commit 97f015374f
8 changed files with 25 additions and 25 deletions

View File

@@ -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();
}
}

View File

@@ -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;

View File

@@ -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