void setup() {
pinMode(9,OUTPUT); // pin 9 will be used as an output
}
void loop() {
digitalWrite(9,HIGH); //send a high signal to pin 9
delay(200); //wait 200 milliseconds
digitalWrite(9,LOW); //send a low signal to pin 9
delay(200); //wait 200 milliseconds
}
Challenge 1: Blink the Light with a new pattern. Blink it with the morse code SOS, short-short-short, long-long-long.
Challenge 2: Add another LED and resistor controlled by another pin. Get the lights to blink in an alternating pattern.