platformio.ini 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. [ikoka_handheld_nrf]
  2. extends = nrf52_base
  3. build_flags = ${nrf52_base.build_flags}
  4. ${sensor_base.build_flags}
  5. -I lib/nrf52/s140_nrf52_7.3.0_API/include
  6. -I lib/nrf52/s140_nrf52_7.3.0_API/include/nrf52
  7. -I variants/ikoka_handheld_nrf
  8. -UENV_INCLUDE_GPS
  9. -D IKOKA_NRF52
  10. -D RADIO_CLASS=CustomSX1262
  11. -D WRAPPER_CLASS=CustomSX1262Wrapper
  12. -D P_LORA_TX_LED=11
  13. -D P_LORA_DIO_1=D1
  14. -D P_LORA_RESET=D2
  15. -D P_LORA_BUSY=D3
  16. -D P_LORA_NSS=D4
  17. -D SX126X_RXEN=D5
  18. -D SX126X_TXEN=RADIOLIB_NC
  19. -D SX126X_DIO2_AS_RF_SWITCH=1
  20. -D SX126X_DIO3_TCXO_VOLTAGE=1.8
  21. -D SX126X_CURRENT_LIMIT=140
  22. -D SX126X_RX_BOOSTED_GAIN=1
  23. build_src_filter = ${nrf52_base.build_src_filter}
  24. +<../variants/ikoka_handheld_nrf>
  25. +<helpers/sensors>
  26. lib_deps = ${nrf52_base.lib_deps}
  27. ${sensor_base.lib_deps}
  28. densaugeo/base64 @ ~1.4.0
  29. # larger screen has a different driver, this is for the 0.96 inch
  30. [ikoka_handheld_nrf_ssd1306_companion]
  31. lib_deps = ${ikoka_handheld_nrf.lib_deps}
  32. adafruit/Adafruit SSD1306 @ ^2.5.13
  33. build_flags = ${ikoka_handheld_nrf.build_flags}
  34. -D DISPLAY_CLASS=SSD1306Display
  35. -D DISPLAY_ROTATION=0
  36. -D PIN_WIRE_SCL=D6
  37. -D PIN_WIRE_SDA=D7
  38. -D PIN_USER_BTN=D0
  39. -D MAX_CONTACTS=350
  40. -D MAX_GROUP_CHANNELS=40
  41. -D OFFLINE_QUEUE_SIZE=256
  42. -D QSPIFLASH=1
  43. -I examples/companion_radio/ui-new
  44. build_src_filter = ${ikoka_handheld_nrf.build_src_filter}
  45. +<helpers/ui/SSD1306Display.cpp>
  46. +<../examples/companion_radio/ui-new/UITask.cpp>
  47. +<../examples/companion_radio/*.cpp>
  48. [env:ikoka_handheld_nrf_e22_30dbm_096_companion_radio_ble]
  49. extends = ikoka_nrf52
  50. build_flags = ${ikoka_handheld_nrf_ssd1306_companion.build_flags}
  51. -D BLE_PIN_CODE=123456
  52. -D LORA_TX_POWER=20
  53. build_src_filter = ${ikoka_handheld_nrf_ssd1306_companion.build_src_filter}
  54. +<helpers/nrf52/SerialBLEInterface.cpp>
  55. [env:ikoka_handheld_nrf_e22_30dbm_096_rotated_companion_radio_ble]
  56. extends = ikoka_nrf52
  57. build_flags = ${ikoka_handheld_nrf_ssd1306_companion.build_flags}
  58. -D BLE_PIN_CODE=123456
  59. -D LORA_TX_POWER=20
  60. -D DISPLAY_ROTATION=2
  61. build_src_filter = ${ikoka_handheld_nrf_ssd1306_companion.build_src_filter}
  62. +<helpers/nrf52/SerialBLEInterface.cpp>
  63. [env:ikoka_handheld_nrf_e22_30dbm_096_companion_radio_usb]
  64. extends = ikoka_nrf52
  65. build_flags = ${ikoka_handheld_nrf_ssd1306_companion.build_flags}
  66. -D LORA_TX_POWER=20
  67. build_src_filter = ${ikoka_handheld_nrf_ssd1306_companion.build_src_filter}
  68. [env:ikoka_handheld_nrf_e22_30dbm_096_rotated_companion_radio_usb]
  69. extends = ikoka_nrf52
  70. build_flags = ${ikoka_handheld_nrf_ssd1306_companion.build_flags}
  71. -D LORA_TX_POWER=20
  72. -D DISPLAY_ROTATION=2
  73. build_src_filter = ${ikoka_handheld_nrf_ssd1306_companion.build_src_filter}
  74. [env:ikoka_handheld_nrf_e22_30dbm_repeater]
  75. extends = ikoka_nrf52
  76. build_flags =
  77. ${ikoka_handheld_nrf.build_flags}
  78. -D ADVERT_NAME='"ikoka_handheld Repeater"'
  79. -D ADVERT_LAT=0.0
  80. -D ADVERT_LON=0.0
  81. -D ADMIN_PASSWORD='"password"'
  82. -D MAX_NEIGHBOURS=50
  83. -D LORA_TX_POWER=20
  84. build_src_filter = ${ikoka_handheld_nrf.build_src_filter}
  85. +<../examples/simple_repeater/*.cpp>
  86. [env:ikoka_handheld_nrf_e22_30dbm_room_server]
  87. extends = ikoka_nrf52
  88. build_flags =
  89. ${ikoka_handheld_nrf.build_flags}
  90. -D ADVERT_NAME='"ikoka_handheld Room"'
  91. -D ADVERT_LAT=0.0
  92. -D ADVERT_LON=0.0
  93. -D ADMIN_PASSWORD='"password"'
  94. -D LORA_TX_POWER=20
  95. build_src_filter = ${ikoka_handheld_nrf.build_src_filter}
  96. +<../examples/simple_room_server/*.cpp>