ASSIGNMENT
Connect an LED and resistor to the Arduino breadboard and create a custom blinking pattern by modifying the "Blink" example code.
MATERIALS USED
LED, 220 ohm resistor
ARDUINO CODE
/*
Blink
MY EDIT: My code turns the LED on for 500ms and then off for 100ms.
This is based on the "Blink" example code in the public domain.
*/
void setup() {
// initialize the digital pin as an output.
// Pin 13 has an LED connected on most Arduino boards:
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH); // set the LED on
delay(500); // wait for 500ms
digitalWrite(13, LOW); // set the LED off
delay(100); // wait for 100ms
}