From 5a7042297bcc93ddf051d3ee972454cd6e4715a5 Mon Sep 17 00:00:00 2001 From: InfiniteYuan1 Date: Wed, 24 Oct 2018 17:37:30 +0800 Subject: [PATCH] update sdkconfig.defaults --- lvgl_example/sdkconfig.defaults | 63 +++++++++++++++++++-------------- 1 file changed, 37 insertions(+), 26 deletions(-) diff --git a/lvgl_example/sdkconfig.defaults b/lvgl_example/sdkconfig.defaults index f6de687..fc78d46 100644 --- a/lvgl_example/sdkconfig.defaults +++ b/lvgl_example/sdkconfig.defaults @@ -415,37 +415,48 @@ CONFIG_LVGL_DISP_ROTATE_270= # # Config Driver # -CONFIG_LVGL_DRIVER_TOUCH_XPT2046=y -CONFIG_LVGL_DRIVER_TOUCH_FT5X06= +CONFIG_LVGL_DRIVER_TOUCH_XPT2046= +CONFIG_LVGL_DRIVER_TOUCH_FT5X06=y # -# XPT2046 Touch Screen Pin Configuration +# FT5X06 Touch Screen Pin Configuration # -CONFIG_LVGL_TOUCH_CS_GPIO=32 -CONFIG_LVGL_TOUCH_IRQ_GPIO=33 +CONFIG_LVGL_TOUCH_IIC_NUM=0 +CONFIG_LVGL_TOUCH_SCL_GPIO=3 +CONFIG_LVGL_TOUCH_SDA_GPIO=1 CONFIG_LVGL_DRIVER_ILI9341= CONFIG_LVGL_DRIVER_SSD1306= -CONFIG_LVGL_DRIVER_ST7789=y -CONFIG_LVGL_DRIVER_NT35510= - -# -# ST7789 Screen Pin Configuration -# -CONFIG_LVGL_LCD_HSPI=y -CONFIG_LVGL_LCD_VSPI= -CONFIG_LVGL_LCD_SPI_NUM=1 -CONFIG_LVGL_LCD_SPI_CLOCK=20000000 -CONFIG_LVGL_LCD_MISO_GPIO=27 -CONFIG_LVGL_LCD_MOSI_GPIO=21 -CONFIG_LVGL_LCD_CLK_GPIO=22 -CONFIG_LVGL_LCD_CS_GPIO=5 -CONFIG_LVGL_LCD_DC_GPIO=19 -CONFIG_LVGL_LCD_RESET_GPIO=18 -CONFIG_LVGL_LCD_BL_GPIO=23 -CONFIG_ST7789_LVGL_DRIVER_SCREEN_WIDTH=240 -CONFIG_ST7789_LVGL_DRIVER_SCREEN_HEIGHT=320 -CONFIG_LVGL_DRIVER_SCREEN_WIDTH=240 -CONFIG_LVGL_DRIVER_SCREEN_HEIGHT=320 +CONFIG_LVGL_DRIVER_ST7789= +CONFIG_LVGL_DRIVER_NT35510=y + +# +# NT35510 Screen Pin Configuration +# +CONFIG_LVGL_LCD_I2S0=y +CONFIG_LVGL_LCD_I2S1= +CONFIG_LVGL_LCD_I2S_NUM=0 +CONFIG_LVGL_LCD_WR_GPIO=18 +CONFIG_LVGL_LCD_RS_GPIO=5 +CONFIG_LVGL_LCD_D0_GPIO=19 +CONFIG_LVGL_LCD_D1_GPIO=21 +CONFIG_LVGL_LCD_D2_GPIO=0 +CONFIG_LVGL_LCD_D3_GPIO=22 +CONFIG_LVGL_LCD_D4_GPIO=23 +CONFIG_LVGL_LCD_D5_GPIO=33 +CONFIG_LVGL_LCD_D6_GPIO=32 +CONFIG_LVGL_LCD_D7_GPIO=27 +CONFIG_LVGL_LCD_D8_GPIO=25 +CONFIG_LVGL_LCD_D9_GPIO=26 +CONFIG_LVGL_LCD_D10_GPIO=12 +CONFIG_LVGL_LCD_D11_GPIO=13 +CONFIG_LVGL_LCD_D12_GPIO=14 +CONFIG_LVGL_LCD_D13_GPIO=15 +CONFIG_LVGL_LCD_D14_GPIO=2 +CONFIG_LVGL_LCD_D15_GPIO=4 +CONFIG_NT35510_LVGL_DRIVER_SCREEN_WIDTH=480 +CONFIG_NT35510_LVGL_DRIVER_SCREEN_HEIGHT=800 +CONFIG_LVGL_DRIVER_SCREEN_WIDTH=480 +CONFIG_LVGL_DRIVER_SCREEN_HEIGHT=800 # # LWIP