platformio.ini 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. ; PlatformIO Project Configuration File
  2. ;
  3. ; Build options: build flags, source filter
  4. ; Upload options: custom upload port, speed and extra flags
  5. ; Library options: dependencies, extra library storages
  6. ; Advanced options: extra scripting
  7. ;
  8. ; Please visit documentation for the other options and examples
  9. ; https://docs.platformio.org/page/projectconf.html
  10. [platformio]
  11. extra_configs =
  12. variants/*/platformio.ini
  13. [arduino_base]
  14. framework = arduino
  15. monitor_speed = 115200
  16. lib_deps =
  17. SPI
  18. Wire
  19. jgromes/RadioLib @ ^7.1.2
  20. rweather/Crypto @ ^0.4.0
  21. adafruit/RTClib @ ^2.1.3
  22. melopero/Melopero RV3028 @ ^1.1.0
  23. electroniccats/CayenneLPP @ 1.4.0
  24. build_flags = -w -DNDEBUG -DRADIOLIB_STATIC_ONLY=1 -DRADIOLIB_GODMODE=1
  25. -D LORA_FREQ=869.525
  26. -D LORA_BW=250
  27. -D LORA_SF=11
  28. build_src_filter =
  29. +<*.cpp>
  30. +<helpers/*.cpp>
  31. ; ----------------- ESP32 ---------------------
  32. [esp32_base]
  33. extends = arduino_base
  34. platform = espressif32
  35. monitor_filters = esp32_exception_decoder
  36. extra_scripts = merge-bin.py
  37. build_flags = ${arduino_base.build_flags}
  38. ; -D ESP32_CPU_FREQ=80 ; change it to your need
  39. build_src_filter = ${arduino_base.build_src_filter}
  40. [esp32_ota]
  41. lib_deps =
  42. me-no-dev/ESPAsyncWebServer @ ^3.6.0
  43. file://arch/esp32/AsyncElegantOTA
  44. ; ----------------- NRF52 ---------------------
  45. [nrf52_base]
  46. extends = arduino_base
  47. platform = nordicnrf52
  48. build_flags = ${arduino_base.build_flags}
  49. -D NRF52_PLATFORM
  50. [nrf52840_base]
  51. extends = nrf52_base
  52. build_flags = ${nrf52_base.build_flags}
  53. lib_deps =
  54. ${nrf52_base.lib_deps}
  55. rweather/Crypto @ ^0.4.0
  56. https://github.com/adafruit/Adafruit_nRF52_Arduino
  57. ; ----------------- RP2040 ---------------------
  58. [rp2040_base]
  59. extends = arduino_base
  60. build_flags = ${arduino_base.build_flags}
  61. -D RP2040_PLATFORM