Skip to content

Commit

Permalink
Update firmware
Browse files Browse the repository at this point in the history
  • Loading branch information
ShallowGreen123 committed Dec 3, 2024
1 parent 65ee296 commit 4b3759f
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1 deletion.
11 changes: 10 additions & 1 deletion examples/display_demo/ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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] = {
Expand Down Expand Up @@ -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);
}
Expand Down
1 change: 1 addition & 0 deletions examples/display_demo/ui.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 6 additions & 0 deletions examples/display_demo/ui_port.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
Expand Down
Binary file removed firmware/H752_factory_test_20240918.bin
Binary file not shown.
Binary file added firmware/H752_factory_test_20241203.bin
Binary file not shown.

0 comments on commit 4b3759f

Please sign in to comment.