Files
KodeDot-FTP-Explorer/platformio.ini
T
Lago b31e80a71b feat: battery monitoring, external RTC persistence, SD used-space fix
- Add BQ27220 fuel gauge: reads SOC percentage every 5s
- Add BQ25896 PMIC: detects charging status (pre-charge/fast/done)
- Add MAX31329 external RTC: reads time on boot, syncs from NTP
- Battery UI: icon + percentage in header, cyan when charging
- Fix SD used bytes: fallback to recursive dir walk when usedBytes() returns 0
- Libraries: PMIC_BQ25896, kode_bq27220, kode_MAX31329
2026-04-03 16:25:55 +02:00

71 lines
2.6 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
https://github.com/sqmsmu/PMIC_BQ25896.git
https://github.com/kodediy/kode_bq27220.git
https://github.com/kodediy/kode_MAX31329.git