feat(ota): show update expression during firmware install
This commit is contained in:
@@ -96,6 +96,9 @@ set(platform_lcd_png_assets
|
||||
listening0
|
||||
listening1
|
||||
listening2
|
||||
ota1
|
||||
ota2
|
||||
ota3
|
||||
muyu0
|
||||
muyu1
|
||||
muyu2
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 40 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
@@ -26,6 +26,12 @@ static const lcd_direct_image_t s_listening_frames[] = {
|
||||
{.path = LCD_ASSET_BASE_PATH "listening2.png"},
|
||||
};
|
||||
|
||||
static const lcd_direct_image_t s_ota_frames[] = {
|
||||
{.path = LCD_ASSET_BASE_PATH "ota1.png"},
|
||||
{.path = LCD_ASSET_BASE_PATH "ota2.png"},
|
||||
{.path = LCD_ASSET_BASE_PATH "ota3.png"},
|
||||
};
|
||||
|
||||
static const lcd_direct_image_t s_wifi_connecting_qr_frames[] = {
|
||||
{.path = LCD_ASSET_BASE_PATH "qrcode.png"},
|
||||
};
|
||||
@@ -258,6 +264,12 @@ const lcd_direct_image_t *lcd_direct_asset_frame(const char *asset_dir, uint8_t
|
||||
frame_index);
|
||||
}
|
||||
|
||||
if (strcmp(asset_dir, "ota") == 0) {
|
||||
return lcd_direct_frame_from_array(s_ota_frames,
|
||||
sizeof(s_ota_frames) / sizeof(s_ota_frames[0]),
|
||||
frame_index);
|
||||
}
|
||||
|
||||
if (strcmp(asset_dir, "wifi_connecting_qr") == 0) {
|
||||
return lcd_direct_frame_from_array(
|
||||
s_wifi_connecting_qr_frames,
|
||||
|
||||
Reference in New Issue
Block a user