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.6 KiB
C
80 lines
9.6 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_TOP_MESSAGE_NODE_IMAGES
|
|
#define LV_ATTRIBUTE_IMG_TOP_MESSAGE_NODE_IMAGES
|
|
#endif
|
|
|
|
static const
|
|
LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMG_TOP_MESSAGE_NODE_IMAGES
|
|
uint8_t img_top_message_node_images_map[] = {
|
|
|
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc7,0x39,0x1c,0xe7,0xf3,0x9c,0xdb,0xde,0x00,0x00,0xf3,0x9c,0x96,0xb5,0x75,0xad,0xd3,0x9c,0x00,0x00,0xba,0xd6,0xb2,0x94,0x38,0xc6,0x08,0x42,0x00,0x00,0x00,0x00,
|
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xcb,0x5a,0x04,0x21,0x79,0xce,0x92,0x94,0xf7,0xbd,0x79,0xce,0xba,0xd6,0xdb,0xde,0xdb,0xde,0xba,0xd6,0x9a,0xd6,0xf7,0xbd,0x51,0x8c,0x79,0xce,0x28,0x42,0xcf,0x7b,0x00,0x00,
|
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xa6,0x31,0xff,0xff,0xb6,0xb5,0x9a,0xd6,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xfb,0xde,0xfb,0xde,0x9a,0xd6,0xd7,0xbd,0xff,0xff,0x8a,0x52,0x86,0x31,
|
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xdf,0xff,0xf7,0xbd,0xba,0xd6,0xfb,0xde,0xba,0xd6,0x38,0xc6,0xf7,0xbd,0xd7,0xbd,0xd7,0xbd,0xb6,0xb5,0x38,0xc6,0xba,0xd6,0xfb,0xde,0xba,0xd6,0xd7,0xbd,0x5d,0xef,0x86,0x31,
|
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x38,0xc6,0xfb,0xde,0x59,0xce,0x14,0xa5,0xff,0xff,0x24,0x21,0xd3,0x9c,0xf3,0x9c,0x49,0x4a,0xdf,0xff,0x55,0xad,0x59,0xce,0xdb,0xde,0x59,0xce,0xff,0xff,0x65,0x29,
|
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x9a,0xd6,0x96,0xb5,0x18,0xc6,0xb2,0x94,0x08,0x42,0xd7,0xbd,0x9a,0xd6,0xba,0xd6,0xba,0xd6,0x9a,0xd6,0xf7,0xbd,0x08,0x42,0xef,0x7b,0xd7,0xbd,0x75,0xad,0x59,0xce,0x82,0x10,
|
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1c,0xe7,0xd7,0xbd,0x59,0xce,0x00,0x00,0x38,0xc6,0xdb,0xde,0xfb,0xde,0xdb,0xde,0xdb,0xde,0xfb,0xde,0xdb,0xde,0x18,0xc6,0x00,0x00,0x38,0xc6,0xb6,0xb5,0x1c,0xe7,0x41,0x08,
|
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x84,0x4d,0x6b,0x79,0xce,0xba,0xd6,0x18,0xc6,0xb6,0xb5,0xb6,0xb5,0x38,0xc6,0xba,0xd6,0x79,0xce,0x2c,0x63,0xef,0x7b,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0xba,0xd6,0x34,0xa5,0x75,0xad,0xff,0xff,0xf3,0x9c,0xd3,0x9c,0xff,0xff,0x55,0xad,0x75,0xad,0x5d,0xef,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc7,0x39,0x1c,0xe7,0x55,0xad,0x75,0xad,0x14,0xa5,0x9a,0xd6,0x79,0xce,0x92,0x94,0x34,0xa5,0x96,0xb5,0x7d,0xef,0x86,0x31,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x59,0xce,0x59,0xce,0xfb,0xde,0xdb,0xde,0x34,0xa5,0x14,0xa5,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
0x00,0x00,0x30,0x84,0x8e,0x73,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0xf7,0xbd,0x9a,0xd6,0xfb,0xde,0xba,0xd6,0x14,0xa5,0x34,0xa5,0x55,0xad,0x55,0xad,0x55,0xad,0x8e,0x73,0x30,0x84,0x00,0x00,
|
|
0xb6,0xb5,0x34,0xa5,0x00,0x00,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x34,0xa5,0xf7,0xbd,0xfb,0xde,0xba,0xd6,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x55,0xad,0x00,0x00,0x34,0xa5,0xb6,0xb5,
|
|
0x34,0xa5,0x92,0x94,0x38,0xc6,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xfb,0xde,0xfb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0xdb,0xde,0x38,0xc6,0x92,0x94,0x34,0xa5,
|
|
0x00,0x00,0x38,0xc6,0xfb,0xde,0xdb,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,0xdb,0xde,0xfb,0xde,0x38,0xc6,0x00,0x00,
|
|
0x55,0xad,0xdb,0xde,0xdb,0xde,0xd7,0xbd,0x18,0xc6,0x59,0xce,0x59,0xce,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,0xd7,0xbd,0xdb,0xde,0xdb,0xde,0x55,0xad,
|
|
0x55,0xad,0xdb,0xde,0xfb,0xde,0x38,0xc6,0x38,0xc6,0xef,0x7b,0xcf,0x7b,0x9a,0xd6,0x59,0xce,0x51,0x8c,0x30,0x84,0x79,0xce,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0xfb,0xde,0xdb,0xde,0x55,0xad,
|
|
0x55,0xad,0xdb,0xde,0xfb,0xde,0x59,0xce,0xef,0x7b,0x59,0xce,0x59,0xce,0xb2,0x94,0xf3,0x9c,0x79,0xce,0x79,0xce,0x14,0xa5,0x14,0xa5,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x59,0xce,0x38,0xc6,0xfb,0xde,0xdb,0xde,0x55,0xad,
|
|
0x55,0xad,0xdb,0xde,0xfb,0xde,0x59,0xce,0xef,0x7b,0x59,0xce,0x59,0xce,0xb2,0x94,0xf3,0x9c,0x79,0xce,0x79,0xce,0x14,0xa5,0x14,0xa5,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x59,0xce,0x38,0xc6,0xfb,0xde,0xdb,0xde,0x55,0xad,
|
|
0x55,0xad,0xdb,0xde,0xfb,0xde,0x38,0xc6,0x38,0xc6,0xef,0x7b,0xcf,0x7b,0x9a,0xd6,0x59,0xce,0x51,0x8c,0x30,0x84,0x79,0xce,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0x38,0xc6,0xfb,0xde,0xdb,0xde,0x55,0xad,
|
|
0x55,0xad,0xdb,0xde,0xdb,0xde,0xd7,0xbd,0x18,0xc6,0x59,0xce,0x59,0xce,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,0xd7,0xbd,0xdb,0xde,0xdb,0xde,0x55,0xad,
|
|
0x00,0x00,0x38,0xc6,0xfb,0xde,0xdb,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,0xdb,0xde,0xfb,0xde,0x38,0xc6,0x00,0x00,
|
|
0x34,0xa5,0x92,0x94,0x38,0xc6,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,0xdb,0xde,0xdb,0xde,0x38,0xc6,0x92,0x94,0x34,0xa5,
|
|
0xb6,0xb5,0x34,0xa5,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,0x55,0xad,0x55,0xad,0x00,0x00,0x34,0xa5,0xb6,0xb5,
|
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x12,0x20,0x20,0x12,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0e,0x51,0x9c,0xca,0xdd,0xdd,0xcb,0x9d,0x52,0x0e,0x00,0x00,0x00,0x00,
|
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x39,0xb7,0xfb,0xff,0xf6,0xe6,0xe6,0xf5,0xff,0xfc,0xb9,0x3a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x49,0xe2,0xff,0xd4,0x7a,0x3a,0x21,0x21,0x3a,0x79,0xd3,0xff,0xe3,0x4a,0x00,0x00,
|
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x8b,0xfd,0x9d,0x1e,0x00,0x04,0x18,0x18,0x04,0x00,0x1e,0x9b,0xfd,0x8d,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1e,0x49,0x0b,0x04,0x57,0xb5,0xdc,0xdd,0xb6,0x5a,0x05,0x0b,0x49,0x1f,0x00,0x00,
|
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7c,0xfa,0xff,0xea,0xea,0xff,0xfb,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x05,0xa2,0xe5,0x74,0x27,0x27,0x72,0xe3,0xa6,0x06,0x00,0x00,0x00,0x00,
|
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x17,0x27,0x00,0x0b,0x0c,0x00,0x26,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0e,0xab,0xab,0x0e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1f,0xe4,0xe4,0x1f,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,0x02,0x17,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1d,0x3a,0xe6,0xe6,0x3a,0x1d,0x1f,0x1f,0x17,0x02,0x00,0x00,0x00,0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x02,
|
|
0x00,0x14,0x8a,0xd6,0xe1,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe1,0xd6,0x8a,0x14,0x00,0x00,0x00,0x02,0x1a,0x24,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x24,0x1a,0x02,0x00,0x00,
|
|
|
|
};
|
|
|
|
const lv_image_dsc_t img_top_message_node_images = {
|
|
.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_top_message_node_images_map),
|
|
.data = img_top_message_node_images_map,
|
|
};
|
|
|