The code is stuck on output 0. That means that the increment does not work.
The serial said that only the first was high, rest is low. Does not matter how I press the button.
I was hoping there was a programming error you could see since this is really simple code with not much to it..
I tried to remember that global variable. I had problems with a similar code in the past, I was told to use global, but I did not find that thread again.
But then I should move
int buttonNumber = 0;
under void setup() and instead of int use global int? Don't know how to type it though..
The switch is not hooked up ringt now. I am applying 5V to the input, so no pulldown.. I am just testing now