Say "HI" with a counter

HI

Problem Description:

One way to do this is to use a counter to count which step you're on.

  1. STEP 1: the letter H appears for 1 second
  2. STEP 2: all lights off for a half of a second
  3. STEP 3: the letter I appears for 1 second
  4. STEP 4: all lights off for a half of a second

To do this with code

Declare a variable to be a counter. Where does this go in the program? ____________
Write the code: ____________________

Set the counter to equal 1. Where does this go in the program? ____________
Write the code: ____________________

Use the counter to decide what lights to light up. Where does this go in the program? ____________

if(counter==1) display "H" (2 segments HIGH, 5 segments LOW) and delay 1 second

if(count==2 || counter == 4) all lights off (all segments HIGH) abd delay a half second

What is the last step?____________________________________

increment the counter _____________________________

if counter is 4 set it back to 1 ____________________________