This Design Idea demonstrates a new method of driving six LEDs with only two I/O lines from a microcontroller, and so is particularly suitable for any pin-limited chip. It uses a pair of I/O lines ...
Eight-pin microcontrollers offer numerous peripheral features. However, the maximum number of I/O pins available is often limited to six, since two pins would be required for the chip's power supply.