Repeater, room server, companion: turn off SenseCAP Solar battery divider after reading voltage
This commit is contained in:
1 parent
76bf7afa11
commit
5c73a3b582
3 files changed
+6
-2
No files matched your search
@@ -31,10 +31,9 @@ void SenseCapSolarBoard::begin() {
|
||||
|
||||
pinMode(BATTERY_PIN, INPUT);
|
||||
pinMode(VBAT_ENABLE, OUTPUT);
|
||||
digitalWrite(VBAT_ENABLE, LOW);
|
||||
digitalWrite(VBAT_ENABLE, HIGH);
|
||||
analogReadResolution(12);
|
||||
analogReference(AR_INTERNAL_3_0);
|
||||
delay(50);
|
||||
|
||||
#ifdef PIN_USER_BTN
|
||||
pinMode(PIN_USER_BTN, INPUT_PULLUP);
|
||||
|
||||
Reference in new issue
Block a user