| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- ; 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]
- extra_configs =
- variants/*/platformio.ini
- [arduino_base]
- framework = arduino
- monitor_speed = 115200
- lib_deps =
- SPI
- Wire
- jgromes/RadioLib @ ^7.1.2
- rweather/Crypto @ ^0.4.0
- adafruit/RTClib @ ^2.1.3
- melopero/Melopero RV3028 @ ^1.1.0
- electroniccats/CayenneLPP @ 1.4.0
- build_flags = -w -DNDEBUG -DRADIOLIB_STATIC_ONLY=1 -DRADIOLIB_GODMODE=1
- -D LORA_FREQ=869.525
- -D LORA_BW=250
- -D LORA_SF=11
- -D ENABLE_PRIVATE_KEY_IMPORT=1 ; NOTE: comment these out for more secure firmware
- -D ENABLE_PRIVATE_KEY_EXPORT=1
- build_src_filter =
- +<*.cpp>
- +<helpers/*.cpp>
- ; ----------------- ESP32 ---------------------
- [esp32_base]
- extends = arduino_base
- platform = platformio/espressif32@^6.11.0
- monitor_filters = esp32_exception_decoder
- extra_scripts = merge-bin.py
- build_flags = ${arduino_base.build_flags}
- ; -D ESP32_CPU_FREQ=80 ; change it to your need
- build_src_filter = ${arduino_base.build_src_filter}
- [esp32_ota]
- lib_deps =
- me-no-dev/ESPAsyncWebServer @ ^3.6.0
- file://arch/esp32/AsyncElegantOTA
- ; esp32c6 uses arduino framework 3.x
- [esp32c6_base]
- extends = esp32_base
- platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
- ; ----------------- NRF52 ---------------------
- [nrf52_base]
- extends = arduino_base
- platform = nordicnrf52
- build_flags = ${arduino_base.build_flags}
- -D NRF52_PLATFORM
- -D LFS_NO_ASSERT=1
- [nrf52840_base]
- extends = nrf52_base
- build_flags = ${nrf52_base.build_flags}
- lib_deps =
- ${nrf52_base.lib_deps}
- rweather/Crypto @ ^0.4.0
- https://github.com/adafruit/Adafruit_nRF52_Arduino
- ; ----------------- RP2040 ---------------------
- [rp2040_base]
- extends = arduino_base
- upload_protocol = picotool
- board_build.core = earlephilhower
- platform = https://github.com/maxgerhardt/platform-raspberrypi.git
- build_flags = ${arduino_base.build_flags}
- -D RP2040_PLATFORM
- ; ----------------- 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
|