Arduino Led Wiring Diagram. Intro to led strips. The pin the led is connected to void setup pinmode led output declare the led as an output void loop digitalwrite led high turn the led on delay 1000 wait for 1000 milliseconds 1 second digitalwrite led.
Solder the led leads and cut away the excess wire. The shorter of the two legs towards the flat edge of the bulb indicates the negative terminal. The software can be configured to use other pins but we recommend using this arrangement when starting out so that everything is tested in a known configuration.
The pin the led is connected to void setup pinmode led output declare the led as an output void loop digitalwrite led high turn the led on delay 1000 wait for 1000 milliseconds 1 second digitalwrite led.
1 330ω resistor. Note to find out the polarity of an led look at it closely. Solder the led leads and cut away the excess wire. Then it wouldn t matter if.