Browse Source

LilyGo T-Beam: added battery voltage reporting

pull/188/head
recrof 1 year ago
parent
commit
a3c8597747
  1. 4
      src/helpers/TBeamBoard.h

4
src/helpers/TBeamBoard.h

@ -37,7 +37,7 @@ public:
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…
Cancel
Save