2023-11-06 20:16:07 +01:00
|
|
|
; 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
|
|
|
|
[platformio]
|
|
|
|
data_dir = data/build
|
|
|
|
|
|
|
|
[env]
|
|
|
|
platform = espressif32
|
|
|
|
framework = arduino, espidf
|
|
|
|
monitor_speed = 115200
|
|
|
|
upload_speed = 921600
|
|
|
|
monitor_filters = esp32_exception_decoder, colorize
|
|
|
|
board_build.filesystem = littlefs
|
|
|
|
|
|
|
|
[btclock_base]
|
2023-11-07 21:25:54 +01:00
|
|
|
extra_scripts = post:scripts/extra_script.py
|
2023-11-07 01:11:12 +01:00
|
|
|
board_build.partitions = partition.csv
|
2023-11-06 20:16:07 +01:00
|
|
|
build_flags =
|
2023-11-07 21:25:54 +01:00
|
|
|
!python scripts/git_rev.py
|
2023-11-06 20:16:07 +01:00
|
|
|
-DLAST_BUILD_TIME=$UNIX_TIME
|
2023-11-08 15:27:22 +01:00
|
|
|
-DARDUINO_USB_CDC_ON_BOOT
|
2023-11-07 21:25:54 +01:00
|
|
|
-fexceptions
|
2023-11-07 01:11:12 +01:00
|
|
|
build_unflags =
|
|
|
|
-Werror=all
|
2023-11-08 15:27:22 +01:00
|
|
|
-fno-exceptions
|
2023-11-06 20:16:07 +01:00
|
|
|
lib_deps =
|
|
|
|
bblanchon/ArduinoJson@^6.21.3
|
|
|
|
esphome/Improv@^1.2.3
|
|
|
|
esphome/ESPAsyncWebServer-esphome@^3.1.0
|
2023-11-07 01:11:12 +01:00
|
|
|
adafruit/Adafruit BusIO@^1.14.5
|
|
|
|
adafruit/Adafruit MCP23017 Arduino Library@^2.3.0
|
|
|
|
adafruit/Adafruit NeoPixel@^1.11.0
|
|
|
|
https://github.com/dsbaars/universal_pin
|
|
|
|
https://github.com/dsbaars/GxEPD2#universal_pin
|
2023-11-10 13:02:05 +01:00
|
|
|
https://github.com/tzapu/WiFiManager.git#v2.0.16-rc.2
|
2023-11-06 20:16:07 +01:00
|
|
|
|
|
|
|
[env:lolin_s3_mini]
|
|
|
|
extends = btclock_base
|
|
|
|
board = lolin_s3_mini
|
|
|
|
build_flags =
|
2023-11-07 01:11:12 +01:00
|
|
|
${btclock_base.build_flags}
|
2023-11-07 21:25:54 +01:00
|
|
|
-D MCP_INT_PIN=8
|
|
|
|
-D NEOPIXEL_PIN=34
|
|
|
|
-D NEOPIXEL_COUNT=4
|
2023-11-08 15:27:22 +01:00
|
|
|
-D NUM_SCREENS=7
|
|
|
|
build_unflags =
|
|
|
|
${btclock_base.build_unflags}
|