Skip to content

Commit facc69c

Browse files
committed
misc: code clean up
1 parent 7a70bf2 commit facc69c

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

components/ugfx/src/gdriver/gdriver_mk.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
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

main/Kconfig.projbuild

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

212212
config I2S_BCLK_PIN
213213
int "I2S BCLK Pin"

main/inc/user/gui.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ extern const char ani7_160x80_gif_end[] asm("_binary_ani7_160x80_gif_end");
3838
// ani8.gif
3939
extern const char ani8_160x80_gif_ptr[] asm("_binary_ani8_160x80_gif_start");
4040
extern const char ani8_160x80_gif_end[] asm("_binary_ani8_160x80_gif_end");
41-
#elif defined(CONFIG_SCREEN_PANEL_ST7789)
41+
#else
4242
// ani0.gif
4343
extern const char ani0_240x135_gif_ptr[] asm("_binary_ani0_240x135_gif_start");
4444
extern const char ani0_240x135_gif_end[] asm("_binary_ani0_240x135_gif_end");

main/src/chip/spi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

main/src/user/gui.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)