Raspberry Pi: SPI LED Socket Server is now public!

April 23, 2013

I just made my Raspberry Pi + SPI Addressable LEDs socket server public on GitHub!

https://github.com/JamesHagerman/raspberry_spi_work

This code lets you hook up a string of SPI RGB Addressable LED’s to your Raspberry Pi (with a level converter, of course), put the Pi on a network somewhere with this socket server running on it, and then control those LED’s from a processing sketch on a computer some where else on the same network!

I haven’t provided schematics yet but maybe I will in the future. The socket server is written in C and can be compiled after a bit of modification of the Makefiles. The easiest way to compile this is to open the whole directory as a new project in Textmate and hit command-b to use the systems copy of make to scp the files to the Raspberry Pi. You’ll have to modify Makefile to have the correct IP address for the Pi along with where on the Pi’s filesystem you want the source files to end up.

Once the Makefile copies all of the files over to the Pi, it renames Makefile.build to Makefile and runs make on the Pi itself. When the binary is done, you can run it to start up the socket server.

Included in this repo is an example Processing sketch that will cycle through all of the available colors.

This is rough, but it should be useable so have fun!


James Hagerman

Written by James Hagerman

© 2026