Description
After hooking up the circuit, I got the LED to blink through wiring it up to pin 13 in the arduino, and uploading the code I wrote. The LED blinks in different patterns due to the code telling it to either be on (HIGH) or off (LOW) with different time intervals.
Components Used
1 - Arduino Uno
1 - Red LED
2 - Wires
1 - 220-ohm resistor
Code
int led = 13;
void setup() {
pinMode(led, OUTPUT);
}
void loop() {
digitalWrite(led, HIGH);
delay(500);
digitalWrite(led, LOW);
delay(500);
digitalWrite(led, HIGH);
delay(1000);
digitalWrite(led, LOW);
delay(500);
}
- Login to post comments