adafruit / Adafruit_DotStar

GNU General Public License v3.0
97 stars 59 forks source link

Adding ESP8266 Hardware SPI #7

Closed ccoenen closed 7 years ago

ccoenen commented 8 years ago

connect the DotStar to Pin 13 (Data) and Pin 14 (Clock) of an ESP8266 Huzzah Module to use its SPI.

The bitbang approach is ~3 times slower for me (300 Pixels):

Adafruit_DotStar strip = Adafruit_DotStar(300, 13, 14, DOTSTAR_BRG);
// strip.show => 14000µs

Adafruit_DotStar strip = Adafruit_DotStar(300, DOTSTAR_BRG);
// strip.show => 4000µs

I also experimented with faster Clock Dividers, but for the amount of pixels i'm pushing, a faster clock seems to be a problem. The Pixels started acting weird after 100-150 pixels.

PaintYourDragon commented 7 years ago

Opted for the SPI.setFrequency() approach in Yona-Appletree's ESP8266 pull request. But thank you for looking into it.

ccoenen commented 7 years ago

No hard feelings, I'm glad it's merged :)