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-10-12 16:09:57 +01:00
|
|
|
jgromes/RadioLib @ ^7.3.0
|
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-10-22 23:55:51 -07:00
|
|
|
electroniccats/CayenneLPP @ 1.6.1
|
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-06-07 14:20:59 +10:00
|
|
|
-D ENABLE_PRIVATE_KEY_IMPORT=1 ; NOTE: comment these out for more secure firmware
|
|
|
|
|
-D ENABLE_PRIVATE_KEY_EXPORT=1
|
2025-07-04 21:33:07 +10:00
|
|
|
-D RADIOLIB_EXCLUDE_CC1101=1
|
|
|
|
|
-D RADIOLIB_EXCLUDE_RF69=1
|
|
|
|
|
-D RADIOLIB_EXCLUDE_SX1231=1
|
|
|
|
|
-D RADIOLIB_EXCLUDE_SI443X=1
|
|
|
|
|
-D RADIOLIB_EXCLUDE_RFM2X=1
|
|
|
|
|
-D RADIOLIB_EXCLUDE_SX128X=1
|
|
|
|
|
-D RADIOLIB_EXCLUDE_AFSK=1
|
|
|
|
|
-D RADIOLIB_EXCLUDE_AX25=1
|
|
|
|
|
-D RADIOLIB_EXCLUDE_HELLSCHREIBER=1
|
|
|
|
|
-D RADIOLIB_EXCLUDE_MORSE=1
|
|
|
|
|
-D RADIOLIB_EXCLUDE_APRS=1
|
|
|
|
|
-D RADIOLIB_EXCLUDE_BELL=1
|
|
|
|
|
-D RADIOLIB_EXCLUDE_RTTY=1
|
|
|
|
|
-D RADIOLIB_EXCLUDE_SSTV=1
|
2025-03-07 15:34:00 +01:00
|
|
|
build_src_filter =
|
|
|
|
|
+<*.cpp>
|
|
|
|
|
+<helpers/*.cpp>
|
2025-07-13 11:37:33 +02:00
|
|
|
+<helpers/radiolib/*.cpp>
|
2025-09-08 02:03:08 +01:00
|
|
|
+<helpers/bridges/BridgeBase.cpp>
|
2025-08-19 23:14:11 +10:00
|
|
|
+<helpers/ui/MomentaryButton.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
|
2025-09-01 14:29:40 +10:00
|
|
|
platform = platformio/espressif32@6.11.0
|
2025-01-13 14:07:48 +11:00
|
|
|
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-06-02 17:36:45 +02:00
|
|
|
; esp32c6 uses arduino framework 3.x
|
2025-10-29 13:22:11 +01:00
|
|
|
; WARNING: experimental. pioarduino on esp32c6 needs work - it's not considered stable and has issues.
|
2025-06-02 17:36:45 +02:00
|
|
|
[esp32c6_base]
|
|
|
|
|
extends = esp32_base
|
2025-08-31 14:33:49 +02:00
|
|
|
platform = https://github.com/pioarduino/platform-espressif32/releases/download/53.03.12/platform-espressif32.zip
|
2025-06-02 17:36:45 +02:00
|
|
|
|
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
|
2025-10-18 23:42:28 +02:00
|
|
|
platform_packages =
|
|
|
|
|
framework-arduinoadafruitnrf52 @ 1.10700.0
|
2025-12-04 11:47:41 +01:00
|
|
|
extra_scripts =
|
|
|
|
|
create-uf2.py
|
|
|
|
|
arch/nrf52/extra_scripts/patch_bluefruit.py
|
2025-01-20 20:22:40 +11:00
|
|
|
build_flags = ${arduino_base.build_flags}
|
|
|
|
|
-D NRF52_PLATFORM
|
2025-06-06 00:23:57 +02:00
|
|
|
-D LFS_NO_ASSERT=1
|
2025-07-29 20:06:35 +10:00
|
|
|
-D EXTRAFS=1
|
|
|
|
|
lib_deps =
|
|
|
|
|
${arduino_base.lib_deps}
|
2025-09-07 19:54:42 +10:00
|
|
|
https://github.com/oltaco/CustomLFS @ 0.2.1
|
2025-04-21 21:17:03 +01:00
|
|
|
; ----------------- RP2040 ---------------------
|
|
|
|
|
|
|
|
|
|
[rp2040_base]
|
|
|
|
|
extends = arduino_base
|
2025-06-16 02:01:04 +01:00
|
|
|
upload_protocol = picotool
|
2025-06-15 23:48:49 +01:00
|
|
|
board_build.core = earlephilhower
|
2025-06-16 02:01:04 +01:00
|
|
|
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
|
2025-04-21 21:17:03 +01:00
|
|
|
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}
|
2025-06-06 00:23:57 +02:00
|
|
|
file://arch/stm32/Adafruit_LittleFS_stm32
|
2025-09-20 08:54:30 +02:00
|
|
|
adafruit/Adafruit BusIO @ 1.17.2
|
2025-08-02 21:40:56 +02:00
|
|
|
|
|
|
|
|
[sensor_base]
|
|
|
|
|
build_flags =
|
|
|
|
|
-D ENV_INCLUDE_GPS=1
|
|
|
|
|
-D ENV_INCLUDE_AHTX0=1
|
|
|
|
|
-D ENV_INCLUDE_BME280=1
|
|
|
|
|
-D ENV_INCLUDE_BMP280=1
|
|
|
|
|
-D ENV_INCLUDE_SHTC3=1
|
|
|
|
|
-D ENV_INCLUDE_SHT4X=1
|
|
|
|
|
-D ENV_INCLUDE_LPS22HB=1
|
|
|
|
|
-D ENV_INCLUDE_INA3221=1
|
|
|
|
|
-D ENV_INCLUDE_INA219=1
|
2025-08-20 22:01:38 -07:00
|
|
|
-D ENV_INCLUDE_INA226=1
|
2025-08-02 21:40:56 +02:00
|
|
|
-D ENV_INCLUDE_INA260=1
|
|
|
|
|
-D ENV_INCLUDE_MLX90614=1
|
|
|
|
|
-D ENV_INCLUDE_VL53L0X=1
|
2025-10-16 10:17:23 +02:00
|
|
|
-D ENV_INCLUDE_BME680=1
|
2025-10-22 16:17:06 -04:00
|
|
|
-D ENV_INCLUDE_BMP085=1
|
2025-08-02 21:40:56 +02:00
|
|
|
lib_deps =
|
|
|
|
|
adafruit/Adafruit INA3221 Library @ ^1.0.1
|
|
|
|
|
adafruit/Adafruit INA219 @ ^1.2.3
|
2025-08-20 22:01:38 -07:00
|
|
|
robtillaart/INA226 @ ^0.6.4
|
2025-08-02 21:40:56 +02:00
|
|
|
adafruit/Adafruit INA260 Library @ ^1.5.3
|
|
|
|
|
adafruit/Adafruit AHTX0 @ ^2.0.5
|
|
|
|
|
adafruit/Adafruit BME280 Library @ ^2.3.0
|
|
|
|
|
adafruit/Adafruit BMP280 Library @ ^2.6.8
|
|
|
|
|
adafruit/Adafruit SHTC3 Library @ ^1.0.1
|
|
|
|
|
sensirion/Sensirion I2C SHT4x @ ^1.1.2
|
|
|
|
|
arduino-libraries/Arduino_LPS22HB @ ^1.0.2
|
|
|
|
|
adafruit/Adafruit MLX90614 Library @ ^2.1.5
|
|
|
|
|
adafruit/Adafruit_VL53L0X @ ^1.2.4
|
|
|
|
|
stevemarple/MicroNMEA @ ^2.0.6
|
2025-10-16 10:17:23 +02:00
|
|
|
adafruit/Adafruit BME680 Library @ ^2.0.4
|
2025-10-22 16:17:06 -04:00
|
|
|
adafruit/Adafruit BMP085 Library @ ^1.2.4
|