mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
LilyGo T-Beam: added battery voltage reporting
This commit is contained in:
parent
511a935bbf
commit
a3c8597747
1 changed files with 3 additions and 3 deletions
|
|
@ -33,11 +33,11 @@ class TBeamBoard : public ESP32Board {
|
|||
public:
|
||||
void begin() {
|
||||
ESP32Board::begin();
|
||||
|
||||
|
||||
power.setALDO2Voltage(3300);
|
||||
power.enableALDO2();
|
||||
|
||||
pinMode(38,INPUT_PULLUP);
|
||||
pinMode(38, INPUT_PULLUP);
|
||||
|
||||
esp_reset_reason_t reason = esp_reset_reason();
|
||||
if (reason == ESP_RST_DEEPSLEEP) {
|
||||
|
|
@ -75,7 +75,7 @@ public:
|
|||
}
|
||||
|
||||
uint16_t getBattMilliVolts() override {
|
||||
return 0;
|
||||
return power.getBattVoltage();
|
||||
}
|
||||
|
||||
const char* getManufacturerName() const override {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue