feat(platform): add temporary spin placeholder asset
This commit is contained in:
@@ -114,6 +114,7 @@ set(platform_lcd_png_assets
|
|||||||
tu1
|
tu1
|
||||||
jin0
|
jin0
|
||||||
jin1
|
jin1
|
||||||
|
spin0
|
||||||
south0
|
south0
|
||||||
southwest0
|
southwest0
|
||||||
west0
|
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[] = {
|
static const lcd_direct_image_t s_south_frames[] = {
|
||||||
{.path = LCD_ASSET_BASE_PATH "south0.png"},
|
{.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);
|
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) {
|
if (strcmp(asset_dir, "south") == 0) {
|
||||||
return lcd_direct_frame_from_array(s_south_frames,
|
return lcd_direct_frame_from_array(s_south_frames,
|
||||||
sizeof(s_south_frames) / sizeof(s_south_frames[0]),
|
sizeof(s_south_frames) / sizeof(s_south_frames[0]),
|
||||||
|
|||||||
Reference in New Issue
Block a user