* thinknode_m5: simplified the target.* modules
This commit is contained in:
1 parent
69b335d700
commit
98f9e81681
4 files changed
+13
-32
No files matched your search
@@ -49,8 +49,7 @@ build_src_filter = ${esp32_base.build_src_filter}
|
|||||||
+<helpers/ui/MomentaryButton.cpp>
|
+<helpers/ui/MomentaryButton.cpp>
|
||||||
+<helpers/ui/GxEPDDisplay.cpp>
|
+<helpers/ui/GxEPDDisplay.cpp>
|
||||||
+<helpers/ui/BaseUITask.cpp>
|
+<helpers/ui/BaseUITask.cpp>
|
||||||
+<../variants/thinknode_m5/target.cpp>
|
+<../variants/thinknode_m5/*.cpp>
|
||||||
+<../variants/thinknode_m5/ThinknodeM5Board.cpp>
|
|
||||||
lib_deps = ${esp32_base.lib_deps}
|
lib_deps = ${esp32_base.lib_deps}
|
||||||
zinggjm/GxEPD2 @ 1.6.2
|
zinggjm/GxEPD2 @ 1.6.2
|
||||||
bakercp/CRC32 @ ^2.0.0
|
bakercp/CRC32 @ ^2.0.0
|
||||||
@@ -61,7 +60,6 @@ lib_deps = ${esp32_base.lib_deps}
|
|||||||
extends = ThinkNode_M5
|
extends = ThinkNode_M5
|
||||||
build_src_filter = ${ThinkNode_M5.build_src_filter}
|
build_src_filter = ${ThinkNode_M5.build_src_filter}
|
||||||
+<../examples/simple_repeater/*.cpp>
|
+<../examples/simple_repeater/*.cpp>
|
||||||
+<../variants/thinknode_m5/target-other.cpp>
|
|
||||||
+<helpers/ui/server>
|
+<helpers/ui/server>
|
||||||
build_flags =
|
build_flags =
|
||||||
${ThinkNode_M5.build_flags}
|
${ThinkNode_M5.build_flags}
|
||||||
@@ -104,7 +102,6 @@ extends = ThinkNode_M5
|
|||||||
build_src_filter = ${ThinkNode_M5.build_src_filter}
|
build_src_filter = ${ThinkNode_M5.build_src_filter}
|
||||||
+<helpers/bridges/ESPNowBridge.cpp>
|
+<helpers/bridges/ESPNowBridge.cpp>
|
||||||
+<../examples/simple_repeater/*.cpp>
|
+<../examples/simple_repeater/*.cpp>
|
||||||
+<../variants/thinknode_m5/target-other.cpp>
|
|
||||||
+<helpers/ui/server>
|
+<helpers/ui/server>
|
||||||
build_flags =
|
build_flags =
|
||||||
${ThinkNode_M5.build_flags}
|
${ThinkNode_M5.build_flags}
|
||||||
@@ -127,7 +124,6 @@ lib_deps =
|
|||||||
extends = ThinkNode_M5
|
extends = ThinkNode_M5
|
||||||
build_src_filter = ${ThinkNode_M5.build_src_filter}
|
build_src_filter = ${ThinkNode_M5.build_src_filter}
|
||||||
+<../examples/simple_room_server>
|
+<../examples/simple_room_server>
|
||||||
+<../variants/thinknode_m5/target-other.cpp>
|
|
||||||
+<helpers/ui/server>
|
+<helpers/ui/server>
|
||||||
build_flags =
|
build_flags =
|
||||||
${ThinkNode_M5.build_flags}
|
${ThinkNode_M5.build_flags}
|
||||||
@@ -162,6 +158,7 @@ lib_deps =
|
|||||||
extends = ThinkNode_M5
|
extends = ThinkNode_M5
|
||||||
build_flags =
|
build_flags =
|
||||||
${ThinkNode_M5.build_flags}
|
${ThinkNode_M5.build_flags}
|
||||||
|
-I src/helpers/ui/companion-new
|
||||||
-D MAX_CONTACTS=350
|
-D MAX_CONTACTS=350
|
||||||
-D MAX_GROUP_CHANNELS=40
|
-D MAX_GROUP_CHANNELS=40
|
||||||
-D BLE_PIN_CODE=123456
|
-D BLE_PIN_CODE=123456
|
||||||
@@ -170,10 +167,8 @@ build_flags =
|
|||||||
; -D BLE_DEBUG_LOGGING=1
|
; -D BLE_DEBUG_LOGGING=1
|
||||||
; -D MESH_PACKET_LOGGING=1
|
; -D MESH_PACKET_LOGGING=1
|
||||||
; -D GPS_NMEA_DEBUG
|
; -D GPS_NMEA_DEBUG
|
||||||
-I src/helpers/ui/companion-new
|
|
||||||
build_src_filter = ${ThinkNode_M5.build_src_filter}
|
build_src_filter = ${ThinkNode_M5.build_src_filter}
|
||||||
+<../examples/companion_radio/*.cpp>
|
+<../examples/companion_radio/*.cpp>
|
||||||
+<../variants/thinknode_m5/target-companion.cpp>
|
|
||||||
+<helpers/ui/companion-new>
|
+<helpers/ui/companion-new>
|
||||||
+<helpers/esp32/*.cpp>
|
+<helpers/esp32/*.cpp>
|
||||||
+<helpers/ui/MomentaryButton.cpp>
|
+<helpers/ui/MomentaryButton.cpp>
|
||||||
@@ -187,7 +182,7 @@ lib_deps =
|
|||||||
extends = ThinkNode_M5
|
extends = ThinkNode_M5
|
||||||
build_flags =
|
build_flags =
|
||||||
${ThinkNode_M5.build_flags}
|
${ThinkNode_M5.build_flags}
|
||||||
-I examples/companion_radio/ui-new
|
-I src/helpers/ui/companion-new
|
||||||
-D MAX_CONTACTS=350
|
-D MAX_CONTACTS=350
|
||||||
-D MAX_GROUP_CHANNELS=40
|
-D MAX_GROUP_CHANNELS=40
|
||||||
-D OFFLINE_QUEUE_SIZE=256
|
-D OFFLINE_QUEUE_SIZE=256
|
||||||
@@ -197,7 +192,6 @@ build_flags =
|
|||||||
-I src/helpers/ui/companion-new
|
-I src/helpers/ui/companion-new
|
||||||
build_src_filter = ${ThinkNode_M5.build_src_filter}
|
build_src_filter = ${ThinkNode_M5.build_src_filter}
|
||||||
+<../examples/companion_radio/*.cpp>
|
+<../examples/companion_radio/*.cpp>
|
||||||
+<../variants/thinknode_m5/target-companion.cpp>
|
|
||||||
+<helpers/ui/companion-new>
|
+<helpers/ui/companion-new>
|
||||||
+<helpers/esp32/*.cpp>
|
+<helpers/esp32/*.cpp>
|
||||||
+<helpers/ui/MomentaryButton.cpp>
|
+<helpers/ui/MomentaryButton.cpp>
|
||||||
@@ -212,7 +206,7 @@ lib_deps =
|
|||||||
extends = ThinkNode_M5
|
extends = ThinkNode_M5
|
||||||
build_flags =
|
build_flags =
|
||||||
${ThinkNode_M5.build_flags}
|
${ThinkNode_M5.build_flags}
|
||||||
-I examples/companion_radio/ui-new
|
-I src/helpers/ui/companion-new
|
||||||
-D ENABLE_WIFI_INTERFACE
|
-D ENABLE_WIFI_INTERFACE
|
||||||
-D MAX_CONTACTS=350
|
-D MAX_CONTACTS=350
|
||||||
-D MAX_GROUP_CHANNELS=40
|
-D MAX_GROUP_CHANNELS=40
|
||||||
@@ -224,7 +218,6 @@ build_flags =
|
|||||||
-I src/helpers/ui/companion-new
|
-I src/helpers/ui/companion-new
|
||||||
build_src_filter = ${ThinkNode_M5.build_src_filter}
|
build_src_filter = ${ThinkNode_M5.build_src_filter}
|
||||||
+<../examples/companion_radio/*.cpp>
|
+<../examples/companion_radio/*.cpp>
|
||||||
+<../variants/thinknode_m5/target-companion.cpp>
|
|
||||||
+<helpers/ui/companion-new>
|
+<helpers/ui/companion-new>
|
||||||
+<helpers/esp32/*.cpp>
|
+<helpers/esp32/*.cpp>
|
||||||
+<helpers/wifi/*.cpp>
|
+<helpers/wifi/*.cpp>
|
||||||
@@ -239,7 +232,7 @@ lib_deps =
|
|||||||
extends = ThinkNode_M5
|
extends = ThinkNode_M5
|
||||||
build_flags =
|
build_flags =
|
||||||
${ThinkNode_M5.build_flags}
|
${ThinkNode_M5.build_flags}
|
||||||
-I examples/companion_radio/ui-new
|
-I src/helpers/ui/companion-new
|
||||||
-D MAX_CONTACTS=350
|
-D MAX_CONTACTS=350
|
||||||
-D MAX_GROUP_CHANNELS=40
|
-D MAX_GROUP_CHANNELS=40
|
||||||
-D SERIAL_TX=D6
|
-D SERIAL_TX=D6
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
#include <Arduino.h>
|
|
||||||
#include "target.h"
|
|
||||||
|
|
||||||
#ifdef DISPLAY_CLASS
|
|
||||||
DISPLAY_CLASS display;
|
|
||||||
MomentaryButton user_btn(PIN_USER_BTN, 1000, true);
|
|
||||||
MomentaryButton backlight_btn(BACKLIGHT_BTN, 1000, true);
|
|
||||||
|
|
||||||
UITask ui_task(&board);
|
|
||||||
#endif
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
#include <Arduino.h>
|
|
||||||
#include "target.h"
|
|
||||||
|
|
||||||
#ifdef DISPLAY_CLASS
|
|
||||||
DISPLAY_CLASS display;
|
|
||||||
MomentaryButton user_btn(PIN_USER_BTN, 1000, true);
|
|
||||||
MomentaryButton backlight_btn(BACKLIGHT_BTN, 1000, true);
|
|
||||||
|
|
||||||
UITask ui_task(board, display);
|
|
||||||
#endif
|
|
||||||
@@ -24,6 +24,14 @@ EnvironmentSensorManager sensors = EnvironmentSensorManager(nmea);
|
|||||||
EnvironmentSensorManager sensors = EnvironmentSensorManager();
|
EnvironmentSensorManager sensors = EnvironmentSensorManager();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef DISPLAY_CLASS
|
||||||
|
DISPLAY_CLASS display;
|
||||||
|
MomentaryButton user_btn(PIN_USER_BTN, 1000, true);
|
||||||
|
MomentaryButton backlight_btn(BACKLIGHT_BTN, 1000, true);
|
||||||
|
|
||||||
|
UITask ui_task(&board, &display);
|
||||||
|
#endif
|
||||||
|
|
||||||
bool radio_init() {
|
bool radio_init() {
|
||||||
fallback_clock.begin();
|
fallback_clock.begin();
|
||||||
rtc_clock.begin(Wire);
|
rtc_clock.begin(Wire);
|
||||||
|
|||||||
Reference in new issue
Block a user