platformio.ini 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. -D ENABLE_PRIVATE_KEY_IMPORT=1 ; NOTE: comment these out for more secure firmware
  29. -D ENABLE_PRIVATE_KEY_EXPORT=1
  30. build_src_filter =
  31. +<*.cpp>
  32. +<helpers/*.cpp>
  33. ; ----------------- ESP32 ---------------------
  34. [esp32_base]
  35. extends = arduino_base
  36. platform = espressif32
  37. monitor_filters = esp32_exception_decoder
  38. extra_scripts = merge-bin.py
  39. build_flags = ${arduino_base.build_flags}
  40. ; -D ESP32_CPU_FREQ=80 ; change it to your need
  41. build_src_filter = ${arduino_base.build_src_filter}
  42. [esp32_ota]
  43. lib_deps =
  44. me-no-dev/ESPAsyncWebServer @ ^3.6.0
  45. file://arch/esp32/AsyncElegantOTA
  46. ; ----------------- NRF52 ---------------------
  47. [nrf52_base]
  48. extends = arduino_base
  49. platform = nordicnrf52
  50. build_flags = ${arduino_base.build_flags}
  51. -D NRF52_PLATFORM
  52. -D LFS_NO_ASSERT=1
  53. [nrf52840_base]
  54. extends = nrf52_base
  55. build_flags = ${nrf52_base.build_flags}
  56. lib_deps =
  57. ${nrf52_base.lib_deps}
  58. rweather/Crypto @ ^0.4.0
  59. https://github.com/adafruit/Adafruit_nRF52_Arduino
  60. ; ----------------- RP2040 ---------------------
  61. [rp2040_base]
  62. extends = arduino_base
  63. build_flags = ${arduino_base.build_flags}
  64. -D RP2040_PLATFORM
  65. ; ----------------- STM32 ----------------------
  66. [stm32_base]
  67. extends = arduino_base
  68. platform = platformio/ststm32@19.1.0
  69. platform_packages = platformio/framework-arduinoststm32@https://github.com/stm32duino/Arduino_Core_STM32/archive/2.10.1.zip
  70. extra_scripts = post:arch/stm32/build_hex.py
  71. build_flags = ${arduino_base.build_flags}
  72. -D STM32_PLATFORM
  73. -I src/helpers/stm32
  74. build_src_filter = ${arduino_base.build_src_filter}
  75. +<helpers/stm32>
  76. lib_deps = ${arduino_base.lib_deps}
  77. file://arch/stm32/Adafruit_LittleFS_stm32