增加了双击SW2显示五行
Flash资源已用完
This commit is contained in:
@@ -129,6 +129,101 @@ static const lcd_direct_image_t s_chouqian_zhongshang_frames[] = {
|
||||
},
|
||||
};
|
||||
|
||||
static const lcd_direct_image_t s_qianzhiwuxing_frames[] = {
|
||||
{
|
||||
.path = LCD_ASSET_BASE_PATH "qianzhiwuxing0.rle",
|
||||
.run_count = 4157U,
|
||||
},
|
||||
};
|
||||
|
||||
static const lcd_direct_image_t s_shui_frames[] = {
|
||||
{
|
||||
.path = LCD_ASSET_BASE_PATH "shui0.rle",
|
||||
.run_count = 74146U,
|
||||
},
|
||||
{
|
||||
.path = LCD_ASSET_BASE_PATH "shui1.rle",
|
||||
.run_count = 71868U,
|
||||
},
|
||||
};
|
||||
|
||||
static const lcd_direct_image_t s_mu_frames[] = {
|
||||
{
|
||||
.path = LCD_ASSET_BASE_PATH "mu0.rle",
|
||||
.run_count = 73537U,
|
||||
},
|
||||
{
|
||||
.path = LCD_ASSET_BASE_PATH "mu1.rle",
|
||||
.run_count = 69337U,
|
||||
},
|
||||
};
|
||||
|
||||
static const lcd_direct_image_t s_huo_frames[] = {
|
||||
{
|
||||
.path = LCD_ASSET_BASE_PATH "huo0.rle",
|
||||
.run_count = 74455U,
|
||||
},
|
||||
{
|
||||
.path = LCD_ASSET_BASE_PATH "huo1.rle",
|
||||
.run_count = 72474U,
|
||||
},
|
||||
};
|
||||
|
||||
static const lcd_direct_image_t s_tu_frames[] = {
|
||||
{
|
||||
.path = LCD_ASSET_BASE_PATH "tu0.rle",
|
||||
.run_count = 95829U,
|
||||
},
|
||||
{
|
||||
.path = LCD_ASSET_BASE_PATH "tu1.rle",
|
||||
.run_count = 71964U,
|
||||
},
|
||||
};
|
||||
|
||||
static const lcd_direct_image_t s_jin_frames[] = {
|
||||
{
|
||||
.path = LCD_ASSET_BASE_PATH "jin0.rle",
|
||||
.run_count = 75151U,
|
||||
},
|
||||
{
|
||||
.path = LCD_ASSET_BASE_PATH "jin1.rle",
|
||||
.run_count = 72012U,
|
||||
},
|
||||
};
|
||||
|
||||
static const lcd_direct_icon_t s_wuxing_icons[] = {
|
||||
{
|
||||
.path = LCD_ASSET_BASE_PATH "icon_shui0.rle",
|
||||
.run_count = 549U,
|
||||
.width = 60U,
|
||||
.height = 56U,
|
||||
},
|
||||
{
|
||||
.path = LCD_ASSET_BASE_PATH "icon_mu0.rle",
|
||||
.run_count = 1005U,
|
||||
.width = 86U,
|
||||
.height = 50U,
|
||||
},
|
||||
{
|
||||
.path = LCD_ASSET_BASE_PATH "icon_huo0.rle",
|
||||
.run_count = 565U,
|
||||
.width = 56U,
|
||||
.height = 58U,
|
||||
},
|
||||
{
|
||||
.path = LCD_ASSET_BASE_PATH "icon_tu0.rle",
|
||||
.run_count = 754U,
|
||||
.width = 75U,
|
||||
.height = 42U,
|
||||
},
|
||||
{
|
||||
.path = LCD_ASSET_BASE_PATH "icon_jin0.rle",
|
||||
.run_count = 605U,
|
||||
.width = 65U,
|
||||
.height = 44U,
|
||||
},
|
||||
};
|
||||
|
||||
static const lcd_direct_image_t *lcd_direct_frame_from_array(const lcd_direct_image_t *frames,
|
||||
size_t frame_count,
|
||||
uint8_t frame_index)
|
||||
@@ -198,13 +293,51 @@ const lcd_direct_image_t *lcd_direct_asset_frame(const char *asset_dir, uint8_t
|
||||
frame_index);
|
||||
}
|
||||
|
||||
if (strcmp(asset_dir, "qianzhiwuxing") == 0) {
|
||||
return lcd_direct_frame_from_array(s_qianzhiwuxing_frames,
|
||||
sizeof(s_qianzhiwuxing_frames) / sizeof(s_qianzhiwuxing_frames[0]),
|
||||
frame_index);
|
||||
}
|
||||
|
||||
if (strcmp(asset_dir, "shui") == 0) {
|
||||
return lcd_direct_frame_from_array(s_shui_frames,
|
||||
sizeof(s_shui_frames) / sizeof(s_shui_frames[0]),
|
||||
frame_index);
|
||||
}
|
||||
|
||||
if (strcmp(asset_dir, "mu") == 0) {
|
||||
return lcd_direct_frame_from_array(s_mu_frames,
|
||||
sizeof(s_mu_frames) / sizeof(s_mu_frames[0]),
|
||||
frame_index);
|
||||
}
|
||||
|
||||
if (strcmp(asset_dir, "huo") == 0) {
|
||||
return lcd_direct_frame_from_array(s_huo_frames,
|
||||
sizeof(s_huo_frames) / sizeof(s_huo_frames[0]),
|
||||
frame_index);
|
||||
}
|
||||
|
||||
if (strcmp(asset_dir, "tu") == 0) {
|
||||
return lcd_direct_frame_from_array(s_tu_frames,
|
||||
sizeof(s_tu_frames) / sizeof(s_tu_frames[0]),
|
||||
frame_index);
|
||||
}
|
||||
|
||||
if (strcmp(asset_dir, "jin") == 0) {
|
||||
return lcd_direct_frame_from_array(s_jin_frames,
|
||||
sizeof(s_jin_frames) / sizeof(s_jin_frames[0]),
|
||||
frame_index);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const lcd_direct_icon_t *lcd_direct_icon(uint16_t icon_id)
|
||||
{
|
||||
(void)icon_id;
|
||||
return NULL;
|
||||
if (icon_id >= (sizeof(s_wuxing_icons) / sizeof(s_wuxing_icons[0]))) {
|
||||
return NULL;
|
||||
}
|
||||
return &s_wuxing_icons[icon_id];
|
||||
}
|
||||
|
||||
const lcd_direct_icon_draw_t *lcd_direct_default_icon_sequence(size_t *out_count)
|
||||
|
||||
Reference in New Issue
Block a user