Morbid:
... I have a library for denouncing buttons ...
Morbid:
... So what is the best debounce library ? :o
Oh, thank God! I thought this was gonna be political!
Morbid:
...This is the code that the library uses,
Button myBtn(BUTTON_PIN, PULLUP, INVERT, DEBOUNCE_MS); //Declare the button
How would i declare an array of 4 buttons.
For those interested here is the link to the library, I am also open to alternatives.
GitHub - JChristensen/JC_Button: Arduino library to debounce button switches, detect presses, releases, and long pressesThanks in advance
ME
I don't know how Mr. Christensen intended that it be used (he is a member here), but if I were using this library, I would declare 4 buttons, then put them in to an array.
Actually I never use a button library, but that is political, so ...