|
|
|
@ -4,8 +4,7 @@ |
|
|
|
|
|
|
|
#include <bluefruit.h> |
|
|
|
|
|
|
|
void T1000eBoard::begin() |
|
|
|
{ |
|
|
|
void T1000eBoard::begin() { |
|
|
|
// for future use, sub-classes SHOULD call this from their begin()
|
|
|
|
startup_reason = BD_STARTUP_NORMAL; |
|
|
|
btn_prev_state = HIGH; |
|
|
|
@ -16,6 +15,10 @@ void T1000eBoard::begin() |
|
|
|
pinMode(LED_PIN, OUTPUT); |
|
|
|
#endif |
|
|
|
|
|
|
|
#if defined(PIN_BOARD_SDA) && defined(PIN_BOARD_SCL) |
|
|
|
Wire.setPins(PIN_BOARD_SDA, PIN_BOARD_SCL) |
|
|
|
#endif |
|
|
|
|
|
|
|
Wire.begin(); |
|
|
|
|
|
|
|
delay(10); // give sx1262 some time to power up
|
|
|
|
@ -24,14 +27,12 @@ void T1000eBoard::begin() |
|
|
|
#if 0 |
|
|
|
static BLEDfu bledfu; |
|
|
|
|
|
|
|
static void connect_callback(uint16_t conn_handle) |
|
|
|
{ |
|
|
|
static void connect_callback(uint16_t conn_handle) { |
|
|
|
(void)conn_handle; |
|
|
|
MESH_DEBUG_PRINTLN("BLE client connected"); |
|
|
|
} |
|
|
|
|
|
|
|
static void disconnect_callback(uint16_t conn_handle, uint8_t reason) |
|
|
|
{ |
|
|
|
static void disconnect_callback(uint16_t conn_handle, uint8_t reason) { |
|
|
|
(void)conn_handle; |
|
|
|
(void)reason; |
|
|
|
|
|
|
|
|