mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-05-28 00:44:32 +00:00
27 lines
649 B
C++
27 lines
649 B
C++
#pragma once
|
|
|
|
#include <Arduino.h>
|
|
#include <MeshCore.h>
|
|
#include <helpers/NRF52Board.h>
|
|
#include <helpers/RefCountedDigitalPin.h>
|
|
|
|
class T1Board : public NRF52BoardDCDC {
|
|
protected:
|
|
#ifdef NRF52_POWER_MANAGEMENT
|
|
void initiateShutdown(uint8_t reason) override;
|
|
#endif
|
|
void variant_shutdown();
|
|
|
|
public:
|
|
RefCountedDigitalPin periph_power;
|
|
|
|
T1Board() : periph_power(PIN_TFT_VDD_CTL, PIN_TFT_VDD_CTL_ACTIVE), NRF52Board("T1_OTA") {}
|
|
|
|
void begin();
|
|
void onBeforeTransmit() override;
|
|
void onAfterTransmit() override;
|
|
uint16_t getBattMilliVolts() override;
|
|
const char* getManufacturerName() const override;
|
|
void powerOff() override;
|
|
};
|