53 lines
1.2 KiB
INI
53 lines
1.2 KiB
INI
[platformio]
|
|
default_envs = knobby
|
|
|
|
[env]
|
|
board = ttgo-t1
|
|
framework = arduino, espidf
|
|
platform = espressif32 @ 6.7.0
|
|
platform_packages =
|
|
framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.17
|
|
board_build.flash_mode = dio
|
|
board_build.partitions = partitions.csv
|
|
monitor_filters = default, esp32_exception_decoder
|
|
monitor_speed = 115200
|
|
upload_protocol = esptool
|
|
upload_speed = 921600
|
|
|
|
[common]
|
|
build_flags =
|
|
-Os
|
|
-DARDUINO_ARCH_ESP32=y
|
|
-DARDUINO=100
|
|
-DESP32=1
|
|
-DSMOOTH_FONT=1
|
|
-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO
|
|
!echo "-DGIT_VERSION='\""$(git describe --match="" --dirty --always)"\"'"
|
|
-DPLATFORMIO_ENV='"$PIOENV"'
|
|
-Wno-error=unknown-pragmas
|
|
lib_deps =
|
|
TFT_eSPI=https://github.com/quadule/TFT_eSPI.git#066c4adcd95679da94e87221c30ab973048d71e4
|
|
ricmoo/QRCode@^0.0.1
|
|
mathertel/OneButton@^2.6.1
|
|
|
|
[env:knobby]
|
|
build_flags =
|
|
${common.build_flags}
|
|
-DARDUINO_WIFI_DISABLED
|
|
-DUSER_SETUP_LOADED=1
|
|
-DSPI_FREQUENCY=40000000
|
|
-DSPI_READ_FREQUENCY=6000000
|
|
-DST7789_DRIVER=1
|
|
-DTFT_WIDTH=135
|
|
-DTFT_HEIGHT=240
|
|
-DCGRAM_OFFSET=1
|
|
-DTFT_MISO=-1
|
|
-DTFT_MOSI=19
|
|
-DTFT_SCLK=18
|
|
-DTFT_CS=5
|
|
-DTFT_DC=16
|
|
-DTFT_RST=23
|
|
-DTFT_BL=4
|
|
lib_deps =
|
|
${common.lib_deps}
|
|
|