LED and resistor in series from +5V to digital in - General
Possibly a daft question and I've very likely missed something somewhere but any search just brings up variations on the "blink" sketch. I'm wiring up a toggle switch across a digital input and was hoping to put in (for purely aesthetic purposes) an LED. TO save writing code is it alright to to put the resistor and LED off the com pin of the toggle switch to the digital pin so that when the switch has +5V across it the LED comes on?
What Resistor Do I Need For an LED
Controlling Multiple LEDs in Series and Parallel - Project Guidance - Arduino Forum
Android Basics and User Interfaces
How To Control WS2812B Individually Addressable LEDs using Arduino
LED and resistor in series from +5V to digital in - General Electronics - Arduino Forum
voltage - Running 5V status LEDs on 24V circuit? - Electrical Engineering Stack Exchange
Can't get these relays to trigger with 5V or 24V. Am I doing something wrong? : r/AskElectronics
Arduino Digital Input: How to Use the Pull-Up Resistor!
Basics: Picking Resistors for LEDs