void updateAlarm() { time_t almTime = wkAlarm.getAlarmTime(); int h = hour(almTime); int m = minute(almTime); digitValues[0] = h / 10; digitValues[1] = h % 10; digitValues[2] = m / 10; digitValues[3] = m % 10; for (int i = 0; i < N; i++) display.writeDigit(i, digitValues[i]); }
void printAlarmStatus() { time_t almSet = wkAlarm.getAlarmTime(); byte h, m, rtcOn; h = hour(almSet); m = minute(almSet); printDigits(h,' '); printDigits(m,':'); rtcOn = isRtcAlarmOn(); if (rtcOn) Serial.println(" -- ON"); else Serial.println(" -- OFF"); }