Changes to migrate sensor code to the ESM. Added a separate GPS init sequence for the RAK that scans I2C and Serial1 on the various sockets of the various base boards to find the RAK12500. (and soon the RAK12501) Removed the GPS specific envs from platformio.ini and enabled GPS for all envs. Verified working with RAK12500 on RAK19007 sockets A and D, as well as RAK19003.
117 lines
3.0 KiB
INI
117 lines
3.0 KiB
INI
[rak4631]
|
|
extends = nrf52_base
|
|
platform = https://github.com/maxgerhardt/platform-nordicnrf52.git#rak
|
|
board = wiscore_rak4631
|
|
board_check = true
|
|
build_flags = ${nrf52_base.build_flags}
|
|
-I variants/rak4631
|
|
-D RAK_BOARD
|
|
-D PIN_BOARD_SCL=14
|
|
-D PIN_BOARD_SDA=13
|
|
-D PIN_GPS_TX=16
|
|
-D PIN_GPS_RX=15
|
|
-D PIN_GPS_EN=-1
|
|
-D PIN_OLED_RESET=-1
|
|
-D RADIO_CLASS=CustomSX1262
|
|
-D WRAPPER_CLASS=CustomSX1262Wrapper
|
|
-D LORA_TX_POWER=22
|
|
-D SX126X_CURRENT_LIMIT=140
|
|
-D SX126X_RX_BOOSTED_GAIN=1
|
|
-D ENV_INCLUDE_GPS=1
|
|
build_src_filter = ${nrf52_base.build_src_filter}
|
|
+<../variants/rak4631>
|
|
+<helpers/sensors>
|
|
lib_deps =
|
|
${nrf52_base.lib_deps}
|
|
adafruit/Adafruit SSD1306 @ ^2.5.13
|
|
stevemarple/MicroNMEA @ ^2.0.6
|
|
sparkfun/SparkFun u-blox GNSS Arduino Library @ ^2.2.27
|
|
|
|
[env:RAK_4631_Repeater]
|
|
extends = rak4631
|
|
build_flags =
|
|
${rak4631.build_flags}
|
|
-D DISPLAY_CLASS=SSD1306Display
|
|
-D ADVERT_NAME='"RAK4631 Repeater"'
|
|
-D ADVERT_LAT=0.0
|
|
-D ADVERT_LON=0.0
|
|
-D ADMIN_PASSWORD='"password"'
|
|
-D MAX_NEIGHBOURS=8
|
|
; -D MESH_PACKET_LOGGING=1
|
|
; -D MESH_DEBUG=1
|
|
build_src_filter = ${rak4631.build_src_filter}
|
|
+<helpers/ui/SSD1306Display.cpp>
|
|
+<../examples/simple_repeater>
|
|
|
|
[env:RAK_4631_room_server]
|
|
extends = rak4631
|
|
build_flags =
|
|
${rak4631.build_flags}
|
|
-D DISPLAY_CLASS=SSD1306Display
|
|
-D ADVERT_NAME='"Test Room"'
|
|
-D ADVERT_LAT=0.0
|
|
-D ADVERT_LON=0.0
|
|
-D ADMIN_PASSWORD='"password"'
|
|
-D ROOM_PASSWORD='"hello"'
|
|
; -D MESH_PACKET_LOGGING=1
|
|
; -D MESH_DEBUG=1
|
|
build_src_filter = ${rak4631.build_src_filter}
|
|
+<helpers/ui/SSD1306Display.cpp>
|
|
+<../examples/simple_room_server>
|
|
|
|
[env:RAK_4631_companion_radio_usb]
|
|
extends = rak4631
|
|
build_flags =
|
|
${rak4631.build_flags}
|
|
-D PIN_USER_BTN=9
|
|
-D PIN_USER_BTN_ANA=31
|
|
-D DISPLAY_CLASS=SSD1306Display
|
|
-D MAX_CONTACTS=100
|
|
-D MAX_GROUP_CHANNELS=8
|
|
; NOTE: DO NOT ENABLE --> -D MESH_PACKET_LOGGING=1
|
|
; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1
|
|
build_src_filter = ${rak4631.build_src_filter}
|
|
+<helpers/ui/SSD1306Display.cpp>
|
|
+<../examples/companion_radio>
|
|
lib_deps =
|
|
${rak4631.lib_deps}
|
|
densaugeo/base64 @ ~1.4.0
|
|
|
|
[env:RAK_4631_companion_radio_ble]
|
|
extends = rak4631
|
|
build_flags =
|
|
${rak4631.build_flags}
|
|
-D PIN_USER_BTN=9
|
|
-D PIN_USER_BTN_ANA=31
|
|
-D DISPLAY_CLASS=SSD1306Display
|
|
-D MAX_CONTACTS=100
|
|
-D MAX_GROUP_CHANNELS=8
|
|
-D BLE_PIN_CODE=123456
|
|
-D BLE_DEBUG_LOGGING=1
|
|
-D OFFLINE_QUEUE_SIZE=256
|
|
; -D MESH_PACKET_LOGGING=1
|
|
; -D MESH_DEBUG=1
|
|
build_src_filter = ${rak4631.build_src_filter}
|
|
+<helpers/ui/SSD1306Display.cpp>
|
|
+<helpers/nrf52/SerialBLEInterface.cpp>
|
|
+<../examples/companion_radio>
|
|
lib_deps =
|
|
${rak4631.lib_deps}
|
|
densaugeo/base64 @ ~1.4.0
|
|
|
|
[env:RAK_4631_terminal_chat]
|
|
extends = rak4631
|
|
build_flags =
|
|
${rak4631.build_flags}
|
|
-D PIN_USER_BTN=9
|
|
-D PIN_USER_BTN_ANA=31
|
|
-D MAX_CONTACTS=100
|
|
-D MAX_GROUP_CHANNELS=1
|
|
; -D MESH_PACKET_LOGGING=1
|
|
; -D MESH_DEBUG=1
|
|
build_src_filter = ${rak4631.build_src_filter}
|
|
+<../examples/simple_secure_chat/main.cpp>
|
|
lib_deps =
|
|
${rak4631.lib_deps}
|
|
densaugeo/base64 @ ~1.4.0
|