Info on hardware SPI

by roontoon on Wed Nov 14, 2012 12:31 pm

Hi,

New to arduino and I am starting a project with LPD8806 addressable RGB LEDs.
( http://adafruit.com/products/306 ) I have seen code and various articles on using hardware SPI with these LED. Can someone point me to information on how to hook these up to the Arduino board using this protocol.

Thanks so much

d
roontoon
 
Posts: 7
Joined: Wed Nov 14, 2012 12:25 pm

Re: Info on hardware SPI

by franklin97355 on Wed Nov 14, 2012 5:41 pm

User avatar
franklin97355
 
Posts: 2675
Joined: Mon Apr 21, 2008 1:33 pm

Re: Info on hardware SPI

by roontoon on Wed Nov 14, 2012 8:01 pm

franklin97355 wrote:Have you looked here? http://www.ladyada.net/products/rgbledstrip/#example_code


Thanks for the reply but I don't think this is using SPI as per http://www.arduino.cc/en/Reference/SPI it references pins 11, 12 and 13 but the actual connection of the strip to the pins is what I am trying to pin down. I want to use SPI because it refreshes the strip much faster.

d
roontoon
 
Posts: 7
Joined: Wed Nov 14, 2012 12:25 pm

Re: Info on hardware SPI

by tldr on Wed Nov 14, 2012 11:27 pm

connect di on the lpd8806 strip to arduino pin 11, MOSI. connect ci on the lpd8806 strip to pin 13, SCK. MISO, pin 12, and SS, pin 10, need not be connected, though pin 10 shoulf be configured as an output to avoid having the arduino's spi interface go into slave mode.
"If I had known it was harmless, I would have killed it myself." - Phillip K. Dick, A Scanner Darkly
User avatar
tldr
 
Posts: 465
Joined: Thu Aug 30, 2012 12:34 am