Rename MeshPocket V2 board and targets with Heltec prefix
This commit is contained in:
1 parent
a72a75cd08
commit
d6cd80e0e6
12 files changed
+42
-42
No files matched your search
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
#include <helpers/NRF52Board.h>
|
||||
#include "PowerBank.h"
|
||||
|
||||
class HeltecMeshPocketV2Board : public NRF52Board {
|
||||
public:
|
||||
HeltecMeshPocketV2Board() : NRF52Board("MeshPocket_V2_OTA") {}
|
||||
PowerBank powerBank;
|
||||
void begin() override;
|
||||
void loop() override { powerBank.poll(); }
|
||||
uint16_t getBattMilliVolts() override;
|
||||
bool isChargerActive() override { return powerBank.snapshot().hasChargingInput(); }
|
||||
bool hasChargerStatus() const override { return true; }
|
||||
mesh::BoardUiExtension* getUiExtension() override;
|
||||
bool toggleUsbData();
|
||||
bool isUsbDataEnabled() const;
|
||||
const char* getManufacturerName() const override { return "Heltec MeshPocket V2"; }
|
||||
void shutdownPeripherals() override;
|
||||
|
||||
private:
|
||||
class UiExtension;
|
||||
UiExtension& uiExtension();
|
||||
void setUsbDataEnabled(bool enabled);
|
||||
};
|
||||
Reference in new issue
Block a user