News

For clarity, I’m assuming that you know how to read the button state on your particular microcontroller, and the function read_button() takes care of that.
You can read the state of a button using Arduino and a few lines of code. The actual state is shown in the Serial Monitor window as 0 or 1, 0 meaning the button is not pressed and 1 that the button is ...