Demonstrates using a shift register to create a simple animation with 16 LEDs, while only using 3 GPIO pins of the Raspberry Pi.
The example should run on the Raspberry Pi Debian Squeeze distro, with the standard Python and no additional libraries.
Refer to the eLinux Low Level Peripherals page for pin-out diagrams of the Pi.
Pi Shift register ======= ============== # GPIO GPIO 17 -> SDI (Data in) GPIO 21 -> CLK (Clock) GPIO 22 -> LE (Latch) # Power 5V -> VCC Ground -> Ground # In addition, you should connect the TLC5925 OE pin to Ground, to ensure the LEDs are enabled.
Just a demo! Come see more stuff at quick2wire.com