ad396d3f01
Boots to a launcher that lists /apps/<name>/main.lua on the SD card and runs the selected app in a vendored Lua 5.4 with gui, input, fs, sys and log bindings. Settings persist as a Lua table in /settings.lua, covering touch calibration and screen rotation, with a settings app to edit both. Rotation is applied after mapping raw touch into the panel's rotation-0 frame, so turning the UI never invalidates a calibration.
34 lines
653 B
INI
34 lines
653 B
INI
[env:esp32-32e]
|
|
platform = espressif32@6.10.0
|
|
board = esp32dev
|
|
framework = arduino
|
|
monitor_speed = 115200
|
|
upload_speed = 921600
|
|
|
|
board_build.partitions = default.csv
|
|
|
|
build_unflags = -w
|
|
build_flags =
|
|
-w
|
|
-DLUA_32BITS
|
|
; ST7796 and touch share HSPI; SD uses the separate VSPI bus
|
|
-DUSER_SETUP_LOADED
|
|
-DST7796_DRIVER
|
|
-DTFT_WIDTH=320
|
|
-DTFT_HEIGHT=480
|
|
-DUSE_HSPI_PORT
|
|
-DTFT_MOSI=13
|
|
-DTFT_MISO=12
|
|
-DTFT_SCLK=14
|
|
-DTFT_CS=15
|
|
-DTFT_DC=2
|
|
-DTFT_RST=-1
|
|
-DTFT_BL=27
|
|
-DSPI_FREQUENCY=40000000
|
|
-DSPI_TOUCH_FREQUENCY=2500000
|
|
-DLOAD_GLCD
|
|
|
|
lib_deps =
|
|
bodmer/TFT_eSPI@^2.5.43
|
|
https://github.com/PaulStoffregen/XPT2046_Touchscreen.git
|