mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-03-30 14:55:46 +00:00
The startOTAUpdate() is the same for all NRF52 boards. Use a common implementation for all boards that currently have a specific implementation. The following boards currently have an empty startOTAUpdate() for whatever reasons and therefore are not inheriting NRF52BoardOTA to keep the same state: Nano G2 Ultra, Seeed SenseCAP T1000-E, Wio WM1110. Signed-off-by: Frieder Schrempf <frieder@fris.de>
23 lines
439 B
C++
23 lines
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(10); // give sx1262 some time to power up
|
|
} |