I'm working on an Arduino LPD8806 application and ran into a bit of a snag, would anyone mind advising me?
Without getting into a LOT of detail and boring you to death I need to color chase five times (without back-filling) to LEDx on a 5 meter strip. I want to start the color chase not from the beginning of the strip, but from LEDx - 15 LEDs. Once the chase has been executed five times LEDx and the one beside it (LEDx-1) need to alternately blink on and off. (In case you couldn't tell I'm trying to draw something's attention to the physical location around LEDx.)
I don't get to work with Arduino but once a year so I usually forget what I learn by the next time I have the opportunity, it's like being a noob ALL THE TIME. ;P Because of this I try to break the overall project up into smaller bits and work my way through each one, it's not so daunting that way.
So far I have used example code and the forum to successfully
1. Not back-fill the LED chase.
2. Stop the chase on LEDx and LEDx-1.
3. Execute only five times before stopping.
Remaining is
4. Blink LEDx and LEDx-1 on and off, alternately.
5. Start chase from LEDx-15.
To begin step 4 (Blink LEDx and LEDx-1 on and off, alternately) in as simple a way as possible I want to turn on two adjacent LEDs, green. Based on the code from this post: viewtopic.php?f=47&t=33308&start=0&hilit=lpd8806
I have this:
#include "LPD8806.h"
#include "SPI.h"
// Choose 2 pins for output; can be any valid output pins:
int dataPin = 11;
int clockPin = 12;
int nLEDs = 160;
// First parameter is the number of LEDs in the strand. The LED strips
// are 32 LEDs per meter but you can extend or cut the strip. Next two
// parameters are SPI data and clock pins:
LPD8806 strip = LPD8806(nLEDs, dataPin, clockPin);
void setup() {
strip.begin(); // Start up the LED strip
strip.show(); // Update the strip, to start they are all 'off'
}
void loop()
{
strip.setPixelColor(50, strip.Color(0, 128, 0)); // set pixel #50 Green
strip.setPixelColor(49, strip.Color(0, 128, 0)); // set pixel #49 Green
strip.show();
}
It compiles and uploads fine but unfortunately nothing is happening on any of the pixels of the strip. I've run your test and show-off code for a couple days now, and it's running off a re-purposed PC power supply capable of sourcing 18 Amps of power, so we're good there.
I'm convinced that, as usual, I'm missing something simple because I don't understand the IDE as well as I should.
Thanks for the assist.

