Hello - I'm making a lamp with an Adafruit Metro - which will be powered via a switching adapter using 9volts to a wall outlet.
I'd like to add a SPST Rocker Switch on the base of the lamp for easy on/off access.
I've read all sorts of different articles - some say to use a resistor on both terminal of the switch, some use none, and some use pull-up resistors in the code (still don't quite understand those).
Should I have the power (9V) - coming from the wall - going into the rocker switch on one side, then out the other side and going to the barrel jack on the Metro? Or should I put the switch in the GRD? Should I use physical resistors? If so, what size?
Thanks much,
Rachel