2025-01-13 14:07:48 +11: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
|
|
|
|
|
|
2025-03-18 23:57:04 +11:00
|
|
|
[platformio]
|
|
|
|
|
extra_configs =
|
|
|
|
|
variants/*/platformio.ini
|
|
|
|
|
|
2025-01-13 14:07:48 +11:00
|
|
|
[arduino_base]
|
|
|
|
|
framework = arduino
|
|
|
|
|
monitor_speed = 115200
|
2025-03-06 20:43:56 +01:00
|
|
|
lib_deps =
|
2025-01-13 14:07:48 +11:00
|
|
|
SPI
|
|
|
|
|
Wire
|
2025-03-09 23:44:34 +11:00
|
|
|
jgromes/RadioLib @ ^7.1.2
|
2025-01-13 14:07:48 +11:00
|
|
|
rweather/Crypto @ ^0.4.0
|
2025-02-25 19:00:07 +11:00
|
|
|
adafruit/RTClib @ ^2.1.3
|
|
|
|
|
melopero/Melopero RV3028 @ ^1.1.0
|
2025-05-03 13:14:03 +10:00
|
|
|
electroniccats/CayenneLPP @ 1.4.0
|
2025-02-04 12:35:53 +11:00
|
|
|
build_flags = -w -DNDEBUG -DRADIOLIB_STATIC_ONLY=1 -DRADIOLIB_GODMODE=1
|
2025-03-26 18:06:20 +01:00
|
|
|
-D LORA_FREQ=869.525
|
2025-01-20 10:20:42 +11:00
|
|
|
-D LORA_BW=250
|
2025-04-07 21:55:24 +10:00
|
|
|
-D LORA_SF=11
|
2025-03-07 15:34:00 +01:00
|
|
|
build_src_filter =
|
|
|
|
|
+<*.cpp>
|
|
|
|
|
+<helpers/*.cpp>
|
2025-01-13 14:07:48 +11:00
|
|
|
|
2025-03-18 23:57:04 +11:00
|
|
|
; ----------------- ESP32 ---------------------
|
|
|
|
|
|
2025-01-13 14:07:48 +11:00
|
|
|
[esp32_base]
|
|
|
|
|
extends = arduino_base
|
|
|
|
|
platform = espressif32
|
|
|
|
|
monitor_filters = esp32_exception_decoder
|
2025-01-25 23:09:09 +11:00
|
|
|
extra_scripts = merge-bin.py
|
2025-03-11 09:11:14 +01:00
|
|
|
build_flags = ${arduino_base.build_flags}
|
|
|
|
|
; -D ESP32_CPU_FREQ=80 ; change it to your need
|
2025-01-13 14:07:48 +11:00
|
|
|
build_src_filter = ${arduino_base.build_src_filter}
|
2025-03-23 17:36:31 +11:00
|
|
|
|
|
|
|
|
[esp32_ota]
|
2025-03-22 23:51:44 +11:00
|
|
|
lib_deps =
|
|
|
|
|
me-no-dev/ESPAsyncWebServer @ ^3.6.0
|
|
|
|
|
file://arch/esp32/AsyncElegantOTA
|
2025-03-13 14:07:54 -04:00
|
|
|
|
2025-05-30 14:31:44 +02:00
|
|
|
; esp32c6 uses arduino framework 3.x
|
|
|
|
|
[esp32c6_base]
|
|
|
|
|
extends = esp32_base
|
|
|
|
|
platform = https://github.com/pioarduino/platform-espressif32.git
|
|
|
|
|
|
2025-01-20 20:22:40 +11:00
|
|
|
; ----------------- NRF52 ---------------------
|
2025-04-21 21:17:03 +01:00
|
|
|
|
2025-01-20 20:22:40 +11:00
|
|
|
[nrf52_base]
|
|
|
|
|
extends = arduino_base
|
|
|
|
|
platform = nordicnrf52
|
|
|
|
|
build_flags = ${arduino_base.build_flags}
|
|
|
|
|
-D NRF52_PLATFORM
|
|
|
|
|
|
|
|
|
|
[nrf52840_base]
|
|
|
|
|
extends = nrf52_base
|
2025-03-06 20:43:56 +01:00
|
|
|
build_flags = ${nrf52_base.build_flags}
|
2025-01-20 20:22:40 +11:00
|
|
|
lib_deps =
|
|
|
|
|
${nrf52_base.lib_deps}
|
|
|
|
|
rweather/Crypto @ ^0.4.0
|
|
|
|
|
https://github.com/adafruit/Adafruit_nRF52_Arduino
|
2025-04-21 21:17:03 +01:00
|
|
|
|
|
|
|
|
; ----------------- RP2040 ---------------------
|
|
|
|
|
|
|
|
|
|
[rp2040_base]
|
|
|
|
|
extends = arduino_base
|
|
|
|
|
build_flags = ${arduino_base.build_flags}
|
|
|
|
|
-D RP2040_PLATFORM
|
2025-05-11 09:26:32 +02:00
|
|
|
|
|
|
|
|
; ----------------- STM32 ----------------------
|
|
|
|
|
|
|
|
|
|
[stm32_base]
|
|
|
|
|
extends = arduino_base
|
|
|
|
|
platform = platformio/ststm32@19.1.0
|
|
|
|
|
platform_packages = platformio/framework-arduinoststm32@https://github.com/stm32duino/Arduino_Core_STM32/archive/2.10.1.zip
|
|
|
|
|
extra_scripts = post:arch/stm32/build_hex.py
|
|
|
|
|
build_flags = ${arduino_base.build_flags}
|
|
|
|
|
-D STM32_PLATFORM
|
|
|
|
|
-I src/helpers/stm32
|
|
|
|
|
build_src_filter = ${arduino_base.build_src_filter}
|
|
|
|
|
+<helpers/stm32>
|
|
|
|
|
lib_deps = ${arduino_base.lib_deps}
|
|
|
|
|
file://arch/stm32/Adafruit_LittleFS_stm32
|