Hello there!
I am totally new to Arduino (and fairly new to electronics) and I seek to do a little project with the joystick library - just a panel containing a few buttons (6 pushbuttons and 3 SPST toggle switches). However, I am a little bit confused on how should I proceed with the wiring of even a simple button.
I tried testing on a breadboard with a single button and it worked when one of the pins was attached to a digital I/O pin (10) and the other one to GND (the USB game controller panel has recognized the the microcontroller and the pushbutton's action was working as well).
Should I wire together one pin on all the buttons and lead it to GND and wire the other pins to individual I/O pins? (see in the attachment what do I mean)
Is it necessary to use GND or is it enough to wire one pin on each button to a digital I/O pin?
I've tried to Google my way through this problem, but unfortunately I have found nothing useful - all button circuit drawings I've found on forums are about how a pushbutton turns on and off LEDs, etc., but I am specifically looking for the wiring of a simple pushbutton used as computer input with the joystick library.
Please forgive my (perhaps) stupid questions as I am entirely new to the topic.
Many thanks for any help in advance!