Help with Multi-Dimensional array

Hi All,
I have a library for denouncing buttons, I want to put it in an array so i can check them in a for loop,

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.

Thanks in advance
ME

Hi Again,
So what is the best debounce library ? :o

I assume that by buttons you mean normally open momentary switches.

I use hardware debounce on my button switches. A 0.1uf cap across the switch and that is it. If the 0.1uf cap doesn't debounce the switch properly the switch goes in the trash. I always wire my switches from input to ground with the internal pullup enabled.

Thanks for the reply, I will try your suggestion.

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 presses

Thanks 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 ...