Need Help for 24h Display

Store Forums Defusable Clock General Discussion Need Help for 24h Display

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8765
    sacre.olivier
    Participant

    Hello every one,

    Is any body have modify the Programation : “Defusable Clock V2” for displaying 24 hours instead of 12
    i’m looking for it but i still haven’t find the solution
    i’m not performing in programation that’s wy i need your help

    THANKS !!!!!

    ps : i’ve already try the topic : Adapted firmware (Atmega8, Sparkfun display, 24hrs) from melvin March 18, 2012 at 4:35 pm
    and it doesn’t work or i’ve missed somthing 🙂

    Thanks again for helping !!!!!

    #8769
    Michael
    Keymaster

    Try changing this part in the function ISR(TIMER1_OVF_vect):

    if (hours == 12) {
      pm = !pm;
    }
    if (hours == 13) {
      hours = 1;
    }

    to this:

    if ((hours == 12) || (hours == 24)) {
      pm = !pm;
    }
    if (hours == 24) {
      hours = 0;
    }
    • This reply was modified 7 years, 10 months ago by Michael.
    #8775
    sacre.olivier
    Participant

    OK Thank’s
    i’m going to try this

    i’m coming back to you to let you know ….

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.