mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
23 lines
No EOL
439 B
C++
23 lines
No EOL
439 B
C++
#include <Arduino.h>
|
|
#include <Wire.h>
|
|
|
|
#include "T1000eBoard.h"
|
|
|
|
void T1000eBoard::begin() {
|
|
NRF52BoardDCDC::begin();
|
|
btn_prev_state = HIGH;
|
|
|
|
#ifdef BUTTON_PIN
|
|
pinMode(BATTERY_PIN, INPUT);
|
|
pinMode(BUTTON_PIN, INPUT);
|
|
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(150); // give LR1110 some time to power up
|
|
} |