@@ -24,30 +24,23 @@ static const uint8_t *img_file_ptr[][2] = {
2424 {ani1_128x128_gif_ptr , ani1_128x128_gif_end }, // "Standby"
2525 {ani2_128x128_gif_ptr , ani2_128x128_gif_end }, // "Pause"
2626 {ani3_128x128_gif_ptr , ani3_128x128_gif_end } // "Playing"
27- #elif defined( CONFIG_SCREEN_PANEL_ST7735 )
27+ #else
2828 {ani0_160x80_gif_ptr , ani0_160x80_gif_end }, // "Bluetooth"
2929 {ani1_160x80_gif_ptr , ani1_160x80_gif_end }, // "Standby"
3030 {ani2_160x80_gif_ptr , ani2_160x80_gif_end }, // "Pause"
3131 {ani3_160x80_gif_ptr , ani3_160x80_gif_end } // "Playing"
32- #elif defined(CONFIG_SCREEN_PANEL_ST7789 )
33- {ani0_240x240_gif_ptr , ani0_240x240_gif_end }, // "Bluetooth"
34- {ani1_240x240_gif_ptr , ani1_240x240_gif_end }, // "Standby"
35- {ani2_240x240_gif_ptr , ani2_240x240_gif_end }, // "Pause"
36- {ani3_240x240_gif_ptr , ani3_240x240_gif_end } // "Playing"
3732#endif
3833 };
3934uint8_t img_file_index = 0 ;
4035
4136void gui_show_image (uint8_t filename_index )
4237{
43- #if !defined(CONFIG_SCREEN_PANEL_NONE )
4438 if (filename_index >= (sizeof (img_file_ptr ) / 2 )) {
4539 ESP_LOGE (TAG , "invalid filename index" );
4640 return ;
4741 }
4842 img_file_index = filename_index ;
4943 xEventGroupSetBits (task_event_group , GUI_RELOAD_BIT );
50- #endif
5144}
5245
5346void gui_task (void * pvParameter )
0 commit comments