diff options
author | Riku Isokoski <riksu9000@gmail.com> | 2022-04-07 17:28:04 +0300 |
---|---|---|
committer | Riku Isokoski <riksu9000@gmail.com> | 2022-04-25 17:03:08 +0300 |
commit | b31fbb4adb0f895ff32b93fff492070e44716d54 (patch) | |
tree | 337c1fe0065f7f20738804b74e824347e87bc207 /src/displayapp/icons/battery/batteryicon.c | |
parent | 54df828665b135aa5e49a2e182bad59d2d705039 (diff) |
New sharper batteryicon. Remove old unused batteryicons
Diffstat (limited to 'src/displayapp/icons/battery/batteryicon.c')
-rw-r--r-- | src/displayapp/icons/battery/batteryicon.c | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/displayapp/icons/battery/batteryicon.c b/src/displayapp/icons/battery/batteryicon.c new file mode 100644 index 00000000..05ddf161 --- /dev/null +++ b/src/displayapp/icons/battery/batteryicon.c @@ -0,0 +1,52 @@ +#if defined(LV_LVGL_H_INCLUDE_SIMPLE) +#include "lvgl.h" +#else +#include "lvgl/lvgl.h" +#endif + + +#ifndef LV_ATTRIBUTE_MEM_ALIGN +#define LV_ATTRIBUTE_MEM_ALIGN +#endif + +#ifndef LV_ATTRIBUTE_IMG_BATTERYICON +#define LV_ATTRIBUTE_IMG_BATTERYICON +#endif + +const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMG_BATTERYICON uint8_t batteryicon_map[] = { + 0xff, 0xff, 0xff, 0xff, /*Color of index 0*/ + 0x6a, 0xfc, 0x6c, 0xff, /*Color of index 1*/ + + 0xe0, 0x70, + 0xe0, 0x70, + 0x00, 0x00, + 0x00, 0x00, + 0x3f, 0xc0, + 0x3f, 0xc0, + 0x3f, 0xc0, + 0x3f, 0xc0, + 0x3f, 0xc0, + 0x3f, 0xc0, + 0x3f, 0xc0, + 0x3f, 0xc0, + 0x3f, 0xc0, + 0x3f, 0xc0, + 0x3f, 0xc0, + 0x3f, 0xc0, + 0x3f, 0xc0, + 0x3f, 0xc0, + 0x00, 0x00, + 0x00, 0x00, +}; + +const lv_img_dsc_t batteryicon = { + { + LV_IMG_CF_INDEXED_1BIT, + 0, + 0, + 12, + 20, + }, + 48, + batteryicon_map, +}; |