New tft lib

This commit is contained in:
2022-06-25 23:32:49 +02:00
parent d6b2b4b41c
commit 8e8e694b57
3 changed files with 73 additions and 16 deletions

View File

@ -1,21 +1,6 @@
set(BOBBY_APP_NAME bobbyquad_feedc0de)
set(BOBBY_DEFAULT_OTA_NAME feedc0de)
add_definitions(
-DUSER_SETUP_LOADED=1
-DLOAD_GLCD=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT7=1
-DILI9341_DRIVER=1
-DTFT_MOSI=13
-DTFT_SCLK=15
-DTFT_CS=14
-DTFT_DC=12
-DTFT_RST=2
-DSPI_FREQUENCY=40000000
)
set(BOBBYCAR_BUILDFLAGS
# Pins
-DPINS_GAS=34

View File

@ -1612,6 +1612,78 @@ CONFIG_WPA_MBEDTLS_TLS_CLIENT=y
# CONFIG_WPA_WPS_SOFTAP_REGISTRAR is not set
# end of Supplicant
#
# TFT_eSPI
#
CONFIG_TFT_eSPI_ESPIDF=y
CONFIG_TFT_ILI9341_DRIVER=y
# CONFIG_TFT_ILI9341_2_DRIVER is not set
# CONFIG_TFT_ST7735_DRIVER is not set
# CONFIG_TFT_ILI9163_DRIVER is not set
# CONFIG_TFT_S6D02A1_DRIVER is not set
# CONFIG_TFT_HX8357D_DRIVER is not set
# CONFIG_TFT_ILI9481_DRIVER is not set
# CONFIG_TFT_ILI9486_DRIVER is not set
# CONFIG_TFT_ILI9488_DRIVER is not set
# CONFIG_TFT_ST7789_DRIVER is not set
# CONFIG_TFT_ST7789_2_DRIVER is not set
# CONFIG_TFT_R61581_DRIVER is not set
# CONFIG_TFT_RM68140_DRIVER is not set
# CONFIG_TFT_ST7796_DRIVER is not set
# CONFIG_TFT_SSD1351_DRIVER is not set
# CONFIG_TFT_SSD1963_480_DRIVER is not set
# CONFIG_TFT_SSD1963_800_DRIVER is not set
# CONFIG_TFT_SSD1963_800ALT_DRIVER is not set
# CONFIG_TFT_ILI9225_DRIVER is not set
# CONFIG_TFT_GC9A01_DRIVER is not set
CONFIG_TFT_RGB_ORDER=y
# CONFIG_TFT_BGR_ORDER is not set
# CONFIG_TFT_M5STACK is not set
CONFIG_TFT_INVERSION_DISABLE=y
# CONFIG_TFT_INVERSION_ON is not set
# CONFIG_TFT_INVERSION_OFF is not set
# CONFIG_TFT_PARALLEL_8_BIT is not set
#
# Display SPI config
#
CONFIG_TFT_MISO=-1
CONFIG_TFT_MOSI=13
CONFIG_TFT_SCLK=15
# CONFIG_TFT_SDA_READ is not set
CONFIG_TFT_SPI_FREQUENCY=40000000
CONFIG_TFT_SPI_READ_FREQ=20000000
# end of Display SPI config
#
# Control Pin configuration
#
CONFIG_TFT_CS=14
CONFIG_TFT_DC=12
CONFIG_TFT_RST=2
# CONFIG_ENABLE_BL is not set
# end of Control Pin configuration
#
# Fonts
#
# CONFIG_TFT_LOAD_GLCD is not set
CONFIG_TFT_LOAD_FONT2=y
CONFIG_TFT_LOAD_FONT4=y
# CONFIG_TFT_LOAD_FONT6 is not set
CONFIG_TFT_LOAD_FONT7=y
# CONFIG_TFT_LOAD_FONT8 is not set
# CONFIG_TFT_LOAD_GFXFF is not set
# CONFIG_TFT_SMOOTH_FONT is not set
# end of Fonts
#
# Touch screen configuration
#
# CONFIG_ENABLE_TOUCH is not set
# end of Touch screen configuration
# end of TFT_eSPI
#
# ESP-NimBLE-CPP configuration
#