Hello, I am working on converting the adafruit pov poi code to work with

Hello, I am working on converting the adafruit pov poi code to work with FastLed, if possible. I tried changing the strip.show to fast_led.show but I am not sure how to structure the led[] statement that is used in the adafruit poi code.

this copy http://pastebin.com/DASFkNpB does not work for me but ive narrowed it down to this line.
Adafruit’s library is written like this:
strip.setPixelColor(pixelNum,
imagePalette[o],
imagePalette[o + 1],
imagePalette[o + 2]);
}

Fastled is structured like leds[] but I am not sure how to make it work with image palette.
leds[(pixelNum,
imagePalette[o],
imagePalette[o + 1],
imagePalette[o + 2])];
}

The pastebin compiles and uploads but does not work.

@Chris_Stock ​​​ yeah you are right. You are using the pallet as the led index. You need:
LEDs[pixelNum] =

The adafruits code works like this

strip.setPixelColor(pixelNum++,Red,Green,Blue);

Tried this
leds[pixelNum]=
palette[idx][0], palette[idx][1], palette[idx][2];

and it compiles but not doing anything

Hi @Chris_Stock so fastLED accepts colours in a few formats (see here: https://github.com/FastLED/FastLED/wiki/Pixel-reference), but until you are familiar with the library use this:

leds[PixelNum].red = palette[idx][0];
leds[PixelNum].green = palette[idx][1];
leds[PixelNum].blue = palette[idx][2];

The sketch you have now will compile (its syntactically correct) and it is running, its just outputting black :slight_smile:

GAHHH!
I got red working. I tried the code you suggested above and idx was not declared, I tried modifying it and it didnt work.
This new pastebin here, i finally got the images working in red for some reason. The palette should define colors but it is always just red.
http://pastebin.com/HEEK0q1c

You can’t say this:

leds[pixelNum++]=
palette[p1][0], palette[p1][1], palette[p1][2];

You have to say:

leds[pixelNum++] = CRGB(palette[p1][0], palette[p1][1],palette[p1][2]);

Thank you! This library is awesome. I wish I had learned it earlier.

#Chris Stock
Are you have some progress