I created the LED to blink 3 times: one long, and two short, like a waltz.
Components used:
Blue LED
220 ohm resistor
Source code:
/*
Blink
Turns on an LED three times: one long, and two short, like a waltz.
*/
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 half second
digitalWrite(13, LOW); // set the LED off
delay(100); // wait for tenth second
digitalWrite(13, HIGH); // set the LED on
delay(100); // wait for tenth second
digitalWrite(13, LOW); // set the LED off
delay(500); // wait for half second
digitalWrite(13, HIGH); // set the LED on
delay(100); // wait for tenth second
digitalWrite(13, LOW); // set the LED off
delay(500); // wait for half second
}