@@ -24,30 +24,23 @@ static const uint8_t *img_file_ptr[][2] = {
24
24
{ani1_128x128_gif_ptr , ani1_128x128_gif_end }, // "Standby"
25
25
{ani2_128x128_gif_ptr , ani2_128x128_gif_end }, // "Pause"
26
26
{ani3_128x128_gif_ptr , ani3_128x128_gif_end } // "Playing"
27
- #elif defined( CONFIG_SCREEN_PANEL_ST7735 )
27
+ #else
28
28
{ani0_160x80_gif_ptr , ani0_160x80_gif_end }, // "Bluetooth"
29
29
{ani1_160x80_gif_ptr , ani1_160x80_gif_end }, // "Standby"
30
30
{ani2_160x80_gif_ptr , ani2_160x80_gif_end }, // "Pause"
31
31
{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"
37
32
#endif
38
33
};
39
34
uint8_t img_file_index = 0 ;
40
35
41
36
void gui_show_image (uint8_t filename_index )
42
37
{
43
- #if !defined(CONFIG_SCREEN_PANEL_NONE )
44
38
if (filename_index >= (sizeof (img_file_ptr ) / 2 )) {
45
39
ESP_LOGE (TAG , "invalid filename index" );
46
40
return ;
47
41
}
48
42
img_file_index = filename_index ;
49
43
xEventGroupSetBits (task_event_group , GUI_RELOAD_BIT );
50
- #endif
51
44
}
52
45
53
46
void gui_task (void * pvParameter )
0 commit comments