Pages: [1]   Go Down
Author Topic: WS2801, Fast SPI or Adafruit library?  (Read 1066 times)
0 Members and 1 Guest are viewing this topic.
South UK
Offline Offline
God Member
*****
Karma: 5
Posts: 585
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all, I have a string of WS2801 LEDs that I would now like to use. I have tested them with the Adafruit library before and they worked well, but a few days ago I came across the Fast SPI library which appears to be compatible with WS2801 drivers.

I'm now wondering if I would be better off wiring the string to the SPI pins of the Arduino pro mini that I planned to use or just stick to the Adafruit method?
« Last Edit: December 02, 2013, 01:17:55 pm by dtokez » Logged

Valencia, Spain
Offline Offline
Faraday Member
**
Karma: 146
Posts: 5469
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If it ain't broken, don't fix it.
Logged

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

South UK
Offline Offline
God Member
*****
Karma: 5
Posts: 585
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

True  smiley-razz

Just wondering if there is any advantage in one over the other? I guess the fast spi library might be faster and able to drive more pixels?

Thanks
Logged

US
Offline Offline
Newbie
*
Karma: 2
Posts: 35
Hi! I wrote and maintain the FastSPI_LED library. Working on trying to keep it up to date.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

So with the WS2801 chipsets, you're capped out at a data rate of about 1Mbps, which is slower than the max SPI data rate that the arduinos can push out, so there's not a lot of benefit on that front.  What the FastSPI_LED library has (at least, in the second version which we've been pushing out release candidate builds for the past month or few) is inline (0 extra CPU cost) brightness control/dimming, a wide batch of optimized 8-bit math functions for working with leds, a faster (and somewhat more correct) HSV to RGB converter, and a random handful of other useful things.  If any of that sounds like it might be useful to you, it might be worth flipping over.  However, on the flip side, if you have something that's working and you aren't going to be adding more to it, there's something to be said for not changing what's existing.
Logged

--

FastLED (formerly FastSPI_LED) -- new home http://fastled.io

Valencia, Spain
Offline Offline
Faraday Member
**
Karma: 146
Posts: 5469
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Just wondering if there is any advantage in one over the other? I guess the fast spi library might be faster and able to drive more pixels?

Maybe, but there's no reason to change unless you're pixel-limited.
Logged

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Pages: [1]   Go Up
Jump to: