Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding ESP8266 Hardware SPI #7

Closed
wants to merge 1 commit into from

Conversation

@ccoenen
Copy link

commented Jan 6, 2016

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.

Adding ESP8266 Hardware SPI
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

This comment has been minimized.

Copy link
Member

commented Oct 28, 2016

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

@ccoenen

This comment has been minimized.

Copy link
Author

commented Oct 28, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.