Browse Source

Add reset and quick start to fuel gauge to help with battery swaps

master
KemoNine 3 years ago
parent
commit
9ee753f1a4
  1. 7
      hardware/arduino/Plant_Monitor/ino/ino.ino

7
hardware/arduino/Plant_Monitor/ino/ino.ino

@ -59,6 +59,11 @@ void setup()
{
// Initialize Fuel Gauge
FuelGauge.begin();
delay(100);
FuelGauge.reset();
delay(100);
FuelGauge.quickstart();
delay(100);
// Initialize display
display.init(115200);
@ -153,5 +158,5 @@ void loop()
display.hibernate();
// Delay looping (deep sleep goes here in the future)
delay(HOUR);
delay(10*60*SECOND);
}

Loading…
Cancel
Save