mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-25 20:26:41 +00:00
Add esp32-3248s035c
This commit is contained in:
parent
2e23401d0e
commit
4f9656a8e2
133
user_setups/esp32/esp32-3248s035.ini
Normal file
133
user_setups/esp32/esp32-3248s035.ini
Normal file
@ -0,0 +1,133 @@
|
|||||||
|
;***************************************************;
|
||||||
|
; ESP32-WROOM custom dev board with ;
|
||||||
|
; - ST7796 TFT SPI 4-WIRE ;
|
||||||
|
; - xpt2046 touch controller ;
|
||||||
|
;***************************************************;
|
||||||
|
|
||||||
|
[esp32-3248s035]
|
||||||
|
board = esp32dev
|
||||||
|
|
||||||
|
build_flags =
|
||||||
|
${env.build_flags}
|
||||||
|
${esp32.build_flags}
|
||||||
|
${esp32.no_ps_ram}
|
||||||
|
|
||||||
|
;region -- TFT_eSPI build options ------------------------
|
||||||
|
${esp32.hspi} ; Use HSPI hardware SPI bus
|
||||||
|
-D USER_SETUP_LOADED=1
|
||||||
|
;-D LGFX_USE_V1=1
|
||||||
|
-D ST7796_DRIVER=1
|
||||||
|
-D TFT_ROTATION=0 ; 0=0, 1=90, 2=180 or 3=270 degree
|
||||||
|
-D TFT_WIDTH=320
|
||||||
|
-D TFT_HEIGHT=480
|
||||||
|
-D TFT_CS=15 ;// Chip select control pin
|
||||||
|
-D TFT_DC=2 ;// Data Command control pin
|
||||||
|
-D TFT_RST=-1 ;// Reset pin (could connect to RST pin)
|
||||||
|
-D TFT_BCKL=27 ;None, configurable via web UI (e.g. 2 for D4)
|
||||||
|
-D SUPPORT_TRANSACTIONS
|
||||||
|
-D SPI_FREQUENCY=65000000
|
||||||
|
-D SPI_READ_FREQUENCY=20000000
|
||||||
|
;endregion
|
||||||
|
|
||||||
|
; -- Debugging options -----------------------------
|
||||||
|
; -D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
|
||||||
|
|
||||||
|
;region -- Library options -------------------------------
|
||||||
|
lib_deps =
|
||||||
|
${env.lib_deps}
|
||||||
|
${esp32.lib_deps}
|
||||||
|
${arduino_esp32_v2.lib_deps}
|
||||||
|
${tft_espi.lib_deps}
|
||||||
|
;${lovyangfx.lib_deps}
|
||||||
|
|
||||||
|
lib_ignore =
|
||||||
|
${env.lib_ignore}
|
||||||
|
${esp32.lib_ignore}
|
||||||
|
${arduino_esp32_v2.lib_ignore}
|
||||||
|
;endregion
|
||||||
|
|
||||||
|
|
||||||
|
[env:esp32-3248s035r_4MB]
|
||||||
|
extends = esp32-3248s035, esp32_4mb_v2
|
||||||
|
build_flags =
|
||||||
|
${esp32-3248s035.build_flags}
|
||||||
|
-D TOUCH_CS=33
|
||||||
|
-D TOUCH_DRIVER=0x2046 ; XPT2606 Resistive touch panel driver
|
||||||
|
-D TOUCH_SDA=-1
|
||||||
|
-D TOUCH_SCL=-1
|
||||||
|
-D TOUCH_IRQ=-1
|
||||||
|
-D I2C_TOUCH_PORT=0
|
||||||
|
-D I2C_TOUCH_ADDRESS=0
|
||||||
|
-D I2C_TOUCH_FREQUENCY=0
|
||||||
|
-D SPI_TOUCH_FREQUENCY=2500000
|
||||||
|
|
||||||
|
[env:esp32-3248s035c_4MB]
|
||||||
|
extends = esp32-3248s035, esp32_4mb_v2
|
||||||
|
build_flags =
|
||||||
|
${esp32-3248s035.build_flags}
|
||||||
|
;-D TOUCH_CS=-1
|
||||||
|
-D TOUCH_DRIVER=0x0911 ; GT911 Capacitive touch panel driver
|
||||||
|
-D TOUCH_SDA=33
|
||||||
|
-D TOUCH_SCL=32
|
||||||
|
-D TOUCH_RST=25
|
||||||
|
-D TOUCH_IRQ=21
|
||||||
|
-D I2C_TOUCH_PORT=1
|
||||||
|
-D I2C_TOUCH_ADDRESS=0x5D ; or 0x14
|
||||||
|
-D I2C_TOUCH_FREQUENCY=400000
|
||||||
|
-D SPI_TOUCH_FREQUENCY=2500000
|
||||||
|
lib_deps =
|
||||||
|
${esp32-3248s035.lib_deps}
|
||||||
|
${goodix.lib_deps}
|
||||||
|
|
||||||
|
[env:esp32-3248s035c_4MB_lovyan]
|
||||||
|
extends = esp32_4mb_v2
|
||||||
|
board = esp32dev
|
||||||
|
|
||||||
|
build_flags =
|
||||||
|
${env.build_flags}
|
||||||
|
${esp32.build_flags}
|
||||||
|
${esp32.no_ps_ram}
|
||||||
|
|
||||||
|
;region -- TFT_eSPI build options ------------------------
|
||||||
|
${esp32.hspi} ; Use HSPI hardware SPI bus
|
||||||
|
;-D USER_SETUP_LOADED=1
|
||||||
|
-D LGFX_USE_V1=1
|
||||||
|
-D ST7796_DRIVER=1
|
||||||
|
-D TFT_ROTATION=0 ; 0=0, 1=90, 2=180 or 3=270 degree
|
||||||
|
-D TFT_WIDTH=320
|
||||||
|
-D TFT_HEIGHT=480
|
||||||
|
-D TFT_CS=15 ;// Chip select control pin
|
||||||
|
-D TFT_DC=2 ;// Data Command control pin
|
||||||
|
-D TFT_RST=-1 ;// Reset pin (could connect to RST pin)
|
||||||
|
-D TFT_BCKL=27 ;None, configurable via web UI (e.g. 2 for D4)
|
||||||
|
-D SUPPORT_TRANSACTIONS
|
||||||
|
-D TOUCH_SDA=33
|
||||||
|
-D TOUCH_SCL=32
|
||||||
|
-D TOUCH_IRQ=21
|
||||||
|
-D TOUCH_RST=25
|
||||||
|
-D I2C_TOUCH_FREQUENCY=400000
|
||||||
|
-D I2C_TOUCH_PORT=1
|
||||||
|
-D I2C_TOUCH_ADDRESS=0x5D ; or 0x14
|
||||||
|
-D TOUCH_DRIVER=0x0911 ; GT911 Capacitive I2C touch panel driver
|
||||||
|
-D SPI_FREQUENCY=65000000
|
||||||
|
-D SPI_TOUCH_FREQUENCY=2500000
|
||||||
|
-D SPI_READ_FREQUENCY=20000000
|
||||||
|
;endregion
|
||||||
|
|
||||||
|
; -- Debugging options -----------------------------
|
||||||
|
; -D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
|
||||||
|
|
||||||
|
;region -- Library options -------------------------------
|
||||||
|
lib_deps =
|
||||||
|
${env.lib_deps}
|
||||||
|
${esp32.lib_deps}
|
||||||
|
${arduino_esp32_v2.lib_deps}
|
||||||
|
;${tft_espi.lib_deps}
|
||||||
|
${lovyangfx.lib_deps}
|
||||||
|
;${goodix.lib_deps}
|
||||||
|
|
||||||
|
lib_ignore =
|
||||||
|
${env.lib_ignore}
|
||||||
|
${esp32.lib_ignore}
|
||||||
|
${arduino_esp32_v2.lib_ignore}
|
||||||
|
;endregion
|
@ -1,60 +0,0 @@
|
|||||||
;***************************************************;
|
|
||||||
; ESP32-WROOM custom dev board with ;
|
|
||||||
; - ST7796 TFT SPI 4-WIRE ;
|
|
||||||
; - xpt2046 touch controller ;
|
|
||||||
;***************************************************;
|
|
||||||
|
|
||||||
[esp32-3248s035]
|
|
||||||
board = esp32dev
|
|
||||||
|
|
||||||
build_flags =
|
|
||||||
${env.build_flags}
|
|
||||||
${esp32.build_flags}
|
|
||||||
${esp32.no_ps_ram}
|
|
||||||
|
|
||||||
;region -- TFT_eSPI build options ------------------------
|
|
||||||
${esp32.hspi} ; Use HSPI hardware SPI bus
|
|
||||||
-D USER_SETUP_LOADED=1
|
|
||||||
;-D LGFX_USE_V1=1
|
|
||||||
-D ST7796_DRIVER=1
|
|
||||||
-D TFT_ROTATION=0 ; 0=0, 1=90, 2=180 or 3=270 degree
|
|
||||||
-D TFT_WIDTH=320
|
|
||||||
-D TFT_HEIGHT=480
|
|
||||||
-D TFT_CS=15 ;// Chip select control pin
|
|
||||||
-D TFT_DC=2 ;// Data Command control pin
|
|
||||||
-D TFT_RST=-1 ;// Reset pin (could connect to RST pin)
|
|
||||||
-D TFT_BCKL=27 ;None, configurable via web UI (e.g. 2 for D4)
|
|
||||||
-D SUPPORT_TRANSACTIONS
|
|
||||||
-D TOUCH_CS=33
|
|
||||||
-D TOUCH_DRIVER=0x2046 ; XPT2606 Resistive touch panel driver
|
|
||||||
-D TOUCH_SDA=-1
|
|
||||||
-D TOUCH_SCL=-1
|
|
||||||
-D TOUCH_IRQ=-1
|
|
||||||
-D I2C_TOUCH_PORT=0
|
|
||||||
-D I2C_TOUCH_ADDRESS=0
|
|
||||||
-D I2C_TOUCH_FREQUENCY=0
|
|
||||||
-D SPI_FREQUENCY=65000000
|
|
||||||
-D SPI_TOUCH_FREQUENCY=2500000
|
|
||||||
-D SPI_READ_FREQUENCY=20000000
|
|
||||||
;endregion
|
|
||||||
|
|
||||||
; -- Debugging options -----------------------------
|
|
||||||
; -D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
|
|
||||||
|
|
||||||
;region -- Library options -------------------------------
|
|
||||||
lib_deps =
|
|
||||||
${env.lib_deps}
|
|
||||||
${esp32.lib_deps}
|
|
||||||
${arduino_esp32_v2.lib_deps}
|
|
||||||
${tft_espi.lib_deps}
|
|
||||||
;${lovyangfx.lib_deps}
|
|
||||||
|
|
||||||
lib_ignore =
|
|
||||||
${env.lib_ignore}
|
|
||||||
${esp32.lib_ignore}
|
|
||||||
${arduino_esp32_v2.lib_ignore}
|
|
||||||
;endregion
|
|
||||||
|
|
||||||
|
|
||||||
[env:esp32-3248s035r_4MB]
|
|
||||||
extends = esp32-3248s035, esp32_4mb_v2
|
|
Loading…
x
Reference in New Issue
Block a user