2025-03-06 20:43:56 +01:00
|
|
|
#include "T114Board.h"
|
|
|
|
|
|
2025-09-03 19:38:38 +02:00
|
|
|
#include <Arduino.h>
|
2025-03-06 20:43:56 +01:00
|
|
|
#include <Wire.h>
|
|
|
|
|
|
|
|
|
|
void T114Board::begin() {
|
2025-12-09 15:00:08 +01:00
|
|
|
NRF52Board::begin();
|
2025-11-22 10:31:47 +01:00
|
|
|
NRF_POWER->DCDCEN = 1;
|
2025-03-06 20:43:56 +01:00
|
|
|
|
|
|
|
|
pinMode(PIN_VBAT_READ, INPUT);
|
|
|
|
|
|
2025-03-16 10:17:04 +01:00
|
|
|
#if defined(PIN_BOARD_SDA) && defined(PIN_BOARD_SCL)
|
2025-04-09 18:19:13 +10:00
|
|
|
Wire.setPins(PIN_BOARD_SDA, PIN_BOARD_SCL);
|
2025-03-16 10:17:04 +01:00
|
|
|
#endif
|
|
|
|
|
|
2025-03-06 20:43:56 +01:00
|
|
|
Wire.begin();
|
|
|
|
|
|
2025-03-07 21:37:05 +11:00
|
|
|
#ifdef P_LORA_TX_LED
|
|
|
|
|
pinMode(P_LORA_TX_LED, OUTPUT);
|
|
|
|
|
digitalWrite(P_LORA_TX_LED, HIGH);
|
|
|
|
|
#endif
|
|
|
|
|
|
2025-03-06 20:43:56 +01:00
|
|
|
pinMode(SX126X_POWER_EN, OUTPUT);
|
|
|
|
|
digitalWrite(SX126X_POWER_EN, HIGH);
|
2025-09-03 19:38:38 +02:00
|
|
|
delay(10); // give sx1262 some time to power up
|
2025-12-09 19:56:00 +01:00
|
|
|
}
|