Need help getting RGB LED strip functioning with Adalight

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
ebex
 
Posts: 2
Joined: Mon Dec 17, 2012 3:24 pm

Need help getting RGB LED strip functioning with Adalight

Post by ebex »

Hello, I have 1m (32 leds) of the digital rgb led strip #306 (http://adafruit.com/products/306), controlled by the lpd8806. I'm attempting to have it work with the Adalight (https://github.com/adafruit/Adalight).

I have successfully compiled and uploaded the LEDstream_LPD8806 (Arduino/LEDstream_LPD8806) to my Arduino Uno using avrgcc after a couple of modifications:

Two function definitions for

Code: Select all

static void latch(int);
static boolean timeout(usigned long, int);
and the inclusion of a main function

Code: Select all

int main() {
    setup();
    while(1)
        loop();
}
However, the initial test -- to change all of the LED's from red to green to blue and then off -- found on line 117 of LEDstream_LPD8806.pde does not seem to work correctly.
Instead, what I get is a constant red, which never shuts off.

I have my clock pin in digital pin 13 and my data pin connected to digital pin 11, per the comments at the top of the file.

I previously had my lights working with code found at (https://github.com/adafruit/LPD8806) using the LPD8806 class, however I have never attempted to get them working using SPI as is done here. Is there something that I should change for my lights to function correctly with SPI?

I've also found this forum thread (which seems to cover pburgess's development of the LPD8806 compatability implementation) pretty helpful for anyone researching the same topic. : http://forums.adafruit.com/viewtopic.php?f=47&t=24693

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”