Forum Replies Created
-
AuthorPosts
-
philmontyMember
without the smiles inserted.
// Flash the Colon
if (digitalRead(COLON) == LOW)
digitalWrite(COLON, HIGH);else
digitalWrite(COLON, LOW);//Added this block to chime & count down to each hour
if (((hours >= 8) && !pm) || ((hours <= 10) && pm)) { // only chime between 8am and 10pm if ((minutes ==59) && (seconds == (60 – (hours + 1)))) { //countdown top of hour for number of seconds the hour is turning displayCountdown = true;
countdownSeconds = (hours + 1);
countdownRunning = true;
ticked = false; //Need to do this to prevent writing in the EEPROM value for Countdown seconds
}
}philmontyMemberI made a mistake in the modified firmware – if you use the firmware that writes to EEPROM my changes result in the countdown time being written – this corrects that. I also added the ability to flash the colon (typical in digital clocks).
// Flash the Colon
if (digitalRead(COLON) == LOW)
digitalWrite(COLON, HIGH);else
digitalWrite(COLON, LOW);//Added this block to chime & count down to each hour
if (((hours >= 8) && !pm) || ((hours <= 10) && pm)) { // only chime between 8am and 10pm if ((minutes ==59) && (seconds == (60 – (hours + 1)))) { //countdown top of hour for number of seconds the hour is turning displayCountdown = true;
countdownSeconds = (hours + 1);
countdownRunning = true;
ticked = false; //Need to do this to prevent writing in the EEPROM value for Countdown seconds
}
} -
AuthorPosts