mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-04-19 12:57:19 +00:00
91 lines
2.4 KiB
INI
91 lines
2.4 KiB
INI
;***************************************************;
|
|
; Lilygo T-Panel S3, 4-Inch Touch Screen ;
|
|
; - Custom esp32-s3 board ;
|
|
; - st7701s TFT ;
|
|
; - CST3240 touch controller (WIP) ;
|
|
; - IO Expansion: XL9535 ;
|
|
;***************************************************;
|
|
|
|
[lilygo-t-panel]
|
|
extends = arduino_esp32s3_v2
|
|
board = esp32s3_flash_16MB
|
|
|
|
; board_build.memory_type = qio_opi ;Enable internal PSRAM
|
|
board_build.memory_type = qio_qspi ;Enable external PSRAM
|
|
|
|
board_upload.flash_size = 16MB
|
|
board_build.partitions = default_16MB.csv
|
|
|
|
build_flags =
|
|
-D HASP_MODEL="Lilygo T-Panel v1.2"
|
|
${arduino_esp32s3_v2.build_flags}
|
|
${esp32s3.ps_ram}
|
|
-DLILYGO_T_PANEL
|
|
-D LILYGO_T_PANEL=1
|
|
|
|
-Wall ;all errors that everybody could agree on
|
|
-Wextra ;somebody agree on
|
|
; -Werror ;Think of "Warning" as "Error".
|
|
; -D CORE_DEBUG_LEVEL=1 ;Debug level 0-5
|
|
-D BOARD_HAS_PSRAM ;Enable external PSRAM
|
|
-D ARDUINO_USB_MODE=1
|
|
-D ARDUINO_USB_CDC_ON_BOOT=0 ;1 is to use the USB port as a serial port
|
|
-D ARDUINO_RUNNING_CORE=1 ; Arduino Runs On Core (setup, loop)
|
|
-D ARDUINO_EVENT_RUNNING_CORE=1 ; Events Run On Core
|
|
|
|
;region -- ArduinoGFX build options ------------------------
|
|
-D HASP_USE_ARDUINOGFX=1
|
|
-D HASP_LV_USE_SW_ROTATE=1
|
|
-D ST7701_DRIVER=1
|
|
-D TFT_WIDTH=480
|
|
-D TFT_HEIGHT=480
|
|
; Bus Settings
|
|
-D TFT_HSYNC=39
|
|
-D TFT_VSYNC=40
|
|
-D TFT_PCLK=41
|
|
-D TFT_B0=1
|
|
-D TFT_B1=2
|
|
-D TFT_B2=3
|
|
-D TFT_B3=4
|
|
-D TFT_B4=5
|
|
-D TFT_G0=6
|
|
-D TFT_G1=7
|
|
-D TFT_G2=8
|
|
-D TFT_G3=9
|
|
-D TFT_G4=10
|
|
-D TFT_G5=11
|
|
-D TFT_R0=12
|
|
-D TFT_R1=13
|
|
-D TFT_R2=42
|
|
-D TFT_R3=46
|
|
-D TFT_R4=45
|
|
-D TFT_BCKL=14
|
|
|
|
; Touch Settings
|
|
-D TOUCH_MODULES_CST_MUTUAL
|
|
-D TOUCH_DRIVER=0x3240
|
|
-D TOUCH_WIDTH=480
|
|
-D TOUCH_HEIGHT=480
|
|
-D TOUCH_SDA=17
|
|
-D TOUCH_SCL=18
|
|
-D TOUCH_INT=21
|
|
-D TOUCH_RST=-1
|
|
-D TOUCH_CS=-1
|
|
-D TOUCH_IRQ=TOUCH_INT
|
|
-D I2C_TOUCH_FREQUENCY=400000UL
|
|
-D I2C_TOUCH_ADDRESS=0x5A
|
|
; -D I2C_TOUCH_PORT=
|
|
|
|
-D LV_DISP_DEF_REFR_PERIOD=10
|
|
|
|
;endregion
|
|
|
|
lib_deps =
|
|
${arduino_esp32s3_v2.lib_deps}
|
|
git+https://github.com/mmMicky/TouchLib.git
|
|
moononournation/GFX Library for Arduino@1.4.0
|
|
[env:lilygo-t-panel_16MB]
|
|
extends = lilygo-t-panel, flash_16mb
|
|
; monitor_port = COM8
|
|
; upload_port = COM8
|