feat: add config view for lvgl.

Signed-off-by: Bo <boironic@gmail.com>
This commit is contained in:
Bo
2026-02-10 03:16:00 +08:00
committed by lvbo
parent 106fe3b5b0
commit 7918bab27d
15 changed files with 1130 additions and 2 deletions

View File

@@ -4,6 +4,7 @@
#include "esp_timer.h"
#include "driver/gpio.h"
#include "display/display.h"
#include "ui/config_screen.h"
void ESP32_Button_init(void){
gpio_reset_pin(Button_PIN1);
@@ -31,7 +32,11 @@ void Button_SINGLE_CLICK_Callback(void* btn){
struct Button *user_button = (struct Button *)btn;
if(user_button == &BUTTON1){
BOOT_KEY_State = SINGLE_CLICK;
display_cycle_backlight();
if (config_screen_is_active()) {
config_screen_scroll_down();
} else {
display_cycle_backlight();
}
}
}
void Button_DOUBLE_CLICK_Callback(void* btn){