Digistump Forums
The Digispark => Digispark Libraries => Topic started by: nikhilio on January 28, 2013, 06:02:32 pm
-
So, I'm working on a project with the Digispark and the LPD8806 based digital addressable RGB LED strips (http://adafruit.com/products/306). Because the Digispark doesn't support SPI, and the LPD8806 library doesn't have any processor constants to enable different sections of code, I had to hack the library to move any references to SPI calls.
I've uploaded the modified library to my github for anyone else:
https://github.com/nsthorat/LPD8806-bitbang-only
Happy lighting!
-
Might the same thing be possible to the WS2801 library found on Adafruit?
I don't know C and have no idea what "bitbanging" is, so I'm lost on this.
-
thanks! This works marvelously.
-
@jonwa -- yes it should be possible. Just remove all the SPI references in the library. Do a diff between the code I have on github and the official LPD8806 library from adafruit and you should be able to replicate the differences in the library you want to hack.
Bitbanging is a way to serially communicate in software, as opposed to dedicated SPI hardware. This means that instead of using a hardware SPI (which the digispark doesn't have), we use output pins from the arduino to speak serially to the chips on the LED strip.
-
Thanks for building this modified library!
I am building a similar project at the moment.