sottoscrivi

Accedi

LED and resistor in series from +5V to digital in - General

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?

Resistor needed for LEDs?

Basics: Picking Resistors for LEDs

PHYS 432 - Buttons and Lights

LEDs say yes, but Input pins say nothing, or too many things?! - General Discussions - RobotShop Community

Android Basics and User Interfaces

Photoresistor (Analog Input) : 5 Steps - Instructables

Android Basics and User Interfaces

Android Basics and User Interfaces

RGB LED Arduino

Step by step electronics circuit builds 1 lighting a resistor protected LED on a breadboard

Introduction to Digital I/O Pins on evive

Blinkenlights