Hello Everybody,  I'm Alex from France,

Hello Everybody,

I’m Alex from France, I’m new to fastled community and I would like to understand some things about SPI leds. I just bought some apa102 led strip. I would like to use it for a POV installation. How can I use SPI hardware with fastled. When I use pin 4 for data and pin 5 for clock does it mean that it will run with SPI hardware? I’m using an arduino due.

I’m not familiar with electronic so I would like to understand it better.

Thanx,

Alex.

Hi Alex,

For the Due and SPI, you do not need to set a clock or data pin.

And you use the pins in the diagram:

http://arduino.alhin.de/index.php?n=73

Clock = SCK
Data = MOSI

(the middle two pins on the 6 pin port next to the chip)

Hi Mark ,

thanks for your answer so how should i setup my apa102 in the void setup?

now i use like this:

FastLED.addLeds<APA102, 4, 5, BGR, DATA_RATE_MHZ(20)>(leds1, NUM_LEDS1);

Hi Alex, sorry, but according to the Wiki, the APA102 isn’t supported yet.

It looks like it will be in the future. It looks like a good chipset. Perhaps someone else can help you with a hack.

Hi Alex. It is supported. The setup I post here is working fine.

FastLED.addLeds<APA102, dataPin, dataClock, BGR, DATA_RATE_MHZ(12)>(leds, NUM_LEDS);

Now I’m looking to control apa102 with hardware SPI (if it’s possible)

If you’ve got working without SPI, then can you just try:

FastLED.addLeds<APA102, BGR, DATA_RATE_MHZ(12)>(leds, NUM_LEDS);

or

FastLED.addLeds<APA102, BGR>(leds, NUM_LEDS);

and wire it up like my original answer?

@Mark_Ortiz the wiki page doesn’t say that APA102 isn’t supported, it’s just listed under the Other Stuff section (though now that I’ve done more testing on it, I should update it to current hotness and bump the WS2812 down)