2025-10-11 18:01:26 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <Arduino.h>
|
|
|
|
|
#include <helpers/RefCountedDigitalPin.h>
|
|
|
|
|
#include <helpers/ESP32Board.h>
|
|
|
|
|
#include <driver/rtc_io.h>
|
2026-03-06 14:19:07 +08:00
|
|
|
#include "LoRaFEMControl.h"
|
2025-10-11 18:01:26 +08:00
|
|
|
|
|
|
|
|
class HeltecTrackerV2Board : public ESP32Board {
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
RefCountedDigitalPin periph_power;
|
2026-03-06 14:19:07 +08:00
|
|
|
LoRaFEMControl loRaFEMControl;
|
2025-10-11 18:01:26 +08:00
|
|
|
|
|
|
|
|
HeltecTrackerV2Board() : periph_power(PIN_VEXT_EN,PIN_VEXT_EN_ACTIVE) { }
|
|
|
|
|
|
|
|
|
|
void begin();
|
|
|
|
|
void onBeforeTransmit(void) override;
|
|
|
|
|
void onAfterTransmit(void) override;
|
|
|
|
|
void enterDeepSleep(uint32_t secs, int pin_wake_btn = -1);
|
|
|
|
|
void powerOff() override;
|
|
|
|
|
uint16_t getBattMilliVolts() override;
|
|
|
|
|
const char* getManufacturerName() const override ;
|
|
|
|
|
|
|
|
|
|
};
|