Hello
I know I'm a newbie in arduino. I try to do little fun things by "stealing" pieces of code and then inserting them into my code. Then I learn a little along the way.
I'm creating a code with five buttons (the small arduino tactile buttons) which must activate each LED when pressed (and turn off the others - but I have that part under control).
My problem is that I don't have an action when I press. Sometimes I have to press 10 times, other times just once.
The code below on one button.
The button is mounted with 5V and GND with 10K resistor on one side, signal to board on the other.
As I said - it works... but it's not guaranteed to work
Start with Buton, then go on to Bounce. Now try to do what you were doing with just one button. Once that works, scale it up to 5. The samples are in the IDE.
You would be surprised at all the useful stuff there. Also, when you install a library, they usually have examples with them, so you should check the examples folder for New examples