Save a GPIO pin: Charlieplex an LED

 

Want to turn a handful of LEDs on and off, but you don't want to sacrifice digital I/O pins on your microcontroller? Charlieplexing is for you.

Because LEDs are truly diodes, they conduct current in only one direction. Put to of them parallel to each other but connected with opposing polarity and you can switch them with just two pins on your Arduino.

 
Charlieplexing-LEDs-Breadboard.jpg
Charlieplexing-LEDs-Tiny-SMD-LED.jpg
Charlieplexing-LEDs-ATmega328-SMD.jpg
Charlieplexing-LEDs-Component-Test-Fit.jpg