Rev1 updates

This commit is contained in:
Kyle Gabriel
2019-08-25 13:56:43 -04:00
parent 36eacfc4a2
commit ba4c897cee
3 changed files with 23 additions and 2 deletions

View File

@ -103,6 +103,23 @@ void screen_setup() {
}
void screen_loop() {
#ifdef T_BEAM_V10
if (axp192_found && pmu_irq) {
pmu_irq = false;
axp.readIRQ();
if (axp.isChargingIRQ()) {
baChStatus = "Charging";
} else {
baChStatus = "No Charging";
}
if (axp.isVbusRemoveIRQ()) {
baChStatus = "No Charging";
}
digitalWrite(2, !digitalRead(2));
axp.clearIRQ();
}
#endif
display->clear();
_screen_header();
display->drawLogBuffer(0, SCREEN_HEADER_HEIGHT);