Files
flyradar/platformio.ini
Eiswolf-BG d7454d9784 Add OTA firmware update via GitHub Releases API
New "Check for update" entry in Menu > System checks the latest
GitHub release's tag against the running version and, if newer,
downloads and flashes its firmware.bin asset directly over WiFi -
no cable or web flasher needed. Requires switching the partition
scheme to min_spiffs (two OTA-capable app partitions instead of a
single non-OTA one), which needs a full reflash.

confirmWarningScreen() now takes title/body as strings instead of
StringIds so it can show a dynamically composed message (the target
version number) for the update confirmation, with an accent color
parameter so the OTA confirmation can use green instead of the
red used for the existing destructive-action confirmations.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-12 22:57:12 +02:00

44 lines
1.4 KiB
INI

[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
upload_speed = 921600
; Zwei App-Partitionen noetig fuer OTA-Updates (aktuell laufende + neu
; heruntergeladene, siehe ota_update.cpp). "min_spiffs.csv" (von Espressif
; mitgeliefert) gibt jeder der beiden App-Partitionen 0x1E0000 (1,875 MB)
; und schrumpft dafuer die SPIFFS-Partition auf nur noch 0x20000 (128 KB) -
; unproblematisch, da dieses Projekt den internen Flash-Speicher fuer Daten
; gar nicht nutzt (alles liegt auf der SD-Karte, siehe Config::SD_*). Bei
; aktuell ca. 1,25 MB Firmware-Groesse bleiben so noch reichlich ueber
; 600 KB Luft pro Partition. Vorher (bis v3.4.0) kam "no_ota.csv" zum
; Einsatz - eine einzige 2 MB grosse App-Partition ohne OTA-Faehigkeit, da
; OTA damals noch nicht existierte.
board_build.partitions = min_spiffs.csv
lib_deps =
bodmer/TFT_eSPI @ ^2.5.43
https://github.com/PaulStoffregen/XPT2046_Touchscreen.git
bblanchon/ArduinoJson @ ^7.0.4
mikalhart/TinyGPSPlus @ ^1.1.0
ricmoo/QRCode @ ^0.0.1
build_flags =
-D USER_SETUP_LOADED=1
-D ILI9341_2_DRIVER=1
-D TFT_WIDTH=240
-D TFT_HEIGHT=320
-D TFT_MISO=12
-D TFT_MOSI=13
-D TFT_SCLK=14
-D TFT_CS=15
-D TFT_DC=2
-D TFT_RST=-1
-D TFT_BL=21
-D TFT_BACKLIGHT_ON=HIGH
-D SPI_FREQUENCY=55000000
-D SPI_READ_FREQUENCY=1000000
-D SPI_TOUCH_FREQUENCY=2500000
-D LOAD_GFXFF=1
-D SMOOTH_FONT=1