Files
KodeDot-FTP-Explorer/platformio.ini
T
Lago 44b6a89b57 fix: FTP storage backend, SD info display, time label alignment
- Fix FTP using FFAT instead of SD_MMC: define both NETWORK_TYPE (6) and
  STORAGE_TYPE (10) with numeric values to bypass FtpServerKey.h guard
- Fix SD capacity showing 'f/f GB': use integer math instead of floats
  (LVGL builtin sprintf lacks %f support)
- Fix time/date labels tilting 45°: set fixed width + LV_TEXT_ALIGN_CENTER
- Switch LVGL sprintf to C stdlib for future float compatibility
2026-04-03 15:41:26 +02:00

68 lines
2.5 KiB
INI
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
; ==============================================================
; FTP Explorer for Kode Dot (ESP32S3)
; FTP server serving the microSD card over Wi-Fi.
; Flashes app only (keeps bootloader/partitions).
; ==============================================================
[platformio]
; Default environment
default_envs = kode_dot
[env:kode_dot]
; Kode Dot target (ESP32S3)
; ESP32 platform (pinned stable)
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
; Board id (see boards/kode_dot.json)
board = kode_dot
framework = arduino
lib_compat_mode = off
monitor_speed = 115200
lib_ldf_mode = deep+
; Serial monitor filters
monitor_filters = time, esp32_exception_decoder
; Build flags
build_flags =
; Add include path for src
-I src
; Wrap OTA validation/rollback
-Wl,--wrap=esp_ota_mark_app_valid_cancel_rollback
; Enable LVGL simple include
-DLV_CONF_INCLUDE_SIMPLE
; FTP server: must define BOTH network + storage with numeric values
; to prevent FtpServerKey.h from defaulting to FFAT
; NETWORK_ESP32=6, STORAGE_SD_MMC=10
-DDEFAULT_FTP_SERVER_NETWORK_TYPE_ESP32=6
-DDEFAULT_STORAGE_TYPE_ESP32=10
; Suppress deprecation warnings
-Wno-deprecated-declarations
; Allow #warning without failing build
-Wno-cpp
; Suppress narrowing conversion warnings
-Wno-narrowing
; Pre-build scripts
extra_scripts = pre:extra_scripts/auto_port.py, pre:extra_scripts/rename_bin.py, pre:extra_scripts/build_framework_libs.py
upload_protocol = custom
upload_port = COM10
monitor_port = COM10
upload_speed = 460800
; Flash app at 0x400000 (preserve bootloader/partitions)
upload_command = esptool --chip esp32s3 --port ${UPLOAD_PORT} --baud ${UPLOAD_SPEED} write-flash --flash-freq 80m --flash-mode dio --flash-size 32MB 0x400000 "${BUILD_DIR}/${PROGNAME}.bin"
; Libraries
lib_deps =
moononournation/GFX Library for Arduino @ ^1.6.0
lvgl/lvgl @ ^9
adafruit/Adafruit NeoPixel
https://github.com/RobTillaart/TCA9555.git#0.4.3
https://github.com/bitbank2/bb_captouch.git
https://github.com/xreef/SimpleFTPServer.git
bblanchon/ArduinoJson @ ^7