mirror of
https://github.com/brendanhaines/Hohm-Phone.git
synced 2024-12-26 10:57:36 -07:00
makes low battery light work
This commit is contained in:
parent
5ea835ef74
commit
4bfe585457
|
@ -171,11 +171,13 @@ void loop() {
|
||||||
uint16_t vbat;
|
uint16_t vbat;
|
||||||
fona.getBattVoltage(&vbat);
|
fona.getBattVoltage(&vbat);
|
||||||
if ( vbat < CHG_VLO ) {
|
if ( vbat < CHG_VLO ) {
|
||||||
digitalWrite( CHG_PIN, HIGH );
|
|
||||||
} else if ( vbat > CHG_VHI ) {
|
|
||||||
digitalWrite( CHG_PIN, LOW );
|
digitalWrite( CHG_PIN, LOW );
|
||||||
|
digitalWrite( LED_BAT_LOW, HIGH );
|
||||||
|
} else if ( vbat > CHG_VHI ) {
|
||||||
|
digitalWrite( CHG_PIN, HIGH );
|
||||||
|
} else {
|
||||||
|
digitalWrite( LED_BAT_LOW, LOW );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user