initial support for Elecrow ThinkNode M1
This commit is contained in:
@@ -21,7 +21,6 @@ build_flags = ${nrf52840_thinknode_m1.build_flags}
|
|||||||
-D LORA_TX_POWER=22
|
-D LORA_TX_POWER=22
|
||||||
-D SX126X_CURRENT_LIMIT=130
|
-D SX126X_CURRENT_LIMIT=130
|
||||||
-D SX126X_RX_BOOSTED_GAIN=1
|
-D SX126X_RX_BOOSTED_GAIN=1
|
||||||
|
|
||||||
build_src_filter = ${nrf52840_thinknode_m1.build_src_filter}
|
build_src_filter = ${nrf52840_thinknode_m1.build_src_filter}
|
||||||
+<helpers/*.cpp>
|
+<helpers/*.cpp>
|
||||||
+<helpers/nrf52/ThinkNodeM1Board.cpp>
|
+<helpers/nrf52/ThinkNodeM1Board.cpp>
|
||||||
@@ -31,33 +30,33 @@ upload_protocol = nrfutil
|
|||||||
|
|
||||||
[env:ThinkNode_M1_repeater]
|
[env:ThinkNode_M1_repeater]
|
||||||
extends = ThinkNode_M1
|
extends = ThinkNode_M1
|
||||||
build_src_filter = ${ThinkNode_M1.build_src_filter} +<../examples/simple_repeater/main.cpp>
|
|
||||||
build_flags =
|
build_flags =
|
||||||
${ThinkNode_M1.build_flags}
|
${ThinkNode_M1.build_flags}
|
||||||
-D ADVERT_NAME='"ThinkNode Repeater"'
|
-D ADVERT_NAME='"ThinkNode Repeater"'
|
||||||
-D ADVERT_LAT=0.0
|
-D ADVERT_LAT=0.0
|
||||||
-D ADVERT_LON=0.0
|
-D ADVERT_LON=0.0
|
||||||
-D ADMIN_PASSWORD='"password"'
|
-D ADMIN_PASSWORD='"password"'
|
||||||
-D DISPLAY_CLASS=GxEPDDisplay
|
|
||||||
-D DISPLAY_ROTATION=1
|
|
||||||
-D HAS_GxEPD
|
|
||||||
; -D MESH_PACKET_LOGGING=1
|
; -D MESH_PACKET_LOGGING=1
|
||||||
; -D MESH_DEBUG=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]
|
[env:ThinkNode_M1_room_server]
|
||||||
extends = ThinkNode_M1
|
extends = ThinkNode_M1
|
||||||
build_src_filter = ${ThinkNode_M1.build_src_filter} +<../examples/simple_room_server/main.cpp>
|
|
||||||
build_flags =
|
build_flags =
|
||||||
${ThinkNode_M1.build_flags}
|
${ThinkNode_M1.build_flags}
|
||||||
-D ADVERT_NAME='"ThinkNode Room"'
|
-D ADVERT_NAME='"ThinkNode Room"'
|
||||||
-D ADVERT_LAT=0.0
|
-D ADVERT_LAT=0.0
|
||||||
-D ADVERT_LON=0.0
|
-D ADVERT_LON=0.0
|
||||||
-D ADMIN_PASSWORD='"password"'
|
-D ADMIN_PASSWORD='"password"'
|
||||||
-D DISPLAY_CLASS=GxEPDDisplay
|
|
||||||
-D DISPLAY_ROTATION=2
|
|
||||||
-D HAS_GxEPD
|
|
||||||
; -D MESH_PACKET_LOGGING=1
|
; -D MESH_PACKET_LOGGING=1
|
||||||
; -D MESH_DEBUG=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]
|
[env:ThinkNode_M1_companion_radio_ble]
|
||||||
extends = ThinkNode_M1
|
extends = ThinkNode_M1
|
||||||
@@ -68,8 +67,8 @@ build_flags =
|
|||||||
-D MAX_GROUP_CHANNELS=8
|
-D MAX_GROUP_CHANNELS=8
|
||||||
-D BLE_PIN_CODE=123456
|
-D BLE_PIN_CODE=123456
|
||||||
-D BLE_DEBUG_LOGGING=1
|
-D BLE_DEBUG_LOGGING=1
|
||||||
-D DISPLAY_CLASS=GxEPDDisplay
|
|
||||||
-D DISPLAY_ROTATION=4
|
-D DISPLAY_ROTATION=4
|
||||||
|
-D DISPLAY_CLASS=GxEPDDisplay
|
||||||
-D HAS_GxEPD
|
-D HAS_GxEPD
|
||||||
; -D ENABLE_PRIVATE_KEY_IMPORT=1
|
; -D ENABLE_PRIVATE_KEY_IMPORT=1
|
||||||
; -D ENABLE_PRIVATE_KEY_EXPORT=1
|
; -D ENABLE_PRIVATE_KEY_EXPORT=1
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ WRAPPER_CLASS radio_driver(radio, board);
|
|||||||
|
|
||||||
VolatileRTCClock fallback_clock;
|
VolatileRTCClock fallback_clock;
|
||||||
AutoDiscoverRTCClock rtc_clock(fallback_clock);
|
AutoDiscoverRTCClock rtc_clock(fallback_clock);
|
||||||
|
SensorManager sensors;
|
||||||
|
|
||||||
#ifndef LORA_CR
|
#ifndef LORA_CR
|
||||||
#define LORA_CR 5
|
#define LORA_CR 5
|
||||||
|
|||||||
@@ -6,10 +6,12 @@
|
|||||||
#include <helpers/nrf52/ThinkNodeM1Board.h>
|
#include <helpers/nrf52/ThinkNodeM1Board.h>
|
||||||
#include <helpers/CustomSX1262Wrapper.h>
|
#include <helpers/CustomSX1262Wrapper.h>
|
||||||
#include <helpers/AutoDiscoverRTCClock.h>
|
#include <helpers/AutoDiscoverRTCClock.h>
|
||||||
|
#include <helpers/SensorManager.h>
|
||||||
|
|
||||||
extern ThinkNodeM1Board board;
|
extern ThinkNodeM1Board board;
|
||||||
extern WRAPPER_CLASS radio_driver;
|
extern WRAPPER_CLASS radio_driver;
|
||||||
extern AutoDiscoverRTCClock rtc_clock;
|
extern AutoDiscoverRTCClock rtc_clock;
|
||||||
|
extern SensorManager sensors;
|
||||||
|
|
||||||
bool radio_init();
|
bool radio_init();
|
||||||
uint32_t radio_get_rng_seed();
|
uint32_t radio_get_rng_seed();
|
||||||
|
|||||||
Reference in New Issue
Block a user