while (SetClockButtonState == 0)
I think you need to actually read the state of the button... In fact, I know that you do.
while(digitalRead(SetClockButton) == LOW)
{
// Do something
}
while (SetClockButtonState == 0)
I think you need to actually read the state of the button... In fact, I know that you do.
while(digitalRead(SetClockButton) == LOW)
{
// Do something
}