I was looking to add a power switch with an LED... which I guess would need a momentary switch? Though my understanding is that pressing it would start a script for shutdown, once shut down, button is useless?
So I may not bother... but I still wanted an LED light for the game console I am building and I liked how the switch looked, may just wire up the LED and from my understanding, I'll need to add a resistor. But... no idea how to calculate what I'll need.
I have a RaspPi3 with a 5v 2.5A power supply. I'll connect direct to the GPIO.
The PiHut switch specs say "The forward voltage of the LED is about 2.2V so connect a 220 to 1000 ohm resistor in series just as you would with any other LED to your 3V or higher power supply."
I don't know much about this stuff, just looking to build an arcade playing game console.... what resistor size would I need? 220-1000ohm seems to be a wide range... or not, again, I have very little knowledge about them expect what they do and that they have colour codes on them.
https://thepihut.com/products/adafruit- ... -momentary