platformio.ini 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. build_flags = -w -DNDEBUG -DRADIOLIB_STATIC_ONLY=1 -DRADIOLIB_GODMODE=1
  24. -D LORA_FREQ=869.525
  25. -D LORA_BW=250
  26. -D LORA_SF=11
  27. build_src_filter =
  28. +<*.cpp>
  29. +<helpers/*.cpp>
  30. ; ----------------- ESP32 ---------------------
  31. [esp32_base]
  32. extends = arduino_base
  33. platform = espressif32
  34. monitor_filters = esp32_exception_decoder
  35. extra_scripts = merge-bin.py
  36. build_flags = ${arduino_base.build_flags}
  37. ; -D ESP32_CPU_FREQ=80 ; change it to your need
  38. build_src_filter = ${arduino_base.build_src_filter}
  39. [esp32_ota]
  40. lib_deps =
  41. me-no-dev/ESPAsyncWebServer @ ^3.6.0
  42. file://arch/esp32/AsyncElegantOTA
  43. ; ----------------- NRF52 ---------------------
  44. [nrf52_base]
  45. extends = arduino_base
  46. platform = nordicnrf52
  47. build_flags = ${arduino_base.build_flags}
  48. -D NRF52_PLATFORM
  49. [nrf52840_base]
  50. extends = nrf52_base
  51. build_flags = ${nrf52_base.build_flags}
  52. lib_deps =
  53. ${nrf52_base.lib_deps}
  54. rweather/Crypto @ ^0.4.0
  55. https://github.com/adafruit/Adafruit_nRF52_Arduino