mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-04-19 12:57:19 +00:00
Re-organize lcd_config
This commit is contained in:
parent
986561b6da
commit
198e89815e
@ -15,7 +15,8 @@ build_flags =
|
||||
-D HASP_MODEL="Arduitouch ESP32"
|
||||
|
||||
;region -- TFT_eSPI build options ------------------------
|
||||
${lcd.lolin24}
|
||||
${lcd.ili9341}
|
||||
${touch.xpt2046}
|
||||
${esp32.vspi} ; Use VSPI hardware SPI bus
|
||||
-D TFT_DC=4
|
||||
-D TFT_CS=5
|
||||
|
@ -15,7 +15,8 @@ build_flags =
|
||||
-D HASP_MODEL="ESP32 D1 Mini"
|
||||
|
||||
;region -- TFT_eSPI build options ------------------------
|
||||
${lcd.lolin24}
|
||||
${lcd.ili9341}
|
||||
${touch.xpt2046}
|
||||
${esp32.vspi} ; Use VSPI hardware SPI bus
|
||||
-D TFT_DC=5
|
||||
-D TFT_CS=26
|
||||
|
@ -21,7 +21,8 @@ build_flags =
|
||||
-D HASP_MODEL="Lolin D32 Pro"
|
||||
|
||||
;region -- TFT_eSPI build options ------------------------
|
||||
${lcd.lolin24}
|
||||
${lcd.ili9341}
|
||||
${touch.xpt2046}
|
||||
${esp32.vspi} ; Use VSPI hardware SPI bus
|
||||
-D USE_TFT_ESPI
|
||||
; The board already defines the macros for the TFT connector:
|
||||
|
@ -14,7 +14,8 @@ build_flags =
|
||||
${esp8266.build_flags}
|
||||
|
||||
;region -- TFT_eSPI build options ------------------------
|
||||
${lcd.lolin24}
|
||||
${lcd.ili9341}
|
||||
${touch.xpt2046}
|
||||
;-D TFT_MISO=12 ;D6 Use default HSPI
|
||||
;-D TFT_MOSI=13 ;D7 Use default HSPI
|
||||
;-D TFT_SCLK=14 ;D5 Use default HSPI
|
||||
|
@ -1,3 +1,17 @@
|
||||
; -- Standard configuration parameters for supported touch panels
|
||||
[touch]
|
||||
xpt2046 =
|
||||
-D SPI_TOUCH_FREQUENCY=2500000
|
||||
-D TOUCH_DRIVER=2046 ; XPT2046 Resistive SPI touch panel driver
|
||||
|
||||
gt911 =
|
||||
-D TOUCH_DRIVER=911 ; GT911 Capacitive I2C touch panel driver
|
||||
-D I2C_TOUCH_FREQUENCY=400000
|
||||
|
||||
stmpe610 =
|
||||
-D TOUCH_DRIVER=610 ;STMPE610 Capacitive SPI touch panel driver
|
||||
-D SPI_TOUCH_FREQUENCY=2500000
|
||||
|
||||
; -- Standard configuration parameters for supported displays
|
||||
[lcd]
|
||||
tft_rotation = 0 ; default rotation
|
||||
@ -14,6 +28,16 @@ tft_height = 320 ; default height
|
||||
; 6 - mirror content, and rotate 0 deg anti-clockwise
|
||||
; 7 - mirror content, and rotate 90 deg anti-clockwise
|
||||
|
||||
ili9341 =
|
||||
-D ILI9341_DRIVER=1
|
||||
-D TFT_WIDTH=240
|
||||
-D TFT_HEIGHT=320
|
||||
-D TFT_ROTATION=0 ; Use default, see TFT_ROTATION values
|
||||
-D SPI_FREQUENCY=40000000
|
||||
-D SPI_READ_FREQUENCY=20000000
|
||||
-D USER_SETUP_LOADED=1
|
||||
-D SUPPORT_TRANSACTIONS
|
||||
|
||||
lolin24 =
|
||||
-D ILI9341_DRIVER=1
|
||||
-D TFT_WIDTH=240
|
||||
|
Loading…
x
Reference in New Issue
Block a user