You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running into problems using Button2 with multiple buttons. I thought it might be something I was coding wrong, but I have this exact same problem with the "Multiple Buttons" example that comes with the library.
I have two buttons connected to an Arduino Uno Rev 3 on pins 7 & 8. (The other lead to the button is connected to the ground pins.) I'm connected to my Linux desktop through /dev/ttyACM1 (USB).
Everything works fine for about 15-20 seconds, as I randomly press the buttons. Then things begin to slow. I can press Button A multiple times, and only see one line print in the Serial Monitor. Or alternate and see an occasional A or B show up. Maybe 1 line out of 8 or 10 button pushes.
I don't think its the serial connection or monitor, because my original code uses LEDs to indicate a button has been pushed, and they show the same random push behavior.
And If I just test one of the buttons at a time, using the "Single Button" example (on pins 7 or 8) everything is fine and works as expected. I don't change the wiring, only the example code I'm using.
I'm working on a build where I'll have many buttons, not just two, so I want to make this work.
How can I better debug this to figure out what is going wrong?
FWIW, here is the diagnostic details from avrdude:
I am running into problems using Button2 with multiple buttons. I thought it might be something I was coding wrong, but I have this exact same problem with the "Multiple Buttons" example that comes with the library.
I have two buttons connected to an Arduino Uno Rev 3 on pins 7 & 8. (The other lead to the button is connected to the ground pins.) I'm connected to my Linux desktop through /dev/ttyACM1 (USB).
Everything works fine for about 15-20 seconds, as I randomly press the buttons. Then things begin to slow. I can press Button A multiple times, and only see one line print in the Serial Monitor. Or alternate and see an occasional A or B show up. Maybe 1 line out of 8 or 10 button pushes.
I don't think its the serial connection or monitor, because my original code uses LEDs to indicate a button has been pushed, and they show the same random push behavior.
And If I just test one of the buttons at a time, using the "Single Button" example (on pins 7 or 8) everything is fine and works as expected. I don't change the wiring, only the example code I'm using.
I'm working on a build where I'll have many buttons, not just two, so I want to make this work.
How can I better debug this to figure out what is going wrong?
FWIW, here is the diagnostic details from avrdude:
The text was updated successfully, but these errors were encountered: