File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed
components/ugfx/src/gdriver Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 99
1010#undef GDISP_DRIVER_LIST
1111
12- #ifdef CONFIG_SCREEN_PANEL_ST7789
13- #define GDISP_DRIVER_LIST GDISPVMT_ST7789
14- #include "drivers/gdisp/ST7789/gdisp_lld_ST7789.c"
15- #else
12+ #ifdef CONFIG_SCREEN_PANEL_ST7735
1613 #define GDISP_DRIVER_LIST GDISPVMT_ST7735
1714 #include "drivers/gdisp/ST7735/gdisp_lld_ST7735.c"
15+ #else
16+ #define GDISP_DRIVER_LIST GDISPVMT_ST7789
17+ #include "drivers/gdisp/ST7789/gdisp_lld_ST7789.c"
1818#endif
Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ config AUDIO_OUTPUT_I2S_NUM
207207 int
208208 default 0 if AUDIO_OUTPUT_I2S0
209209 default 1 if AUDIO_OUTPUT_I2S1
210- depends on ENABLE_AUDIO_PROMPT
210+ default 2 if ! ENABLE_AUDIO_PROMPT
211211
212212config I2S_BCLK_PIN
213213 int "I2S BCLK Pin"
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ extern const char ani7_160x80_gif_end[] asm("_binary_ani7_160x80_gif_end");
3838// ani8.gif
3939extern const char ani8_160x80_gif_ptr [] asm("_binary_ani8_160x80_gif_start" );
4040extern const char ani8_160x80_gif_end [] asm("_binary_ani8_160x80_gif_end" );
41- #elif defined( CONFIG_SCREEN_PANEL_ST7789 )
41+ #else
4242// ani0.gif
4343extern const char ani0_240x135_gif_ptr [] asm("_binary_ani0_240x135_gif_start" );
4444extern const char ani0_240x135_gif_end [] asm("_binary_ani0_240x135_gif_end" );
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ void hspi_init(void)
2727 .quadhd_io_num = -1 ,
2828#ifdef CONFIG_SCREEN_PANEL_ST7735
2929 .max_transfer_sz = ST7735_SCREEN_WIDTH * ST7735_SCREEN_HEIGHT * 2
30- #elif defined( CONFIG_SCREEN_PANEL_ST7789 )
30+ #else
3131 .max_transfer_sz = ST7789_SCREEN_WIDTH * ST7789_SCREEN_HEIGHT * 2
3232#endif
3333 };
@@ -39,7 +39,7 @@ void hspi_init(void)
3939#ifdef CONFIG_SCREEN_PANEL_ST7735
4040 .clock_speed_hz = 26000000 , // Clock out at 26 MHz
4141 .pre_cb = st7735_setpin_dc , // Specify pre-transfer callback to handle D/C line
42- #elif defined( CONFIG_SCREEN_PANEL_ST7789 )
42+ #else
4343 .clock_speed_hz = 40000000 , // Clock out at 40 MHz
4444 .pre_cb = st7789_setpin_dc , // Specify pre-transfer callback to handle D/C line
4545#endif
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ static const char *img_file_ptr[][2] = {
2626 {ani6_160x80_gif_ptr , ani6_160x80_gif_end }, // "Error"
2727 {ani7_160x80_gif_ptr , ani7_160x80_gif_end }, // "Config"
2828 {ani8_160x80_gif_ptr , ani8_160x80_gif_end }, // "Updating"
29- #elif defined( CONFIG_SCREEN_PANEL_ST7789 )
29+ #else
3030 {ani0_240x135_gif_ptr , ani0_240x135_gif_end }, // "WiFi"
3131 {ani1_240x135_gif_ptr , ani1_240x135_gif_end }, // "Loading"
3232 {ani2_240x135_gif_ptr , ani2_240x135_gif_end }, // "Success"
You can’t perform that action at this time.
0 commit comments