Assignment #1: Blink LED
Assignment # 1: Blink LED
Description
As it was my first experience making an Arduino board, I followed the BLINK example under the File / Examples / Basics folder by setting blinking time for 0.1 second, then turn off for 5 second, repeatedly.
Components
1. Arduino UNO
2. Breadboard
3. Red/Red/Brown/Gold Resistor
4. Green LED
Code
int led = 13;
void setup() {
pinMode(led, OUTPUT);
}
void loop() {
digitalWrite(led, HIGH);
delay(100);
digitalWrite(led, LOW);
delay(5000);
}
Photo
- Login to post comments
Drupal theme by Kiwi Themes.