mirror of
https://github.com/m5stack/meshtastic-device-ui.git
synced 2026-05-20 11:51:03 -07:00
* some images were ARGB8888 format -> RGB565A8 * remove unused color formats * allow custom display buffers * nodes images -> A8 color format * limit receive queue processing * lodepng needs ARGB8888 * A8 node images
80 lines
9.5 KiB
C
80 lines
9.5 KiB
C
#ifdef __has_include
|
|
#if __has_include("lvgl.h")
|
|
#ifndef LV_LVGL_H_INCLUDE_SIMPLE
|
|
#define LV_LVGL_H_INCLUDE_SIMPLE
|
|
#endif
|
|
#endif
|
|
#endif
|
|
|
|
#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_GROUPS_UNLOCK_IMAGE
|
|
#define LV_ATTRIBUTE_IMG_GROUPS_UNLOCK_IMAGE
|
|
#endif
|
|
|
|
static const
|
|
LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMG_GROUPS_UNLOCK_IMAGE
|
|
uint8_t img_groups_unlock_image_map[] = {
|
|
|
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x24,0x21,0xff,0xff,0x34,0xa5,0xff,0xff,0xef,0x7b,0x75,0xad,0x96,0xb5,0x51,0x8c,0xff,0xff,0x34,0xa5,0xff,0xff,0x24,0x21,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x45,0x29,0xff,0xff,0x9a,0xd6,0xd3,0x9c,0x18,0xc6,0x9a,0xd6,0xdb,0xde,0xdb,0xde,0x9a,0xd6,0x18,0xc6,0xd3,0x9c,0x9a,0xd6,0xff,0xff,0x45,0x29,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x9a,0xd6,0x96,0xb5,0x9a,0xd6,0xfb,0xde,0xfb,0xde,0xdb,0xde,0xdb,0xde,0xfb,0xde,0xfb,0xde,0x9a,0xd6,0x96,0xb5,0xba,0xd6,0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xe7,0x39,0x34,0xa5,0xd3,0x9c,0x9a,0xd6,0x1c,0xe7,0x9a,0xd6,0xf7,0xbd,0xb6,0xb5,0xb6,0xb5,0xf7,0xbd,0xba,0xd6,0x1c,0xe7,0x9a,0xd6,0x14,0xa5,0x75,0xad,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x18,0xc6,0xfb,0xde,0x9a,0xd6,0x75,0xad,0x1c,0xe7,0xd7,0xbd,0xd7,0xbd,0xfb,0xde,0x75,0xad,0x9a,0xd6,0xdb,0xde,0x18,0xc6,0x79,0xce,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x84,0xef,0x7b,0x9a,0xd6,0xfb,0xde,0xf7,0xbd,0xfb,0xde,0xff,0xff,0x86,0x31,0x65,0x29,0xff,0xff,0xfb,0xde,0xb6,0xb5,0x38,0xc6,0x55,0xad,0x75,0xad,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x75,0xad,0x75,0xad,0xdb,0xde,0xdb,0xde,0x96,0xb5,0x96,0xb5,0x65,0x29,0x00,0x00,0x00,0x00,0x65,0x29,0xff,0xff,0x79,0xce,0x3c,0xe7,0x96,0xb5,0xd7,0xbd,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
0x00,0x00,0x00,0x00,0xef,0x7b,0x2c,0x63,0x75,0xad,0x96,0xb5,0xdb,0xde,0xfb,0xde,0xf7,0xbd,0x18,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x34,0xa5,0x2c,0x63,0xef,0x7b,0x00,0x00,0x00,0x00,
|
|
0x00,0x00,0x59,0xce,0x96,0xb5,0x00,0x00,0x34,0xa5,0xf7,0xbd,0xdb,0xde,0xfb,0xde,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x55,0xad,0x00,0x00,0x96,0xb5,0x59,0xce,0x00,0x00,
|
|
0x30,0x84,0x96,0xb5,0xf3,0x9c,0x38,0xc6,0xba,0xd6,0xfb,0xde,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,0xba,0xd6,0x38,0xc6,0xf3,0x9c,0x96,0xb5,0x30,0x84,
|
|
0x6d,0x6b,0x00,0x00,0x38,0xc6,0xfb,0xde,0xdb,0xde,0xdb,0xde,0xba,0xd6,0xba,0xd6,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xfb,0xde,0x38,0xc6,0x00,0x00,0x6d,0x6b,
|
|
0x75,0xad,0x75,0xad,0xdb,0xde,0xdb,0xde,0xb6,0xb5,0x34,0xa5,0x34,0xa5,0x34,0xa5,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x34,0xa5,0xb6,0xb5,0xdb,0xde,0xdb,0xde,0x75,0xad,0x75,0xad,
|
|
0x79,0xce,0x79,0xce,0xfb,0xde,0xba,0xd6,0xf3,0x9c,0x34,0xa5,0x34,0xa5,0x34,0xa5,0x55,0xad,0x55,0xad,0x34,0xa5,0x34,0xa5,0x34,0xa5,0x34,0xa5,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x34,0xa5,0xf3,0x9c,0xba,0xd6,0xfb,0xde,0x79,0xce,0x79,0xce,
|
|
0x79,0xce,0x79,0xce,0xfb,0xde,0xba,0xd6,0x14,0xa5,0x14,0xa5,0x00,0x00,0x00,0x00,0xcb,0x5a,0x6d,0x6b,0xff,0xff,0x34,0xa5,0x34,0xa5,0xff,0xff,0x6d,0x6b,0xcb,0x5a,0x00,0x00,0x00,0x00,0x14,0xa5,0x14,0xa5,0xba,0xd6,0xfb,0xde,0x79,0xce,0x79,0xce,
|
|
0x79,0xce,0x79,0xce,0xfb,0xde,0xba,0xd6,0x14,0xa5,0x14,0xa5,0x00,0x00,0x00,0x00,0x28,0x42,0xff,0xff,0xd7,0xbd,0xba,0xd6,0xba,0xd6,0xd7,0xbd,0xff,0xff,0x49,0x4a,0x00,0x00,0x00,0x00,0x14,0xa5,0x14,0xa5,0xba,0xd6,0xfb,0xde,0x79,0xce,0x79,0xce,
|
|
0x79,0xce,0x79,0xce,0xfb,0xde,0xba,0xd6,0x14,0xa5,0x14,0xa5,0x00,0x00,0x00,0x00,0x92,0x94,0x92,0x94,0x9a,0xd6,0x1c,0xe7,0x1c,0xe7,0x9a,0xd6,0x92,0x94,0xb2,0x94,0x00,0x00,0x00,0x00,0x14,0xa5,0x14,0xa5,0xba,0xd6,0xfb,0xde,0x79,0xce,0x79,0xce,
|
|
0x79,0xce,0x79,0xce,0xfb,0xde,0xba,0xd6,0x14,0xa5,0x14,0xa5,0x00,0x00,0x00,0x00,0xf3,0x9c,0xf3,0x9c,0xba,0xd6,0x1c,0xe7,0x1c,0xe7,0xba,0xd6,0xf3,0x9c,0xf3,0x9c,0x00,0x00,0x00,0x00,0x14,0xa5,0x14,0xa5,0xba,0xd6,0xfb,0xde,0x79,0xce,0x79,0xce,
|
|
0x79,0xce,0x79,0xce,0xfb,0xde,0xba,0xd6,0x14,0xa5,0x14,0xa5,0x00,0x00,0x00,0x00,0x8e,0x73,0xff,0xff,0xf7,0xbd,0xba,0xd6,0xba,0xd6,0xf7,0xbd,0xff,0xff,0x8e,0x73,0x00,0x00,0x00,0x00,0x14,0xa5,0x14,0xa5,0xba,0xd6,0xfb,0xde,0x79,0xce,0x79,0xce,
|
|
0x79,0xce,0x79,0xce,0xfb,0xde,0xba,0xd6,0x14,0xa5,0x14,0xa5,0x00,0x00,0x00,0x00,0xef,0x7b,0x4d,0x6b,0xff,0xff,0x34,0xa5,0x34,0xa5,0xff,0xff,0x4d,0x6b,0xef,0x7b,0x00,0x00,0x00,0x00,0x14,0xa5,0x14,0xa5,0xba,0xd6,0xfb,0xde,0x79,0xce,0x79,0xce,
|
|
0x79,0xce,0x79,0xce,0xfb,0xde,0xba,0xd6,0xf3,0x9c,0x96,0xb5,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x18,0xc6,0xd7,0xbd,0xd7,0xbd,0x18,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x96,0xb5,0xf3,0x9c,0xba,0xd6,0xfb,0xde,0x79,0xce,0x79,0xce,
|
|
0x55,0xad,0x55,0xad,0xba,0xd6,0xfb,0xde,0x18,0xc6,0x18,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x18,0xc6,0x18,0xc6,0xdb,0xde,0xba,0xd6,0x55,0xad,0x55,0xad,
|
|
0x4d,0x6b,0x00,0x00,0x38,0xc6,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,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0x38,0xc6,0x00,0x00,0x4d,0x6b,
|
|
0xef,0x7b,0x96,0xb5,0xf3,0x9c,0x59,0xce,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0x59,0xce,0xf3,0x9c,0x96,0xb5,0xef,0x7b,
|
|
0x00,0x00,0x59,0xce,0x96,0xb5,0x00,0x00,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x00,0x00,0x96,0xb5,0x59,0xce,0x00,0x00,
|
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0c,0x1e,0x1e,0x0c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x17,0x71,0xbd,0xdb,0xdb,0xbd,0x71,0x17,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x2c,0xc0,0xff,0xfe,0xe8,0xe8,0xfe,0xff,0xc0,0x2c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x17,0xc0,0xff,0xc8,0x58,0x26,0x26,0x58,0xc8,0xff,0xc0,0x18,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
0x00,0x00,0x00,0x00,0x00,0x00,0x72,0xff,0xc8,0x22,0x00,0x00,0x00,0x00,0x22,0xc7,0xfd,0x49,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0a,0xbe,0xfe,0x58,0x00,0x00,0x00,0x00,0x00,0x00,0x31,0x69,0x14,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
0x00,0x00,0x00,0x00,0x00,0x1a,0xdd,0xe9,0x26,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1d,0xe2,0xe2,0x1d,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
0x00,0x00,0x00,0x02,0x15,0x3a,0xe6,0xe6,0x3a,0x1d,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x17,0x02,0x00,0x00,0x00,0x00,0x00,0x14,0x8c,0xd7,0xe6,0xfd,0xfd,0xe6,0xe2,0xe2,0xe2,0xe2,0xe2,0xe2,0xe2,0xe2,0xe2,0xe3,0xd7,0x8c,0x14,0x00,0x00,
|
|
0x00,0x02,0x8c,0xff,0xf3,0xe2,0xe1,0xe1,0xe2,0xe2,0xe2,0xe2,0xe2,0xe2,0xe2,0xe2,0xe2,0xe2,0xe2,0xf3,0xff,0x8c,0x02,0x00,0x00,0x17,0xd7,0xf3,0x56,0x1d,0x20,0x20,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1d,0x56,0xf3,0xd7,0x17,0x00,
|
|
0x00,0x1f,0xe2,0xe2,0x1d,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1d,0xe2,0xe2,0x1f,0x00,0x00,0x1f,0xe2,0xe2,0x1f,0x00,0x00,0x00,0x00,0x00,0x00,0x13,0x13,0x00,0x00,0x00,0x00,0x00,0x00,0x1f,0xe2,0xe2,0x1f,0x00,
|
|
0x00,0x1f,0xe2,0xe2,0x1f,0x00,0x00,0x00,0x00,0x00,0x56,0xcf,0xcf,0x56,0x00,0x00,0x00,0x00,0x00,0x1f,0xe2,0xe2,0x1f,0x00,0x00,0x1f,0xe2,0xe2,0x1f,0x00,0x00,0x00,0x00,0x13,0xcf,0xff,0xff,0xcf,0x13,0x00,0x00,0x00,0x00,0x1f,0xe2,0xe2,0x1f,0x00,
|
|
0x00,0x1f,0xe2,0xe2,0x1f,0x00,0x00,0x00,0x00,0x13,0xcf,0xff,0xff,0xcf,0x13,0x00,0x00,0x00,0x00,0x1f,0xe2,0xe2,0x1f,0x00,0x00,0x1f,0xe2,0xe2,0x1f,0x00,0x00,0x00,0x00,0x00,0x56,0xcf,0xcf,0x56,0x00,0x00,0x00,0x00,0x00,0x1f,0xe2,0xe2,0x1f,0x00,
|
|
0x00,0x1f,0xe2,0xe2,0x1f,0x00,0x00,0x00,0x00,0x00,0x00,0x13,0x13,0x00,0x00,0x00,0x00,0x00,0x00,0x1f,0xe2,0xe2,0x1f,0x00,0x00,0x1f,0xe2,0xe2,0x1d,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1d,0xe2,0xe2,0x1f,0x00,
|
|
0x00,0x17,0xd7,0xf3,0x56,0x1d,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1d,0x56,0xf4,0xd7,0x17,0x00,0x00,0x02,0x8b,0xff,0xf3,0xe2,0xe2,0xe2,0xe2,0xe2,0xe2,0xe2,0xe2,0xe2,0xe2,0xe2,0xe2,0xe2,0xe2,0xf4,0xff,0x8b,0x02,0x00,
|
|
0x00,0x00,0x14,0x8a,0xd6,0xe1,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe1,0xd6,0x8a,0x14,0x00,0x00,0x00,0x00,0x00,0x02,0x1a,0x24,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x24,0x1a,0x02,0x00,0x00,0x00,
|
|
|
|
};
|
|
|
|
const lv_image_dsc_t img_groups_unlock_image = {
|
|
.header.magic = LV_IMAGE_HEADER_MAGIC,
|
|
.header.cf = LV_COLOR_FORMAT_RGB565A8,
|
|
.header.flags = 0,
|
|
.header.w = 24,
|
|
.header.h = 24,
|
|
.header.stride = 48,
|
|
.data_size = sizeof(img_groups_unlock_image_map),
|
|
.data = img_groups_unlock_image_map,
|
|
};
|
|
|