Adding??? Resistor to LED Switch
I have a bunch of these type toggle switches. They say they're for 12VDC. I'm guessing they have a current limiting resistor in them that keeps 12V from frying them. The LED won't light up with a 1.5V AA, but will light up with a single LiIon 3.7V. I'll be switching either 4S = 16.8V or 6S = 25.2V. Do I need to add another resistor say in-line with the ground wire going to the switch? And what resistance should I use? And if it makes a difference I have different color LED's... red, blue, yellow, green.
3 lines of code = InqPortal = Complete IoT, App, Web Server w/ GUI Admin Client, WiFi Manager, Drag & Drop File Manager, OTA, Performance Metrics, Web Socket Comms, Easy App API, All running on ESP8266...
Even usable on ESP-01S - Quickest Start Guide
@Inq I am sure you will get lots of answers, but I did some googling and found online calculators that are different. I don't know why people recommend what they do and don't know why the on-line calculations are different. Maybe you can figure out a straight answer.
Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting