Update
This commit is contained in:
parent
f4cf5f4616
commit
cee719a36a
@ -130,7 +130,7 @@ void setup() {
|
|||||||
display.clearDisplay();
|
display.clearDisplay();
|
||||||
display.setTextColor(WHITE);
|
display.setTextColor(WHITE);
|
||||||
Wire.begin();
|
Wire.begin();
|
||||||
// Serial.begin(9600);
|
Serial.begin(9600);
|
||||||
digitalWrite(FETCTRL, LOW);
|
digitalWrite(FETCTRL, LOW);
|
||||||
resetScreen();
|
resetScreen();
|
||||||
delay(200);
|
delay(200);
|
||||||
@ -144,7 +144,7 @@ void setup() {
|
|||||||
void loop() {
|
void loop() {
|
||||||
delay(100);
|
delay(100);
|
||||||
delay(900);
|
delay(900);
|
||||||
// Serial.println(getVoltage());
|
Serial.println(getVoltage());
|
||||||
// wdt_reset();
|
// wdt_reset();
|
||||||
checkPresses();
|
checkPresses();
|
||||||
checkCharging();
|
checkCharging();
|
||||||
@ -157,7 +157,7 @@ void loop() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ((powerState == false && screenState == 0) && (charging_1 == false && charging_2 == false)) {
|
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