Add reset and quick start to fuel gauge to help with battery swaps
This commit is contained in:
parent
3a83bc5b43
commit
9ee753f1a4
|
@ -59,6 +59,11 @@ void setup()
|
||||||
{
|
{
|
||||||
// Initialize Fuel Gauge
|
// Initialize Fuel Gauge
|
||||||
FuelGauge.begin();
|
FuelGauge.begin();
|
||||||
|
delay(100);
|
||||||
|
FuelGauge.reset();
|
||||||
|
delay(100);
|
||||||
|
FuelGauge.quickstart();
|
||||||
|
delay(100);
|
||||||
|
|
||||||
// Initialize display
|
// Initialize display
|
||||||
display.init(115200);
|
display.init(115200);
|
||||||
|
@ -153,5 +158,5 @@ void loop()
|
||||||
display.hibernate();
|
display.hibernate();
|
||||||
|
|
||||||
// Delay looping (deep sleep goes here in the future)
|
// Delay looping (deep sleep goes here in the future)
|
||||||
delay(HOUR);
|
delay(10*60*SECOND);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue