* 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

+12 -9
View File
@@ -24,7 +24,6 @@ build_flags = ${esp32_base.build_flags}
-D SX126X_DIO2_AS_RF_SWITCH=true
-D SX126X_DIO3_TCXO_VOLTAGE=3.3
-D SX126X_CURRENT_LIMIT=140
-D DISPLAY_CLASS=SH1106Display
-D USE_SX1262
-D RADIO_CLASS=CustomSX1262
-D WRAPPER_CLASS=CustomSX1262Wrapper
@@ -132,7 +131,8 @@ lib_deps =
extends = ThinkNode_M2
build_flags =
${ThinkNode_M2.build_flags}
-I examples/companion_radio/ui-new
-I src/helpers/ui/companion-new
-D DISPLAY_CLASS=SH1106Display
-D MAX_CONTACTS=350
-D MAX_GROUP_CHANNELS=40
-D BLE_PIN_CODE=123456
@@ -145,7 +145,7 @@ build_src_filter = ${ThinkNode_M2.build_src_filter}
+<helpers/ui/MomentaryButton.cpp>
+<helpers/ui/buzzer.cpp>
+<../examples/companion_radio/*.cpp>
+<../examples/companion_radio/ui-new/*.cpp>
+<helpers/ui/companion-new>
lib_deps =
${ThinkNode_M2.lib_deps}
densaugeo/base64 @ ~1.4.0
@@ -155,7 +155,8 @@ lib_deps =
extends = ThinkNode_M2
build_flags =
${ThinkNode_M2.build_flags}
-I examples/companion_radio/ui-new
-I src/helpers/ui/companion-new
-D DISPLAY_CLASS=SH1106Display
-D MAX_CONTACTS=350
-D MAX_GROUP_CHANNELS=40
-D OFFLINE_QUEUE_SIZE=256
@@ -165,7 +166,7 @@ build_src_filter = ${ThinkNode_M2.build_src_filter}
+<helpers/ui/MomentaryButton.cpp>
+<helpers/ui/buzzer.cpp>
+<../examples/companion_radio/*.cpp>
+<../examples/companion_radio/ui-new/*.cpp>
+<helpers/ui/companion-new>
lib_deps =
${ThinkNode_M2.lib_deps}
densaugeo/base64 @ ~1.4.0
@@ -175,8 +176,9 @@ lib_deps =
extends = ThinkNode_M2
build_flags =
${ThinkNode_M2.build_flags}
-I examples/companion_radio/ui-new
-I src/helpers/ui/companion-new
-D ENABLE_WIFI_INTERFACE
-D DISPLAY_CLASS=SH1106Display
-D MAX_CONTACTS=350
-D MAX_GROUP_CHANNELS=40
-D OFFLINE_QUEUE_SIZE=256
@@ -189,7 +191,7 @@ build_src_filter = ${ThinkNode_M2.build_src_filter}
+<helpers/ui/MomentaryButton.cpp>
+<helpers/ui/buzzer.cpp>
+<../examples/companion_radio/*.cpp>
+<../examples/companion_radio/ui-new/*.cpp>
+<helpers/ui/companion-new>
lib_deps =
${ThinkNode_M2.lib_deps}
densaugeo/base64 @ ~1.4.0
@@ -199,7 +201,8 @@ lib_deps =
extends = ThinkNode_M2
build_flags =
${ThinkNode_M2.build_flags}
-I examples/companion_radio/ui-new
-I src/helpers/ui/companion-new
-D DISPLAY_CLASS=SH1106Display
-D MAX_CONTACTS=350
-D MAX_GROUP_CHANNELS=40
-D SERIAL_TX=43
@@ -211,7 +214,7 @@ build_src_filter = ${ThinkNode_M2.build_src_filter}
+<helpers/ui/MomentaryButton.cpp>
+<helpers/ui/buzzer.cpp>
+<../examples/companion_radio/*.cpp>
+<../examples/companion_radio/ui-new/*.cpp>
+<helpers/ui/companion-new>
lib_deps =
${ThinkNode_M2.lib_deps}
densaugeo/base64 @ ~1.4.0
+1
View File
@@ -19,6 +19,7 @@ SensorManager sensors;
#ifdef DISPLAY_CLASS
DISPLAY_CLASS display;
MomentaryButton user_btn(PIN_USER_BTN, 1000, true);
UITask ui_task(&board, &display);
#endif
bool radio_init() {
+2
View File
@@ -11,6 +11,7 @@
#ifdef DISPLAY_CLASS
#include <helpers/ui/SH1106Display.h>
#include <helpers/ui/MomentaryButton.h>
#include <UITask.h>
#endif
extern ThinknodeM2Board board;
@@ -21,6 +22,7 @@ extern SensorManager sensors;
#ifdef DISPLAY_CLASS
extern DISPLAY_CLASS display;
extern MomentaryButton user_btn;
extern UITask ui_task;
#endif
bool radio_init();