Update ini files

This commit is contained in:
fvanroie 2022-11-14 16:34:59 +01:00
parent 8ee02425a3
commit 9099a86882
7 changed files with 165 additions and 8 deletions

View File

@ -0,0 +1,85 @@
;***************************************************;
; Sunton ESP32-WROOM custom dev board with ;
; - ILI9341 TFT SPI 4-WIRE ;
; - XPT2046 touch controller ;
;***************************************************;
[esp32-2432s028r]
board = esp32dev
upload_speed = 921600
build_flags =
${env.build_flags}
${esp32.build_flags}
${esp32.no_ps_ram}
;region -- TFT_eSPI build options ------------------------
; -D USER_SETUP_LOADED=1
-D LGFX_USE_V1=1
-D ILI9341_DRIVER=1
-D TFT_ROTATION=0 ; 0=0, 1=90, 2=180 or 3=270 degree
-D TFT_WIDTH=240
-D TFT_HEIGHT=320
-D TFT_RST=-1
-D TFT_SCLK=14
-D TFT_DC=2
-D TFT_CS=15
-D TFT_MOSI=13
-D TFT_MISO=12
-D TFT_BCKL=21
-D SUPPORT_TRANSACTIONS
-D SPI_FREQUENCY=55000000
-D SPI_READ_FREQUENCY=20000000
-D ESP32_2432S028R=1
;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}
${lovyangfx.lib_deps}
lib_ignore =
${env.lib_ignore}
${esp32.lib_ignore}
${arduino_esp32_v2.lib_ignore}
;endregion
[env:esp32-2432s028r_4MB]
extends = esp32-2432s028r, esp32_4mb_v2
build_flags =
${esp32-2432s028r.build_flags}
-D TOUCH_DRIVER=0x2046 ; XPT2606 Resistive touch panel driver
-D HASP_USE_LGFX_TOUCH=1
-D TOUCH_CS=33
-D TOUCH_SCLK=25
-D TOUCH_MOSI=32
-D TOUCH_MISO=39
-D TOUCH_SDA=-1
-D TOUCH_SCL=-1
-D TOUCH_IRQ=36
-D SPI_TOUCH_FREQUENCY=2500000
; -- Debugging options -----------------------------
; -D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE
;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

View File

@ -1,7 +1,7 @@
;***************************************************;
; Sunton ESP32-WROOM custom dev board with ;
; - ST7796 TFT SPI 4-WIRE ;
; - XPT2046 / GT911 touch controller ;
; - XPT2046 or GT911 touch controller ;
;***************************************************;
[esp32-3248s035]

View File

@ -29,6 +29,12 @@ build_flags =
-D SUPPORT_TRANSACTIONS
-D TOUCH_CS=21
-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=27000000
-D SPI_TOUCH_FREQUENCY=2500000
-D SPI_READ_FREQUENCY=20000000
@ -43,6 +49,7 @@ lib_deps =
${esp32.lib_deps}
${arduino_esp32_v2.lib_deps}
${tft_espi.lib_deps}
;${lovyangfx.lib_deps}
lib_ignore =
${env.lib_ignore}

View File

@ -15,8 +15,8 @@ build_flags =
${esp32.ps_ram}
;region -- TFT_eSPI build options ------------------------
-D LGFX_USE_V1=1
;-D USER_SETUP_LOADED=1
;-D LGFX_USE_V1=1
-D USER_SETUP_LOADED=1
-D ILI9481_DRIVER=1
-D INVERT_COLORS=1
-D TFT_INVERSION_ON ; for inverted colors
@ -36,7 +36,7 @@ build_flags =
-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 TOUCH_DRIVER=0x0911 ; GT911 Capacitive I2C touch panel driver
-D TOUCH_IRQ=34
-D TOUCH_RST=-1
-D TOUCH_SDA=21
@ -52,7 +52,8 @@ lib_deps =
${env.lib_deps}
${esp32.lib_deps}
${arduino_esp32_v2.lib_deps}
${lovyangfx.lib_deps}
;${lovyangfx.lib_deps}
${tft_espi.lib_deps}
${goodix.lib_deps}
lib_ignore =

View File

@ -8,7 +8,7 @@
[env:esp32-s3-devkitc-1]
extends = esp32s3_8mb_v2
;board = esp32-s3-devkitc-1
board = esp32s3_opi
board = esp32s3_opi_opi
build_flags =
${env.build_flags}

View File

@ -0,0 +1,65 @@
;***************************************************;
; ESP32 DevKitC (38pin) build with ;
; - ili9488 TFT SPI 4-WIRE ;
; - xpt2046 touch controller ;
;***************************************************;
[freetouchdecks3]
;board = esp32-s3-devkitc-1
board = esp32s3_opi_opi
build_flags =
${env.build_flags}
${esp32s3.build_flags}
${esp32s3.no_ps_ram}
-D HASP_MODEL="FreeTouchDeck S3"
;region -- TFT_eSPI build options ------------------------
-D USER_SETUP_LOADED=1
;-D LGFX_USE_V1=1
-D ILI9488_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_MISO=13
-D TFT_MOSI=11
-D TFT_SCLK=12
-D TFT_CS=10 ;// Chip select control pin
-D TFT_DC=6 ;// Data Command control pin
-D TFT_RST=5 ;// Reset pin (could connect to RST pin)
-D TFT_BCKL=7 ;None, configurable via web UI (e.g. 2 for D4)
-D SUPPORT_TRANSACTIONS
-D =15
-D TOUCH_DRIVER=0x2046 ; XPT2606 Resistive touch panel driver
-D TOUCH_SDA=-1
-D TOUCH_SCL=-1
-D TOUCH_IRQ=16
-D I2C_TOUCH_PORT=0
-D I2C_TOUCH_ADDRESS=0
-D I2C_TOUCH_FREQUENCY=0
-D SPI_FREQUENCY=27000000
-D SPI_TOUCH_FREQUENCY=2500000
-D SPI_READ_FREQUENCY=20000000
-D SD_CS=4
;endregion
; -- Debugging options -----------------------------
; -D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
;region -- Library options -------------------------------
lib_deps =
${env.lib_deps}
${esp32s3.lib_deps}
${arduino_esp32s3_v2.lib_deps}
${tft_espi.lib_deps}
;${lovyangfx.lib_deps}
lib_ignore =
${env.lib_ignore}
${esp32s3.lib_ignore}
${arduino_esp32s3_v2.lib_ignore}
;endregion
[env:freetouchdeck-s3_8MB]
extends = freetouchdecks3, esp32s3_8mb_v2

View File

@ -71,7 +71,6 @@ lib_deps =
lib_ignore =
GxTFT
XPT2046_Touchscreen
Adafruit BusIO
Adafruit GFX Library
sstaub/Ticker
lv_drv_fsmc_ili9341