feat(platform): add temporary spin placeholder asset

This commit is contained in:
chenjintao
2026-08-11 16:40:17 +08:00
parent e5d60ca44b
commit 83432d34a3
3 changed files with 11 additions and 0 deletions
+1
View File
@@ -114,6 +114,7 @@ set(platform_lcd_png_assets
tu1
jin0
jin1
spin0
south0
southwest0
west0
Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

@@ -155,6 +155,10 @@ static const lcd_direct_image_t s_jin_frames[] = {
},
};
static const lcd_direct_image_t s_spin_frames[] = {
{.path = LCD_ASSET_BASE_PATH "spin0.png"},
};
static const lcd_direct_image_t s_south_frames[] = {
{.path = LCD_ASSET_BASE_PATH "south0.png"},
};
@@ -310,6 +314,12 @@ const lcd_direct_image_t *lcd_direct_asset_frame(const char *asset_dir, uint8_t
frame_index);
}
if (strcmp(asset_dir, "spin") == 0) {
return lcd_direct_frame_from_array(s_spin_frames,
sizeof(s_spin_frames) / sizeof(s_spin_frames[0]),
frame_index);
}
if (strcmp(asset_dir, "south") == 0) {
return lcd_direct_frame_from_array(s_south_frames,
sizeof(s_south_frames) / sizeof(s_south_frames[0]),