2024-04-26 01:02:23 +10:00

35 lines
840 B
INI

[env:2424S012]
extends = arduino_esp32c3_v2, flash_4mb
; Close enough, sets it up to use USB-CDC rather than uart
board = seeed_xiao_esp32c3
build_flags =
-D HASP_MODEL="ESP32-2424S012"
${arduino_esp32c3_v2.build_flags}
${esp32c3.no_ps_ram}
; Display configuration
-D LGFX_USE_V1=1
-D HASP_USE_LGFX_TOUCH=1
;CST816S driver
-D TOUCH_DRIVER=0x816
-D GC9A01_DRIVER=1
-D TFT_WIDTH=240
-D TFT_HEIGHT=240
-D TOUCH_SDA=4
-D TOUCH_SCL=5
-D TOUCH_IRQ=0
-D TOUCH_RST=1
-D I2C_TOUCH_FREQUENCY=400000
-D I2C_TOUCH_PORT=0
-D I2C_TOUCH_ADDRESS=0x15
-D TFT_SCLK=6
-D TFT_MOSI=7
-D TFT_DC=2
-D TFT_CS=10
-D TFT_BCKL=3
-D SERIAL_SPEED=-1 ;otherwise requires serial term to boot first time
lib_deps =
${arduino_esp32s3_v2.lib_deps}
${lovyangfx.lib_deps}