if (ButtonState == <the state you expect>) { // might need some debouncing
now += TimeSpan(3600);
RTC.adjust(now);
}
The code is incomplete because I don't know your wiring and most buttons need debouncing to work correctly.
if (ButtonState == <the state you expect>) { // might need some debouncing
now += TimeSpan(3600);
RTC.adjust(now);
}
The code is incomplete because I don't know your wiring and most buttons need debouncing to work correctly.