philmonty

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Modified Firmware #959
    philmonty
    Member

    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
    }
    }

    in reply to: Modified Firmware #958
    philmonty
    Member

    I 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
    }
    }

Viewing 2 posts - 1 through 2 (of 2 total)