Arduino Blink program

Look at this code to blink a single light on and off each second.

/* Title: LED blink program by Mrs-O-C */
const int ledPin = 13;

void setup(){
  pinMode(ledPin, OUTPUT);
}

void loop() {
  digitalWrite(ledPin, HIGH);
  delay(1000);
  digitalWrite(ledPin, LOW);
  delay(1000);
}

How could this program be modified to display the digits in a birthdate so each digit displays for one second?

  1. How many output pins are there?
  2. Write the code to set up the required number of output pins.
    1. __
    2. __
    3. __
    4. __
    5. __
    6. __
    7. __
  3. write the code to setup each pin to be an output pin
    void setup() {
    1. __
    2. __
    3. __
    4. __
    5. __
    6. __
    7. __
      }
  4. Write a loop to count from 0 to 7




  5. Write if/else statements to decide if each segment should be on or off.