Activity C3 — Digital outputs
Level 1 — Use a digital output
Complete the challenge
Your entire setup()
function should look like this:
void setup() {
pinMode(9, OUTPUT); // set up pin 9 as an output.
}
Your entire loop()
function should look like this:
void loop() {
digitalWrite(9, HIGH); // turn the LED on
delay(100); // wait for 1 tenth second
digitalWrite(9, LOW); // turn the LED off
delay(1000); // wait for 1 second
}