lOMoARcPSD|16248954
Answer the following items shown below. Answers can be computerized (font style Arial with
font size 11) or hand-written. The document size should be A4 and in PDF format.
Connect seven LEDS with a 330-ohm resistor each to the ports 1 up to 7 as shown below.
Write a code that will make the LEDs blink in the following sequence:
1. LED at port 1, LED at port 2, LED at port 3, …, up to LED at port 7.
2. After the LED at port 7 blinks, the blinking sequence will reverse in a descending order i.e.
LED at port 6, LED at port 5, …, up to LED at port 1.
3. The cycle repeats again.
Note: When a LED blinks, it should light up for 100 ms and turn off for 100 ms. (20 pts.)
Type or paste an image of your solutions and answers below:
Answer the following items shown below. Answers can be computerized (font style Arial with
font size 11) or hand-written. The document size should be A4 and in PDF format.
Connect seven LEDS with a 330-ohm resistor each to the ports 1 up to 7 as shown below.
Write a code that will make the LEDs blink in the following sequence:
1. LED at port 1, LED at port 2, LED at port 3, …, up to LED at port 7.
2. After the LED at port 7 blinks, the blinking sequence will reverse in a descending order i.e.
LED at port 6, LED at port 5, …, up to LED at port 1.
3. The cycle repeats again.
Note: When a LED blinks, it should light up for 100 ms and turn off for 100 ms. (20 pts.)
Type or paste an image of your solutions and answers below: