修复了屏幕颜色异常问题
This commit is contained in:
@@ -1,19 +1,79 @@
|
||||
/* Generated from D:\Code\chaowan\lcd(1)\lcd\lcd\main\eye_image.c buyunqian1. */
|
||||
#include "lcd_direct_assets.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
extern const uint8_t _binary_buyunqian1_rle_start[] asm("_binary_buyunqian1_rle_start");
|
||||
extern const uint8_t _binary_buyunqian1_rle_end[] asm("_binary_buyunqian1_rle_end");
|
||||
extern const uint8_t _binary_jichubiaoqing0_rle_start[] asm("_binary_jichubiaoqing0_rle_start");
|
||||
extern const uint8_t _binary_jichubiaoqing1_rle_start[] asm("_binary_jichubiaoqing1_rle_start");
|
||||
extern const uint8_t _binary_jichubiaoqing2_rle_start[] asm("_binary_jichubiaoqing2_rle_start");
|
||||
extern const uint8_t _binary_muyu0_rle_start[] asm("_binary_muyu0_rle_start");
|
||||
extern const uint8_t _binary_muyu1_rle_start[] asm("_binary_muyu1_rle_start");
|
||||
extern const uint8_t _binary_muyu2_rle_start[] asm("_binary_muyu2_rle_start");
|
||||
|
||||
static const lcd_direct_image_t s_default_image = {
|
||||
.runs = (const lcd_direct_rle_run_t *)_binary_buyunqian1_rle_start,
|
||||
.run_count = 72552U,
|
||||
};
|
||||
|
||||
static const lcd_direct_image_t s_basic_face_frames[] = {
|
||||
{
|
||||
.runs = (const lcd_direct_rle_run_t *)_binary_jichubiaoqing0_rle_start,
|
||||
.run_count = 5893U,
|
||||
},
|
||||
{
|
||||
.runs = (const lcd_direct_rle_run_t *)_binary_jichubiaoqing1_rle_start,
|
||||
.run_count = 4581U,
|
||||
},
|
||||
{
|
||||
.runs = (const lcd_direct_rle_run_t *)_binary_jichubiaoqing2_rle_start,
|
||||
.run_count = 3651U,
|
||||
},
|
||||
};
|
||||
|
||||
static const lcd_direct_image_t s_muyu_frames[] = {
|
||||
{
|
||||
.runs = (const lcd_direct_rle_run_t *)_binary_muyu0_rle_start,
|
||||
.run_count = 63459U,
|
||||
},
|
||||
{
|
||||
.runs = (const lcd_direct_rle_run_t *)_binary_muyu1_rle_start,
|
||||
.run_count = 63665U,
|
||||
},
|
||||
{
|
||||
.runs = (const lcd_direct_rle_run_t *)_binary_muyu2_rle_start,
|
||||
.run_count = 63894U,
|
||||
},
|
||||
};
|
||||
|
||||
const lcd_direct_image_t *lcd_direct_default_image(void)
|
||||
{
|
||||
return &s_default_image;
|
||||
}
|
||||
|
||||
const lcd_direct_image_t *lcd_direct_asset_frame(const char *asset_dir, uint8_t frame_index)
|
||||
{
|
||||
if (asset_dir == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (strcmp(asset_dir, "jichubiaoqing") == 0) {
|
||||
if (frame_index < sizeof(s_basic_face_frames) / sizeof(s_basic_face_frames[0])) {
|
||||
return &s_basic_face_frames[frame_index];
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (strcmp(asset_dir, "muyu") == 0) {
|
||||
if (frame_index < sizeof(s_muyu_frames) / sizeof(s_muyu_frames[0])) {
|
||||
return &s_muyu_frames[frame_index];
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const lcd_direct_icon_t *lcd_direct_icon(uint16_t icon_id)
|
||||
{
|
||||
(void)icon_id;
|
||||
|
||||
Reference in New Issue
Block a user