mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
initial support for Elecrow ThinkNode M1
This commit is contained in:
parent
1e031e989d
commit
b407f923e0
3 changed files with 12 additions and 10 deletions
|
|
@ -21,7 +21,6 @@ build_flags = ${nrf52840_thinknode_m1.build_flags}
|
|||
-D LORA_TX_POWER=22
|
||||
-D SX126X_CURRENT_LIMIT=130
|
||||
-D SX126X_RX_BOOSTED_GAIN=1
|
||||
|
||||
build_src_filter = ${nrf52840_thinknode_m1.build_src_filter}
|
||||
+<helpers/*.cpp>
|
||||
+<helpers/nrf52/ThinkNodeM1Board.cpp>
|
||||
|
|
@ -31,33 +30,33 @@ upload_protocol = nrfutil
|
|||
|
||||
[env:ThinkNode_M1_repeater]
|
||||
extends = ThinkNode_M1
|
||||
build_src_filter = ${ThinkNode_M1.build_src_filter} +<../examples/simple_repeater/main.cpp>
|
||||
build_flags =
|
||||
${ThinkNode_M1.build_flags}
|
||||
-D ADVERT_NAME='"ThinkNode Repeater"'
|
||||
-D ADVERT_LAT=0.0
|
||||
-D ADVERT_LON=0.0
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D DISPLAY_CLASS=GxEPDDisplay
|
||||
-D DISPLAY_ROTATION=1
|
||||
-D HAS_GxEPD
|
||||
; -D MESH_PACKET_LOGGING=1
|
||||
; -D MESH_DEBUG=1
|
||||
build_src_filter = ${ThinkNode_M1.build_src_filter}
|
||||
+<../examples/simple_repeater/main.cpp>
|
||||
lib_deps =
|
||||
${ThinkNode_M1.lib_deps}
|
||||
|
||||
[env:ThinkNode_M1_room_server]
|
||||
extends = ThinkNode_M1
|
||||
build_src_filter = ${ThinkNode_M1.build_src_filter} +<../examples/simple_room_server/main.cpp>
|
||||
build_flags =
|
||||
${ThinkNode_M1.build_flags}
|
||||
-D ADVERT_NAME='"ThinkNode Room"'
|
||||
-D ADVERT_LAT=0.0
|
||||
-D ADVERT_LON=0.0
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D DISPLAY_CLASS=GxEPDDisplay
|
||||
-D DISPLAY_ROTATION=2
|
||||
-D HAS_GxEPD
|
||||
; -D MESH_PACKET_LOGGING=1
|
||||
; -D MESH_DEBUG=1
|
||||
build_src_filter = ${ThinkNode_M1.build_src_filter}
|
||||
+<../examples/simple_room_server/main.cpp>
|
||||
lib_deps =
|
||||
${ThinkNode_M1.lib_deps}
|
||||
|
||||
[env:ThinkNode_M1_companion_radio_ble]
|
||||
extends = ThinkNode_M1
|
||||
|
|
@ -68,8 +67,8 @@ build_flags =
|
|||
-D MAX_GROUP_CHANNELS=8
|
||||
-D BLE_PIN_CODE=123456
|
||||
-D BLE_DEBUG_LOGGING=1
|
||||
-D DISPLAY_CLASS=GxEPDDisplay
|
||||
-D DISPLAY_ROTATION=4
|
||||
-D DISPLAY_CLASS=GxEPDDisplay
|
||||
-D HAS_GxEPD
|
||||
; -D ENABLE_PRIVATE_KEY_IMPORT=1
|
||||
; -D ENABLE_PRIVATE_KEY_EXPORT=1
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ WRAPPER_CLASS radio_driver(radio, board);
|
|||
|
||||
VolatileRTCClock fallback_clock;
|
||||
AutoDiscoverRTCClock rtc_clock(fallback_clock);
|
||||
SensorManager sensors;
|
||||
|
||||
#ifndef LORA_CR
|
||||
#define LORA_CR 5
|
||||
|
|
|
|||
|
|
@ -6,10 +6,12 @@
|
|||
#include <helpers/nrf52/ThinkNodeM1Board.h>
|
||||
#include <helpers/CustomSX1262Wrapper.h>
|
||||
#include <helpers/AutoDiscoverRTCClock.h>
|
||||
#include <helpers/SensorManager.h>
|
||||
|
||||
extern ThinkNodeM1Board board;
|
||||
extern WRAPPER_CLASS radio_driver;
|
||||
extern AutoDiscoverRTCClock rtc_clock;
|
||||
extern SensorManager sensors;
|
||||
|
||||
bool radio_init();
|
||||
uint32_t radio_get_rng_seed();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue