1. 按键驱动重构:GPIO中断+手动去抖 → iot_button组件(单击/双击/长按) 2. 新增key_nav按键导航管理器:上下文状态机 + Set界面焦点蓝色边框高亮 3. 移除所有触摸手势/点击事件(ScreenHome/ScreenImg/ScreenSet) 4. 应援灯颜色切换优化:DISPOFF→直接写GRAM→DISPON,消除分band刷新 5. 亮度调节按键化:BOOT +10% / KEY -10% / KEY长按退出 6. 休眠管理适配:按键唤醒统一由key_nav处理 7. 新增迁移总结文档 docs/touch-to-button-migration.md Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
12 lines
409 B
C
12 lines
409 B
C
#include <stdbool.h>
|
||
#include "esp_lvgl_port.h"
|
||
#include "esp_lcd_st77916.h"
|
||
|
||
|
||
void lcd_init();
|
||
void lvgl_lcd_init();
|
||
void touch_init();
|
||
void get_touch(uint16_t* touchx,uint16_t* touchy);
|
||
void lcd_clear_screen_black(void); // 清空LCD GRAM为黑色
|
||
void lcd_fill_color(uint32_t color_rgb); // 填充LCD GRAM为指定颜色(同步阻塞)
|
||
void lcd_disp_on_off(bool on_off); // LCD显示开关
|