diff --git a/components/platform/CMakeLists.txt b/components/platform/CMakeLists.txt index f2b7308..8a8e525 100644 --- a/components/platform/CMakeLists.txt +++ b/components/platform/CMakeLists.txt @@ -114,6 +114,7 @@ set(platform_lcd_png_assets tu1 jin0 jin1 + spin0 south0 southwest0 west0 diff --git a/components/platform/assets/lcd/spin0.png b/components/platform/assets/lcd/spin0.png new file mode 100644 index 0000000..dcd34ff Binary files /dev/null and b/components/platform/assets/lcd/spin0.png differ diff --git a/components/platform/src/lcd_direct_assets.c b/components/platform/src/lcd_direct_assets.c index f2545fa..bfb8ae4 100644 --- a/components/platform/src/lcd_direct_assets.c +++ b/components/platform/src/lcd_direct_assets.c @@ -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]),