A single, common-anode, 7-segment LED is connected to the Arduino Connector J1 through current-limiting resistors. The diagram in Figure 1 shows the mapping of the pins of the connector to the pins of the 7-segment. Thus, by outputting a byte to the pins of connector J1, we can display a character.
Write an Arduino program that displays the sequence of characters S-O-S-(blank), each characterdisplayed for 1 second. This sequence should repeat. Use the DDR, Data, and Bit registers.