fix(platform): move ST7789 params to Kconfig defaults

This commit is contained in:
admin
2026-02-28 14:43:02 +08:00
parent a549989332
commit 47a4aed0c4
5 changed files with 131 additions and 38 deletions

View File

@@ -487,7 +487,7 @@ config TQ_SCREEN_PIXEL_CLOCK_HZ
config TQ_SCREEN_H_RES
int "ST7789 horizontal resolution"
range 64 480
default 240
default 320
depends on TQ_SCREEN_ENABLE
config TQ_SCREEN_V_RES
@@ -510,6 +510,16 @@ config TQ_SCREEN_SPI_MODE
config TQ_SCREEN_COLOR_ORDER_BGR
bool "ST7789 color order is BGR"
default n
depends on TQ_SCREEN_ENABLE
config TQ_SCREEN_INVERT_COLOR
bool "ST7789 invert color"
default y
depends on TQ_SCREEN_ENABLE
config TQ_SCREEN_SWAP_COLOR_BYTES
bool "ST7789 swap color bytes"
default y
depends on TQ_SCREEN_ENABLE
@@ -520,7 +530,7 @@ config TQ_SCREEN_BACKLIGHT_ACTIVE_HIGH
config TQ_SCREEN_MIRROR_X
bool "ST7789 mirror X axis"
default n
default y
depends on TQ_SCREEN_ENABLE
config TQ_SCREEN_MIRROR_Y
@@ -530,7 +540,7 @@ config TQ_SCREEN_MIRROR_Y
config TQ_SCREEN_SWAP_XY
bool "ST7789 swap X/Y axis"
default n
default y
depends on TQ_SCREEN_ENABLE
config TQ_SCREEN_X_GAP