* lotsa super boring refactoring

This commit is contained in:
Scott Powell committed 2026-11-19 15:22:23 +11:00
1 parent 98f9e81681
commit ce02d5a787
212 files changed
+693 -365

No files matched your search

+4 -4
View File
@@ -29,7 +29,7 @@ lib_deps =
extends = Meshtiny
build_flags =
${Meshtiny.build_flags}
-I examples/companion_radio/ui-new
-I src/helpers/ui/companion-new
-D MESHTINY
-D PIN_BUZZER=30
-D DISPLAY_CLASS=SSD1306Display
@@ -41,7 +41,7 @@ build_flags =
; -D MESH_DEBUG=1
build_src_filter = ${Meshtiny.build_src_filter}
+<../examples/companion_radio/*.cpp>
+<../examples/companion_radio/ui-new/*.cpp>
+<helpers/ui/companion-new>
lib_deps =
${Meshtiny.lib_deps}
densaugeo/base64 @ ~1.4.0
@@ -50,7 +50,7 @@ lib_deps =
extends = Meshtiny
build_flags =
${Meshtiny.build_flags}
-I examples/companion_radio/ui-new
-I src/helpers/ui/companion-new
-D MESHTINY
-D PIN_BUZZER=30
-D DISPLAY_CLASS=SSD1306Display
@@ -64,7 +64,7 @@ build_flags =
build_src_filter = ${Meshtiny.build_src_filter}
+<helpers/nrf52/SerialBLEInterface.cpp>
+<../examples/companion_radio/*.cpp>
+<../examples/companion_radio/ui-new/*.cpp>
+<helpers/ui/companion-new>
lib_deps =
${Meshtiny.lib_deps}
densaugeo/base64 @ ~1.4.0
+2 -1
View File
@@ -14,11 +14,12 @@ AutoDiscoverRTCClock rtc_clock(fallback_clock);
EnvironmentSensorManager sensors = EnvironmentSensorManager();
#ifdef DISPLAY_CLASS
DISPLAY_CLASS display;
DISPLAY_CLASS display;
MomentaryButton user_btn(ENCODER_PRESS, 1000, true, true);
MomentaryButton joystick_left(ENCODER_LEFT, 1000, true, true);
MomentaryButton joystick_right(ENCODER_RIGHT, 1000, true, true);
MomentaryButton back_btn(PIN_SIDE_BUTTON, 1000, true, true);
UITask ui_task(&board, &display);
#endif
bool radio_init() {
+2
View File
@@ -10,6 +10,7 @@
#ifdef DISPLAY_CLASS
#include <helpers/ui/MomentaryButton.h>
#include <helpers/ui/SSD1306Display.h>
#include <UITask.h>
#endif
#include <helpers/sensors/EnvironmentSensorManager.h>
@@ -24,6 +25,7 @@ extern MomentaryButton user_btn;
extern MomentaryButton joystick_left;
extern MomentaryButton joystick_right;
extern MomentaryButton back_btn;
extern UITask ui_task;
#endif
bool radio_init();