diff --git a/examples/display_demo/ui.cpp b/examples/display_demo/ui.cpp index 547b881..6a1e5a6 100644 --- a/examples/display_demo/ui.cpp +++ b/examples/display_demo/ui.cpp @@ -78,7 +78,7 @@ const struct menu_icon icon_buf[MENU_ICON_NUM] = { {&ver_wifi, "wifi", 270, 45}, {&ver_battery, "battery", 475, 375}, {&ver_shutdown, "shutdown", 475, 210}, - {&ver_refresh, "shutdown", 475, 375} + {&ver_refresh, "refresh", 475, 45} }; #else const struct menu_icon icon_buf[MENU_ICON_NUM] = { @@ -1158,6 +1158,15 @@ static void create4(lv_obj_t *parent) { lv_obj_add_event_cb(ui_Slider2, ui_event_Slider2, LV_EVENT_ALL, NULL); lv_obj_add_event_cb(ui_Slider3, ui_event_Slider3, LV_EVENT_ALL, NULL); + lv_obj_t *info = lv_label_create(parent); + lv_obj_set_width(info, LCD_HOR_SIZE * 0.9); + // lv_obj_set_style_text_color(info, lv_color_hex(EMBED_PN532_COLOR_TEXT), LV_PART_MAIN); + lv_obj_set_style_text_font(info, &Font_Mono_Bold_30, LV_PART_MAIN); + lv_label_set_long_mode(info, LV_LABEL_LONG_WRAP); + lv_label_set_text_fmt(info, "%s", ui_port_set_get_version()); + lv_obj_align(info, LV_ALIGN_BOTTOM_MID, 0, -10); + lv_obj_set_style_text_align(info, LV_TEXT_ALIGN_CENTER, 0); + // back scr_back_btn_create(parent, "Setting", scr4_btn_event_cb); } diff --git a/examples/display_demo/ui.h b/examples/display_demo/ui.h index a1ab5bf..f3724f1 100644 --- a/examples/display_demo/ui.h +++ b/examples/display_demo/ui.h @@ -66,6 +66,7 @@ void ui_if_epd_read_from_SD(void); void ui_if_epd_set_light(uint8_t light); void ui_port_set_refr_cycle(uint16_t cycle); void ui_port_set_refr_times(uint16_t times); +const char *ui_port_set_get_version(void); uint16_t ui_port_get_light(void); uint16_t ui_port_get_refr_cycle(void); uint16_t ui_port_get_refr_times(void); diff --git a/examples/display_demo/ui_port.cpp b/examples/display_demo/ui_port.cpp index e705aed..c02f62c 100644 --- a/examples/display_demo/ui_port.cpp +++ b/examples/display_demo/ui_port.cpp @@ -2,6 +2,7 @@ #include "display_demo.h" #include "Arduino.h" +#define T5_EPER_S3_SF_VER "v1.0 24.12.03" //************************************[ Other fun ]****************************************** void ui_if_epd_refr(uint16_t time) @@ -115,6 +116,11 @@ void ui_port_set_refr_times(uint16_t times) eeprom_wr(UI_REFR_TIMES_EEPROM_ADDR, (uint8_t)times); } +const char *ui_port_set_get_version(void) +{ + return T5_EPER_S3_SF_VER; +} + uint16_t ui_port_get_light(void) { return refr_backlight; diff --git a/firmware/H752_factory_test_20240918.bin b/firmware/H752_factory_test_20240918.bin deleted file mode 100644 index 875f4d1..0000000 Binary files a/firmware/H752_factory_test_20240918.bin and /dev/null differ diff --git a/firmware/H752_factory_test_20241203.bin b/firmware/H752_factory_test_20241203.bin new file mode 100644 index 0000000..721ad60 Binary files /dev/null and b/firmware/H752_factory_test_20241203.bin differ