Hello,
For my project i have to be able to switch from °C to °F to the value of my alarm. The value of those 3 can be printed on my 7 segment displays that works perfectly. I have a button which changes value (0,1,2) when pressed. now the problem is that some time after the change of the value will still work but the it will only give the value of °C and alarm when pressing the button. And if i wait 20seconds more, the °F will be unblocked.
It is very strange because at the start it works perfectly, later not and even later it works again...
do yourself a favour and please read How to get the best out of this forum and modify your post accordingly (including code tags and necessary documentation for your ask).
Hello
Well I guess a button handler, including debouncing, and a FSM could help.
Have a nice day and enjoy coding in C++.
p.s.
Don´t forget to post your sketch in code tags.