Browse Source

* new env: RAK_4631_companion_radio_usb

pull/10/head
Scott Powell 1 year ago
parent
commit
dc11fe85cb
  1. 7
      examples/companion_radio/main.cpp
  2. 14
      platformio.ini

7
examples/companion_radio/main.cpp

@ -534,6 +534,13 @@ public:
#include <helpers/ArduinoSerialInterface.h>
ArduinoSerialInterface serial_interface;
#endif
#elif defined(NRF52_PLATFORM)
#ifdef BLE_PIN_CODE
#error "BLE not defined yet"
#else
#include <helpers/ArduinoSerialInterface.h>
ArduinoSerialInterface serial_interface;
#endif
#else
#error "need to define a serial interface"
#endif

14
platformio.ini

@ -316,3 +316,17 @@ lib_deps =
${rak4631.lib_deps}
densaugeo/base64 @ ~1.4.0
adafruit/RTClib @ ^2.1.3
[env:RAK_4631_companion_radio_usb]
extends = rak4631
build_flags =
${rak4631.build_flags}
-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/companion_radio/main.cpp>
lib_deps =
${rak4631.lib_deps}
adafruit/RTClib @ ^2.1.3
densaugeo/base64 @ ~1.4.0

Loading…
Cancel
Save