battery part 2

This commit is contained in:
mverch67
2024-07-19 21:47:50 +02:00
parent 37bc0ad231
commit c0a49748e1
6 changed files with 101 additions and 30 deletions
+3 -2
View File
@@ -1,6 +1,6 @@
#include "images.h"
const ext_img_desc_t images[48] = {
const ext_img_desc_t images[49] = {
{ "meshtastic_boot_logo_image", &img_meshtastic_boot_logo_image },
{ "settings_button_image", &img_settings_button_image },
{ "map_button_image", &img_map_button_image },
@@ -27,7 +27,7 @@ const ext_img_desc_t images[48] = {
{ "battery_full_image", &img_battery_full_image },
{ "battery_mid_image", &img_battery_mid_image },
{ "battery_low_image", &img_battery_low_image },
{ "battery_empty_image", &img_battery_empty_image },
{ "battery_empty_warn_image", &img_battery_empty_warn_image },
{ "battery_slash_image", &img_battery_slash_image },
{ "battery_bolt_image", &img_battery_bolt_image },
{ "home_wlan_off_image", &img_home_wlan_off_image },
@@ -49,4 +49,5 @@ const ext_img_desc_t images[48] = {
{ "home_ethernet_button_image", &img_home_ethernet_button_image },
{ "top_trace_route_image", &img_top_trace_route_image },
{ "top_node_detector_image", &img_top_node_detector_image },
{ "battery_empty_image", &img_battery_empty_image },
};
+3 -2
View File
@@ -33,7 +33,7 @@ extern const lv_img_dsc_t img_top_message_node_images;
extern const lv_img_dsc_t img_battery_full_image;
extern const lv_img_dsc_t img_battery_mid_image;
extern const lv_img_dsc_t img_battery_low_image;
extern const lv_img_dsc_t img_battery_empty_image;
extern const lv_img_dsc_t img_battery_empty_warn_image;
extern const lv_img_dsc_t img_battery_slash_image;
extern const lv_img_dsc_t img_battery_bolt_image;
extern const lv_img_dsc_t img_home_wlan_off_image;
@@ -55,6 +55,7 @@ extern const lv_img_dsc_t img_mqtt_logo_image;
extern const lv_img_dsc_t img_home_ethernet_button_image;
extern const lv_img_dsc_t img_top_trace_route_image;
extern const lv_img_dsc_t img_top_node_detector_image;
extern const lv_img_dsc_t img_battery_empty_image;
#ifndef EXT_IMG_DESC_T
#define EXT_IMG_DESC_T
@@ -64,7 +65,7 @@ typedef struct _ext_img_desc_t {
} ext_img_desc_t;
#endif
extern const ext_img_desc_t images[48];
extern const ext_img_desc_t images[49];
#ifdef __cplusplus
+1 -1
View File
@@ -325,7 +325,7 @@ typedef struct _objects_t {
lv_obj_t *tab_page_basic_settings;
lv_obj_t *tab_page_filter;
lv_obj_t *tab_page_highlight;
lv_obj_t *tab_page_meshwork;
lv_obj_t *tab_page_tools;
lv_obj_t *telemetry1_label;
lv_obj_t *telemetry2_label;
lv_obj_t *top_advanced_settings_image;
@@ -20,37 +20,47 @@ static const
LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMG_DUST
uint8_t img_battery_empty_image_map[] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0xd9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df,0x8f,0xe0,0xe0,0xe0,0xcc,0xe0,0xe0,0xe0,0xc9,0xe0,0xe0,0xe0,0xb6,0xdf,0xdf,0xdf,0x57,0xdb,0xdb,0xdb,0x02,0xdd,0xdd,0xdd,0x00,0x00,0x00,0x00,0x00,
0xdc,0xdc,0xdc,0x00,0xdb,0xdb,0xdb,0x00,0xe0,0xe0,0xe0,0x00,0xdc,0xdc,0xdc,0x04,0xde,0xde,0xde,0x0b,0xdf,0xdf,0xdf,0x0c,0xde,0xde,0xde,0x06,0xe2,0xe2,0xe2,0x00,0xff,0xff,0xff,0x00,0xdd,0xdd,0xdd,0x06,0xd8,0xd8,0xd8,0x01,0xdf,0xdf,0xdf,0x00,0xdd,0xdd,0xdd,0x05,0xdf,0xdf,0xdf,0x0c,0xde,0xde,0xde,0x0c,0xdd,0xdd,0xdd,0x06,0xe1,0xe1,0xe1,0x00,0xdd,0xdd,0xdd,0x00,0xdd,0xdd,0xdd,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0xd9,0xd9,0xd9,0x00,0xff,0xff,0xff,0x00,0xdd,0xdd,0xdd,0x00,0xde,0xde,0xde,0x00,0xdf,0xdf,0xdf,0x00,0xde,0xde,0xde,0x00,0xff,0xff,0xff,0x00,0xdc,0xdc,0xdc,0x00,0xdd,0xdd,0xdd,0x00,0xdd,0xdd,0xdd,0x00,0xdf,0xdf,0xdf,0x00,0xde,0xde,0xde,0x00,0xdf,0xdf,0xdf,0x00,0xde,0xde,0xde,0x00,0xdd,0xdd,0xdd,0x00,0xd9,0xd9,0xd9,0x00,0xda,0xda,0xda,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0xdb,0xde,0xff,0xff,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xdb,0xde,0xdb,0xde,0x00,0x00,0x00,0x00,
0xfb,0xde,0xdb,0xde,0x1c,0xe7,0xfb,0xde,0xfb,0x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xde,0xfb,0xde,0x1c,0xe7,0x1c,0xe7,0xfb,0xde,0xfb,0xde,
0x1c,0xe7,0xfb,0xde,0x1c,0xe7,0xfb,0xde,0x1c,0xe7,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xfb,0xde,0xfb,0xde,0x1c,0xe7,0x1c,0xe7,0xfb,0xde,0x1c,0xe7,
0x1c,0xe7,0xfb,0xde,0x1c,0xe7,0xfb,0xde,0x1c,0xe7,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xfb,0xde,0xfb,0xde,0x1c,0xe7,0x1c,0xe7,0xfb,0xde,0x1c,0xe7,
0x1c,0xe7,0xfb,0xde,0x1c,0xe7,0xfb,0xde,0x1c,0xe7,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xfb,0xde,0xfb,0xde,0x1c,0xe7,0x1c,0xe7,0xfb,0xde,0xfb,0xde,
0x1c,0xe7,0xfb,0xde,0x1c,0xe7,0xfb,0xde,0x1c,0xe7,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0x1c,0xe7,0xfb,0xde,0x1c,0xe7,0x1c,0xe7,
0x1c,0xe7,0xfb,0xde,0x1c,0xe7,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0x1c,0xe7,0xfb,0xde,0x1c,0xe7,0xdb,0xde,
0xfb,0xde,0xfb,0xde,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0xfb,0xde,0xfb,0xde,0x00,0x00,
0xdb,0xde,0x5d,0xef,0xfb,0xde,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0xfb,0xde,0xdb,0xde,0xfb,0xde,0x00,0x00,
0xfb,0xde,0xdb,0xde,0x1c,0xe7,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0x1c,0xe7,0xfb,0xde,0xfb,0xde,0x00,0x00,
0x00,0x00,0xdb,0xde,0xff,0xff,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xdb,0xde,0xdb,0xde,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x0b,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x06,0x00,0x00,0x00,0x00,
0x00,0x00,0x42,0xac,0xc8,0xc9,0xc9,0xc9,0xc9,0xc9,0xc9,0xc9,0xc9,0xc9,0xc9,0xb6,0x57,0x02,0x00,0x00,0x00,0x24,0xdb,0xf1,0xcc,0xc9,0xc9,0xc9,0xc9,0xc9,0xc9,0xc9,0xc9,0xc9,0xca,0xe9,0xed,0x3e,0x00,0x00,
0x00,0x52,0xfd,0x76,0x0a,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x09,0x55,0xfc,0x77,0x00,0x00,0x00,0x5a,0xfd,0x5a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x38,0xf6,0x80,0x00,0x00,
0x00,0x5a,0xfd,0x5b,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x39,0xf5,0xc6,0x23,0x00,0x00,0x5a,0xfd,0x5b,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x39,0xf3,0xff,0x59,0x00,
0x00,0x5a,0xfd,0x5b,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x39,0xf3,0xff,0x59,0x00,0x00,0x5a,0xfd,0x5b,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x39,0xf5,0xc6,0x23,0x00,
0x00,0x5a,0xfd,0x5a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x38,0xf6,0x80,0x00,0x00,0x00,0x52,0xfd,0x76,0x0a,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x09,0x55,0xfc,0x77,0x00,0x00,
0x00,0x24,0xdb,0xf1,0xcb,0xc9,0xc9,0xc9,0xc9,0xc9,0xc9,0xc9,0xc9,0xc9,0xca,0xe8,0xee,0x3e,0x00,0x00,0x00,0x00,0x42,0xad,0xc8,0xc9,0xc9,0xc9,0xc9,0xc9,0xc9,0xc9,0xc9,0xc9,0xc9,0xb6,0x57,0x02,0x00,0x00,
0x00,0x00,0x00,0x04,0x0b,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};
const lv_img_dsc_t img_battery_empty_image = {
.header.magic = LV_IMAGE_HEADER_MAGIC,
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.cf = LV_COLOR_FORMAT_RGB565A8,
.header.flags = 0,
.header.w = 20,
.header.h = 20,
.header.stride = 80,
.data_size = 1600,
.header.stride = 40,
.data_size = 1200,
.data = img_battery_empty_image_map,
};
@@ -0,0 +1,56 @@
#if defined(LV_LVGL_H_INCLUDE_SIMPLE)
#include "lvgl.h"
#elif defined(LV_BUILD_TEST)
#include "../lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#ifndef LV_ATTRIBUTE_MEM_ALIGN
#define LV_ATTRIBUTE_MEM_ALIGN
#endif
#ifndef LV_ATTRIBUTE_IMG_DUST
#define LV_ATTRIBUTE_IMG_DUST
#endif
static const
LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMG_DUST
uint8_t img_battery_empty_warn_image_map[] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0xd9,0xd9,0xd9,0x00,0xff,0xff,0xff,0x00,0xdd,0xdd,0xdd,0x00,0xde,0xde,0xde,0x00,0xdd,0xdd,0xdd,0x00,0xdd,0xdd,0xdd,0x00,0xf2,0xf2,0xf2,0x00,0xdc,0xdc,0xdc,0x00,0xdd,0xdd,0xdd,0x00,0xdc,0xdc,0xdc,0x00,0xdd,0xdd,0xd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0,0x00,0xdc,0xdc,0xdc,0x04,0xde,0xde,0xde,0x0b,0xdf,0xdf,0xdf,0x0c,0xde,0xde,0xde,0x06,0xe2,0xe2,0xe2,0x00,0xff,0xff,0xff,0x00,0xdd,0xdd,0xdd,0x06,0xd8,0xd8,0xd8,0x01,0xdf,0xdf,0xdf,0x00,0xdd,0xdd,0xdd,0x05,0xdf,0xdf,0xdf,0x0c,0xde,0xde,0xde,0x0c,0xdd,0xdd,0xdd,0x06,0xe1,0xe1,0xe1,0x00,0xdd,0xdd,0xdd,0x00,0xdd,0xdd,0xdd,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0xd9,0xd9,0xd9,0x00,0xff,0xff,0xff,0x00,0xdd,0xdd,0xdd,0x00,0xde,0xde,0xde,0x00,0xdf,0xdf,0xdf,0x00,0xde,0xde,0xde,0x00,0xff,0xff,0xff,0x00,0xdc,0xdc,0xdc,0x00,0xdd,0xdd,0xdd,0x00,0xdd,0xdd,0xdd,0x00,0xdf,0xdf,0xdf,0x00,0xde,0xde,0xde,0x00,0xdf,0xdf,0xdf,0x00,0xde,0xde,0xde,0x00,0xdd,0xdd,0xdd,0x00,0xd9,0xd9,0xd9,0x00,0xda,0xda,0xda,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};
const lv_img_dsc_t img_battery_empty_warn_image = {
.header.magic = LV_IMAGE_HEADER_MAGIC,
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.flags = 0,
.header.w = 20,
.header.h = 20,
.header.stride = 80,
.data_size = 1600,
.data = img_battery_empty_warn_image_map,
};
+5 -2
View File
@@ -2086,11 +2086,14 @@ void TFTView_320x240::updateMetrics(uint32_t nodeNum, uint32_t bat_level, float
LV_PART_MAIN | LV_STATE_DEFAULT);
} else if (bat_level > 35 && voltage > 3.6f) {
lv_obj_set_style_bg_image_src(objects.battery_image, &img_battery_mid_image, LV_PART_MAIN | LV_STATE_DEFAULT);
} else if (bat_level > 15 && voltage > 3.4f) {
} else if (bat_level > 15 && voltage > 3.5f) {
lv_obj_set_style_bg_image_src(objects.battery_image, &img_battery_low_image, LV_PART_MAIN | LV_STATE_DEFAULT);
} else if (bat_level > 10 && voltage > 3.4f) {
lv_obj_set_style_bg_image_src(objects.battery_image, &img_battery_empty_image,
LV_PART_MAIN | LV_STATE_DEFAULT);
} else {
if (bat_level > 5 && voltage > 3.3f) {
lv_obj_set_style_bg_image_src(objects.battery_image, &img_battery_empty_image,
lv_obj_set_style_bg_image_src(objects.battery_image, &img_battery_empty_warn_image,
LV_PART_MAIN | LV_STATE_DEFAULT);
} else {
lv_obj_set_style_bg_image_src(objects.battery_image, &img_battery_slash_image,