2025-07-01 01:56:34 +03:00
|
|
|
#include <Arduino.h>
|
|
|
|
|
#include <Wire.h>
|
|
|
|
|
|
2025-12-09 19:56:00 +01:00
|
|
|
#include "MinewsemiME25LS01Board.h"
|
2025-07-01 01:56:34 +03:00
|
|
|
|
|
|
|
|
void MinewsemiME25LS01Board::begin() {
|
2025-12-09 15:00:08 +01:00
|
|
|
NRF52Board::begin();
|
2025-07-01 01:56:34 +03:00
|
|
|
btn_prev_state = HIGH;
|
2025-07-04 19:27:11 +03:00
|
|
|
|
|
|
|
|
pinMode(PIN_VBAT_READ, INPUT);
|
2025-07-01 01:56:34 +03:00
|
|
|
|
|
|
|
|
#ifdef BUTTON_PIN
|
|
|
|
|
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();
|
|
|
|
|
|
|
|
|
|
#ifdef P_LORA_TX_LED
|
|
|
|
|
pinMode(P_LORA_TX_LED, OUTPUT);
|
|
|
|
|
digitalWrite(P_LORA_TX_LED, LOW);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
delay(10); // give sx1262 some time to power up
|
2025-07-04 19:27:11 +03:00
|
|
|
}
|