Background
Do you know what’s better than one LED?
8 LEDs!
In this project, we’ll create a program that performs an LED-trail-effect with 8 LEDs.
Main
All 8 LEDs are connected to PORTB with current-limiting resistors.
For reasons unclear to me, (probably related to how the silicon is designed and arranged), the pins are not sequentially arranged. Observe the pinout below. Not to worry. Just make sure you’re paying attention when connecting the LEDs. Also, each one requires a current-limiting resistor to ground.
The program is available in my GitHub repository. Here’s how it looks like: