Devices & Components
Arduino Uno Rev3
LED (generic)
Resistor 10k ohm
Jumper wires (generic)
Breadboard (generic)
Project description
Code
Blinking LED Code
arduino
This code makes the external LED connected to pin 13
1int led = 13; // set the "led" variable as 13 2 3void setup() { 4 pinMode(led, OUTPUT); // designate port 13 as output 5} 6 7void loop() { 8 digitalWrite(led, HIGH); // turn the led on 9 delay(1000); // wait for 1 second 10 digitalWrite(led, LOW); // turn the led off 11 delay(1000); // wait for a second 12}
Downloadable files
Blinking LED Diagram
Blinking LED Diagram

Blinking LED Diagram
Blinking LED Diagram

Comments
Only logged in users can leave comments