mirror of https://github.com/zmkfirmware/zmk.git
49 lines
1.4 KiB
C
49 lines
1.4 KiB
C
/*
|
|
*
|
|
* Copyright (c) 2023 The ZMK Contributors
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include <lvgl.h>
|
|
|
|
#ifndef LV_ATTRIBUTE_MEM_ALIGN
|
|
#define LV_ATTRIBUTE_MEM_ALIGN
|
|
#endif
|
|
|
|
#ifndef LV_ATTRIBUTE_IMG_BOLT
|
|
#define LV_ATTRIBUTE_IMG_BOLT
|
|
#endif
|
|
|
|
const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMG_BOLT uint8_t bolt_map[] = {
|
|
#if CONFIG_NICE_VIEW_WIDGET_INVERTED
|
|
0x00, 0x00, 0x00, 0x00, /*Color of index 0*/
|
|
0x00, 0x00, 0x00, 0xff, /*Color of index 1*/
|
|
0xff, 0xff, 0xff, 0xff, /*Color of index 2*/
|
|
0x00, 0x00, 0x00, 0x00, /*Color of index 3*/
|
|
#else
|
|
0x00, 0x00, 0x00, 0x00, /*Color of index 0*/
|
|
0xff, 0xff, 0xff, 0xff, /*Color of index 1*/
|
|
0x00, 0x00, 0x00, 0xff, /*Color of index 2*/
|
|
0x00, 0x00, 0x00, 0x00, /*Color of index 3*/
|
|
#endif
|
|
|
|
0x00, 0x14, 0x00, 0x00, 0x64, 0x00, 0x00, 0x64, 0x00, 0x01, 0xa4, 0x00, 0x01, 0xa4,
|
|
0x00, 0x06, 0xa4, 0x00, 0x06, 0xa4, 0x00, 0x1a, 0xa5, 0x54, 0x1a, 0xaa, 0xa4, 0x6a,
|
|
0xaa, 0x90, 0x55, 0x6a, 0x90, 0x00, 0x6a, 0x40, 0x00, 0x6a, 0x40, 0x00, 0x69, 0x00,
|
|
0x00, 0x69, 0x00, 0x00, 0x64, 0x00, 0x00, 0x64, 0x00, 0x00, 0x50, 0x00,
|
|
};
|
|
|
|
const lv_img_dsc_t bolt = {
|
|
.header =
|
|
{
|
|
.magic = LV_IMAGE_HEADER_MAGIC,
|
|
.cf = LV_COLOR_FORMAT_I1,
|
|
.w = 11,
|
|
.h = 18,
|
|
.stride = 5,
|
|
},
|
|
.data_size = sizeof(bolt_map),
|
|
.data = bolt_map,
|
|
};
|