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]
|
2023-11-17 19:28:40 +01:00
|
|
|
data_dir = data/build_gz
|
2023-11-06 20:16:07 +01:00
|
|
|
|
|
|
|
[env]
|
2023-11-28 02:05:04 +01:00
|
|
|
|
|
|
|
|
|
|
|
[btclock_base]
|
2024-01-27 15:25:35 +01:00
|
|
|
platform = espressif32 @ ^6.5.0
|
2023-11-13 17:14:11 +01:00
|
|
|
framework = arduino, espidf
|
2023-11-06 20:16:07 +01:00
|
|
|
monitor_speed = 115200
|
|
|
|
monitor_filters = esp32_exception_decoder, colorize
|
|
|
|
board_build.filesystem = littlefs
|
2023-11-07 21:25:54 +01:00
|
|
|
extra_scripts = post:scripts/extra_script.py
|
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-17 22:09:28 +01:00
|
|
|
-DCORE_DEBUG_LEVEL=0
|
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 =
|
2024-01-27 15:25:35 +01:00
|
|
|
bblanchon/ArduinoJson@^6.21.5
|
2023-11-06 20:16:07 +01:00
|
|
|
esphome/Improv@^1.2.3
|
|
|
|
esphome/ESPAsyncWebServer-esphome@^3.1.0
|
2024-01-27 15:25:35 +01:00
|
|
|
adafruit/Adafruit BusIO@^1.15.0
|
2023-11-21 21:49:19 +01:00
|
|
|
adafruit/Adafruit MCP23017 Arduino Library@^2.3.2
|
2024-01-27 15:25:35 +01:00
|
|
|
adafruit/Adafruit NeoPixel@^1.12.0
|
2023-11-07 01:11:12 +01:00
|
|
|
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
|
2023-11-26 00:51:54 +01:00
|
|
|
board_build.partitions = partition.csv
|
2023-11-06 20:16:07 +01:00
|
|
|
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
|
2023-11-26 00:51:54 +01:00
|
|
|
-D I2C_SDA_PIN=35
|
|
|
|
-D I2C_SCK_PIN=36
|
2023-11-08 15:27:22 +01:00
|
|
|
build_unflags =
|
|
|
|
${btclock_base.build_unflags}
|
2023-11-10 19:52:06 +01:00
|
|
|
|
|
|
|
[env:lolin_s3_mini_qr]
|
|
|
|
extends = env:lolin_s3_mini
|
2023-11-28 01:30:36 +01:00
|
|
|
test_framework = unity
|
2023-11-10 19:52:06 +01:00
|
|
|
build_flags =
|
|
|
|
${env:lolin_s3_mini.build_flags}
|
|
|
|
-D USE_QR
|
2023-11-13 17:14:11 +01:00
|
|
|
|
2023-11-26 00:51:54 +01:00
|
|
|
[env:btclock_s3]
|
|
|
|
extends = btclock_base
|
|
|
|
board = btclock
|
|
|
|
board_build.partitions = partition_16mb.csv
|
2023-11-28 01:30:36 +01:00
|
|
|
test_framework = unity
|
2023-11-26 00:51:54 +01:00
|
|
|
build_flags =
|
|
|
|
${btclock_base.build_flags}
|
|
|
|
-D MCP_INT_PIN=4
|
|
|
|
-D NEOPIXEL_PIN=5
|
|
|
|
-D NEOPIXEL_COUNT=4
|
|
|
|
-D NUM_SCREENS=8
|
|
|
|
-D SPI_SDA_PIN=11
|
|
|
|
-D SPI_SCK_PIN=12
|
|
|
|
-D I2C_SDA_PIN=1
|
|
|
|
-D I2C_SCK_PIN=2
|
|
|
|
-D MCP_RESET_PIN=21
|
|
|
|
-D MCP1_A0_PIN=6
|
|
|
|
-D MCP1_A1_PIN=7
|
|
|
|
-D MCP1_A2_PIN=8
|
|
|
|
-D MCP2_A0_PIN=9
|
|
|
|
-D MCP2_A1_PIN=10
|
|
|
|
-D MCP2_A2_PIN=14
|
|
|
|
build_unflags =
|
2023-11-28 02:05:04 +01:00
|
|
|
${btclock_base.build_unflags}
|
|
|
|
|
|
|
|
[env:native_test_only]
|
|
|
|
platform = native
|
|
|
|
test_framework = unity
|
|
|
|
build_flags =
|
|
|
|
${btclock_base.build_flags}
|
|
|
|
-D MCP_INT_PIN=8
|
|
|
|
-D NEOPIXEL_PIN=34
|
|
|
|
-D NEOPIXEL_COUNT=4
|
|
|
|
-D NUM_SCREENS=7
|