-
-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #838 from bennydiamond/feature/esp32-2432s022c_sup…
…port Initial support for Guition ESP32-2432S022C
- Loading branch information
Showing
2 changed files
with
131 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
[env:esp32-2432s022c] | ||
extends = arduino_esp32_v2, flash_4mb | ||
board = esp32dev | ||
upload_speed = 921600 | ||
|
||
build_flags = | ||
${arduino_esp32_v2.build_flags} | ||
${esp32.no_ps_ram} | ||
|
||
;region -- TFT_eSPI build options ------------------------ | ||
-D ESP32_2432S022C=1 | ||
-D LGFX_USE_V1=1 | ||
; -D USER_SETUP_LOADED=1 | ||
-D ST7789_DRIVER=1 | ||
; -D CGRAM_OFFSET=1 | ||
; -DSUPPORT_TRANSACTIONS | ||
-D TFT_INVERSION_OFF | ||
-D TFT_PARALLEL_8_BIT | ||
-D TFT_ROTATION=0 ; 0=0, 1=90, 2=180 or 3=270 degree | ||
-D TFT_WIDTH=240 | ||
-D TFT_HEIGHT=320 | ||
-D TFT_CS=17 ; Chip select control pin=library pulls permanently low | ||
-D TFT_DC=16 ; Data Command control pin | ||
-D TFT_RST=-1 ; Reset pin, toggles on startup | ||
-D TFT_WR=4 ; Write strobe control pin | ||
-D TFT_RD=2 ; Read strobe control pin | ||
-D TFT_D0=15 | ||
-D TFT_D1=13 | ||
-D TFT_D2=12 | ||
-D TFT_D3=14 | ||
-D TFT_D4=27 | ||
-D TFT_D5=25 | ||
-D TFT_D6=33 | ||
-D TFT_D7=32 | ||
-D TFT_BCKL=0 ; LED back-light | ||
|
||
;CST816S driver | ||
-D TOUCH_DRIVER=0x816 | ||
-D HASP_USE_LGFX_TOUCH=1 | ||
-D I2C_TOUCH_PORT=I2C_NUM_0 | ||
-D TOUCH_SDA=21 | ||
-D TOUCH_SCL=22 | ||
-D TOUCH_IRQ=-1 | ||
-D TOUCH_RST=-1 | ||
-D I2C_TOUCH_FREQUENCY=400000 | ||
-D I2C_TOUCH_ADDRESS=0x15 | ||
|
||
|
||
-D SD_MISO=19 | ||
-D SD_MOSI=23 | ||
-D SD_SCLK=18 | ||
-D SD_CS=5 | ||
|
||
; sound output is on IO26, through an SC8002B IC | ||
|
||
; -- Debugging options ----------------------------- | ||
; -D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG | ||
;endregion | ||
|
||
lib_deps = | ||
${arduino_esp32_v2.lib_deps} | ||
${lovyangfx.lib_deps} | ||
;${tft_espi.lib_deps} | ||
|