Browse Source
Merge pull request #638 from recrof/dev
fix RAK build errors
pull/641/head
ripplebiz
10 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
6 additions and
4 deletions
-
variants/rak4631/platformio.ini
-
variants/rak4631/target.cpp
|
|
|
@ -22,6 +22,8 @@ build_flags = ${nrf52_base.build_flags} |
|
|
|
build_src_filter = ${nrf52_base.build_src_filter} |
|
|
|
+<../variants/rak4631> |
|
|
|
+<helpers/sensors> |
|
|
|
+<helpers/ui/SSD1306Display.cpp> |
|
|
|
+<helpers/ui/MomentaryButton.cpp> |
|
|
|
lib_deps = |
|
|
|
${nrf52_base.lib_deps} |
|
|
|
${sensor_base.lib_deps} |
|
|
|
@ -73,8 +75,6 @@ build_flags = |
|
|
|
; 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> |
|
|
|
+<helpers/ui/MomentaryButton.cpp> |
|
|
|
+<../examples/companion_radio/*.cpp> |
|
|
|
+<../examples/companion_radio/ui-new/*.cpp> |
|
|
|
lib_deps = |
|
|
|
@ -97,9 +97,7 @@ build_flags = |
|
|
|
; -D MESH_PACKET_LOGGING=1 |
|
|
|
; -D MESH_DEBUG=1 |
|
|
|
build_src_filter = ${rak4631.build_src_filter} |
|
|
|
+<helpers/ui/SSD1306Display.cpp> |
|
|
|
+<helpers/nrf52/SerialBLEInterface.cpp> |
|
|
|
+<helpers/ui/MomentaryButton.cpp> |
|
|
|
+<../examples/companion_radio/*.cpp> |
|
|
|
+<../examples/companion_radio/ui-new/*.cpp> |
|
|
|
lib_deps = |
|
|
|
|
|
|
|
@ -4,6 +4,10 @@ |
|
|
|
|
|
|
|
RAK4631Board board; |
|
|
|
|
|
|
|
#ifndef PIN_USER_BTN |
|
|
|
#define PIN_USER_BTN (-1) |
|
|
|
#endif |
|
|
|
|
|
|
|
#ifdef DISPLAY_CLASS |
|
|
|
DISPLAY_CLASS display; |
|
|
|
MomentaryButton user_btn(PIN_USER_BTN, 1000, true); |
|
|
|
|