2023-11-06 19:16:07 +00: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 18:28:40 +00:00
|
|
|
data_dir = data/build_gz
|
2024-09-21 13:58:07 +00:00
|
|
|
default_envs = lolin_s3_mini_213epd, lolin_s3_mini_29epd, btclock_rev_b_213epd, btclock_v8_213epd
|
2023-11-06 19:16:07 +00:00
|
|
|
|
|
|
|
[env]
|
2023-11-28 01:05:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
[btclock_base]
|
2024-09-18 00:40:24 +00:00
|
|
|
platform = espressif32 @ ^6.8.1
|
2023-11-13 16:14:11 +00:00
|
|
|
framework = arduino, espidf
|
2023-11-06 19:16:07 +00:00
|
|
|
monitor_speed = 115200
|
|
|
|
monitor_filters = esp32_exception_decoder, colorize
|
|
|
|
board_build.filesystem = littlefs
|
2023-11-07 20:25:54 +00:00
|
|
|
extra_scripts = post:scripts/extra_script.py
|
2023-11-06 19:16:07 +00:00
|
|
|
build_flags =
|
2023-11-07 20:25:54 +00:00
|
|
|
!python scripts/git_rev.py
|
2023-11-06 19:16:07 +00:00
|
|
|
-DLAST_BUILD_TIME=$UNIX_TIME
|
2023-11-08 14:27:22 +00:00
|
|
|
-DARDUINO_USB_CDC_ON_BOOT
|
2023-11-17 21:09:28 +00:00
|
|
|
-DCORE_DEBUG_LEVEL=0
|
2023-11-07 20:25:54 +00:00
|
|
|
-fexceptions
|
2023-11-07 00:11:12 +00:00
|
|
|
build_unflags =
|
|
|
|
-Werror=all
|
2023-11-08 14:27:22 +00:00
|
|
|
-fno-exceptions
|
2023-11-06 19:16:07 +00:00
|
|
|
lib_deps =
|
2024-03-18 19:22:58 +00:00
|
|
|
https://github.com/joltwallet/esp_littlefs.git
|
2024-06-28 15:56:08 +00:00
|
|
|
bblanchon/ArduinoJson@^7.1.0
|
2024-09-18 00:40:24 +00:00
|
|
|
mathieucarbou/ESPAsyncWebServer @ 3.3.1
|
2024-06-28 15:56:08 +00:00
|
|
|
adafruit/Adafruit BusIO@^1.16.1
|
2023-11-21 20:49:19 +00:00
|
|
|
adafruit/Adafruit MCP23017 Arduino Library@^2.3.2
|
2024-07-15 14:49:21 +00:00
|
|
|
adafruit/Adafruit NeoPixel@^1.12.3
|
2023-11-07 00:11:12 +00:00
|
|
|
https://github.com/dsbaars/universal_pin
|
|
|
|
https://github.com/dsbaars/GxEPD2#universal_pin
|
2024-04-28 14:47:57 +00:00
|
|
|
https://github.com/tzapu/WiFiManager.git#v2.0.17
|
2024-08-18 23:53:16 +00:00
|
|
|
rblb/Nostrduino@1.2.8
|
2024-07-11 20:08:42 +00:00
|
|
|
|
2023-11-06 19:16:07 +00:00
|
|
|
[env:lolin_s3_mini]
|
|
|
|
extends = btclock_base
|
|
|
|
board = lolin_s3_mini
|
2023-11-25 23:51:54 +00:00
|
|
|
board_build.partitions = partition.csv
|
2023-11-06 19:16:07 +00:00
|
|
|
build_flags =
|
2023-11-07 00:11:12 +00:00
|
|
|
${btclock_base.build_flags}
|
2023-11-07 20:25:54 +00:00
|
|
|
-D MCP_INT_PIN=8
|
|
|
|
-D NEOPIXEL_PIN=34
|
|
|
|
-D NEOPIXEL_COUNT=4
|
2023-11-08 14:27:22 +00:00
|
|
|
-D NUM_SCREENS=7
|
2023-11-25 23:51:54 +00:00
|
|
|
-D I2C_SDA_PIN=35
|
|
|
|
-D I2C_SCK_PIN=36
|
2024-05-24 22:46:08 +00:00
|
|
|
-DARDUINO_USB_CDC_ON_BOOT=1
|
2024-05-18 22:11:08 +00:00
|
|
|
-D IS_HW_REV_A
|
2023-11-08 14:27:22 +00:00
|
|
|
build_unflags =
|
|
|
|
${btclock_base.build_unflags}
|
2023-11-10 18:52:06 +00:00
|
|
|
|
2024-04-27 14:48:06 +00:00
|
|
|
|
|
|
|
[env:btclock_rev_b]
|
|
|
|
extends = btclock_base
|
|
|
|
board = btclock_rev_b
|
|
|
|
board_build.partitions = partition.csv
|
|
|
|
build_flags =
|
|
|
|
${btclock_base.build_flags}
|
|
|
|
-D MCP_INT_PIN=8
|
|
|
|
-D NEOPIXEL_PIN=15
|
|
|
|
-D NEOPIXEL_COUNT=4
|
|
|
|
-D NUM_SCREENS=7
|
|
|
|
-D I2C_SDA_PIN=35
|
|
|
|
-D I2C_SCK_PIN=36
|
|
|
|
-D HAS_FRONTLIGHT
|
|
|
|
-D PCA_OE_PIN=45
|
|
|
|
-D PCA_I2C_ADDR=0x42
|
2024-05-18 22:11:08 +00:00
|
|
|
-D IS_HW_REV_B
|
2024-04-27 14:48:06 +00:00
|
|
|
lib_deps =
|
|
|
|
${btclock_base.lib_deps}
|
|
|
|
robtillaart/PCA9685@^0.7.1
|
2024-06-29 00:19:25 +00:00
|
|
|
claws/BH1750@^1.3.0
|
2024-04-27 14:48:06 +00:00
|
|
|
build_unflags =
|
|
|
|
${btclock_base.build_unflags}
|
|
|
|
|
2024-03-18 18:32:34 +00:00
|
|
|
[env:lolin_s3_mini_213epd]
|
2023-11-10 18:52:06 +00:00
|
|
|
extends = env:lolin_s3_mini
|
2023-11-28 00:30:36 +00:00
|
|
|
test_framework = unity
|
2023-11-10 18:52:06 +00:00
|
|
|
build_flags =
|
|
|
|
${env:lolin_s3_mini.build_flags}
|
|
|
|
-D USE_QR
|
2024-03-18 18:32:34 +00:00
|
|
|
-D VERSION_EPD_2_13
|
2024-05-18 22:11:08 +00:00
|
|
|
-D HW_REV=\"REV_A_EPD_2_13\"
|
2024-03-18 18:32:34 +00:00
|
|
|
|
2024-04-27 14:48:06 +00:00
|
|
|
|
|
|
|
[env:btclock_rev_b_213epd]
|
|
|
|
extends = env:btclock_rev_b
|
|
|
|
test_framework = unity
|
|
|
|
build_flags =
|
|
|
|
${env:btclock_rev_b.build_flags}
|
|
|
|
-D USE_QR
|
|
|
|
-D VERSION_EPD_2_13
|
2024-05-18 22:11:08 +00:00
|
|
|
-D HW_REV=\"REV_B_EPD_2_13\"
|
2024-04-27 14:48:06 +00:00
|
|
|
|
2024-03-18 18:32:34 +00:00
|
|
|
[env:lolin_s3_mini_29epd]
|
|
|
|
extends = env:lolin_s3_mini
|
|
|
|
test_framework = unity
|
|
|
|
build_flags =
|
|
|
|
${env:lolin_s3_mini.build_flags}
|
|
|
|
-D USE_QR
|
|
|
|
-D VERSION_EPD_2_9
|
2024-05-18 22:11:08 +00:00
|
|
|
-D HW_REV=\"REV_A_EPD_2_9\"
|
2023-11-13 16:14:11 +00:00
|
|
|
|
2024-04-28 14:47:57 +00:00
|
|
|
[env:btclock_rev_b_29epd]
|
|
|
|
extends = env:btclock_rev_b
|
|
|
|
test_framework = unity
|
|
|
|
build_flags =
|
|
|
|
${env:btclock_rev_b.build_flags}
|
|
|
|
-D USE_QR
|
|
|
|
-D VERSION_EPD_2_9
|
2024-05-18 22:11:08 +00:00
|
|
|
-D HW_REV=\"REV_B_EPD_2_9\"
|
2024-04-28 14:47:57 +00:00
|
|
|
|
2024-09-21 13:58:07 +00:00
|
|
|
[env:btclock_v8]
|
2023-11-25 23:51:54 +00:00
|
|
|
extends = btclock_base
|
2024-09-21 13:58:07 +00:00
|
|
|
board = btclock_v8
|
2023-11-25 23:51:54 +00:00
|
|
|
board_build.partitions = partition_16mb.csv
|
2024-09-21 13:58:07 +00:00
|
|
|
board_build.flash_mode = qio
|
2023-11-28 00:30:36 +00:00
|
|
|
test_framework = unity
|
2023-11-25 23:51:54 +00: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 01:05:04 +00:00
|
|
|
${btclock_base.build_unflags}
|
|
|
|
|
2024-09-21 13:58:07 +00:00
|
|
|
[env:btclock_v8_213epd]
|
|
|
|
extends = env:btclock_v8
|
|
|
|
test_framework = unity
|
|
|
|
build_flags =
|
|
|
|
${env:btclock_v8.build_flags}
|
|
|
|
-D USE_QR
|
|
|
|
-D VERSION_EPD_2_13
|
|
|
|
-D HW_REV=\"REV_V8_EPD_2_13\"
|
|
|
|
|
2023-11-28 01:05:04 +00:00
|
|
|
[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
|