mirror of
https://github.com/No-Chicken/Power-Pico.git
synced 2026-04-03 13:02:36 +08:00
更新按键
This commit is contained in:
@@ -59,9 +59,11 @@ static void _chart_update_cb(lv_timer_t * timer) {
|
||||
}
|
||||
|
||||
#include "key.h"
|
||||
void ui_chart_page_key_handler(uint8_t key_id)
|
||||
void ui_chart_page_key_handler(void* key_event)
|
||||
{
|
||||
if(key_id == KEYB_NUM) {
|
||||
if(((key_event_t*)key_event)->id == KEY_ID_B &&
|
||||
((key_event_t*)key_event)->type == KEY_EVT_CLICK)
|
||||
{
|
||||
lv_lib_pm_next();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user