TucsonDon
Member
I am a hobbyist and have a basic knowledge of C. I am trying to set up a call function to set the time on an rtcc. I have it set so that if a button is pushed for a set time it will call the function. I want to toggle between the HH:MM:SS with the "Set" button and then use a "up" or “down" to change the value. I was thinking of using a switch statement to toggle between but unsure how to setup.
I have also defined the following
volatile uint8_t Time[3]
volatile uint8_t stime[Time]
HH=Time[2]
MM=Time[1]
SS=Time[0]
I have also defined the following
volatile uint8_t Time[3]
volatile uint8_t stime[Time]
HH=Time[2]
MM=Time[1]
SS=Time[0]