Update
This commit is contained in:
parent
f4cf5f4616
commit
cee719a36a
@ -130,7 +130,7 @@ void setup() {
|
||||
display.clearDisplay();
|
||||
display.setTextColor(WHITE);
|
||||
Wire.begin();
|
||||
// Serial.begin(9600);
|
||||
Serial.begin(9600);
|
||||
digitalWrite(FETCTRL, LOW);
|
||||
resetScreen();
|
||||
delay(200);
|
||||
@ -144,7 +144,7 @@ void setup() {
|
||||
void loop() {
|
||||
delay(100);
|
||||
delay(900);
|
||||
// Serial.println(getVoltage());
|
||||
Serial.println(getVoltage());
|
||||
// wdt_reset();
|
||||
checkPresses();
|
||||
checkCharging();
|
||||
@ -157,7 +157,7 @@ void loop() {
|
||||
}
|
||||
}
|
||||
if ((powerState == false && screenState == 0) && (charging_1 == false && charging_2 == false)) {
|
||||
// LowPower.powerDown(SLEEP_1S, ADC_OFF, BOD_OFF);
|
||||
LowPower.powerDown(SLEEP_1S, ADC_OFF, BOD_OFF);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user