1cb52997a9
Embed a Latin-1 Meslo LG S default and use OpenFontRender for anti-aliased text with an explicit pixel size on each draw and measurement call. Apps may replace the one retained face with an SD-backed TTF and restore Meslo with nil. Refresh UI sizing, status telemetry, Settings typography, tests, documentation, and font license notices.
43 lines
1.1 KiB
INI
43 lines
1.1 KiB
INI
[env:esp32-32e]
|
|
platform = espressif32@6.10.0
|
|
board = esp32dev
|
|
framework = arduino
|
|
monitor_speed = 115200
|
|
upload_speed = 921600
|
|
|
|
board_build.partitions = partitions.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
|
|
; TFT_eSPI only drives the backlight pin when both macros are set, so without
|
|
; TFT_BACKLIGHT_ON the panel renders correctly and stays dark.
|
|
-DTFT_BL=27
|
|
-DTFT_BACKLIGHT_ON=HIGH
|
|
-DSPI_FREQUENCY=40000000
|
|
-DSPI_TOUCH_FREQUENCY=2500000
|
|
-DLOAD_GLCD
|
|
; OpenFontRender's generic ESP32 path uses stdio, which cannot see Arduino SD.
|
|
-DARDUINO_M5_SERIES
|
|
|
|
board_build.embed_files =
|
|
assets/fonts/MesloLGS-Regular.ttf
|
|
|
|
lib_deps =
|
|
bodmer/TFT_eSPI@^2.5.43
|
|
https://github.com/PaulStoffregen/XPT2046_Touchscreen.git
|
|
https://github.com/Bodmer/OpenFontRender.git#5e0ec22eef4bc93f963360438a9eb8e5407ef1c4
|