Skip to content

Hardware SPI for ESP8266? #429

Closed
Closed

Description

@rlesac

It seems that FastLED is not using hardware SPI on ESP8266.
I define the right pins, GPIO14 for clock and GPIO13 for data, but get a compile time warning that "No hardware SPI pins defined. All SPI access will default to bitbanged output".

I'm using ESP-12e, with raw pin order.

Here is a relevant page discussing esp8266 and HSPI.

Activity

  1. focalintent commented on Mar 27, 2017

    @focalintent
    Contributor

    All work on the library is currently suspended. Hardware SPI for the esp8266 is on the list for when I get back to working on it.

  2. Leozolt commented on Nov 26, 2017

    @Leozolt

    Is it possible to motivate development on the hardware SPI for the ESP8266?

  3. focalintent commented on Nov 26, 2017

    @focalintent
    Contributor

    No, I haven’t gotten back to a place of working on the library yet.

  4. Leozolt commented on Nov 26, 2017

    @Leozolt

    Do you accept donations to ease (facility estate assets and) time on this project? Sorry if this is off-topic.

  5. coryking commented on Dec 12, 2017

    @coryking
    Contributor

    Just FYI, I've added support for DMA on my own personal fork. Works for ESP8266 only and is so far buttery smooth....

  6. the-magister commented on Jan 13, 2018

    @the-magister

    @focalintent https://github.com/Makuna/NeoPixelBus/blob/master/src/internal/NeoEsp8266UartMethod.h provides either UART or SPI-based support for ESP8266. I took a browse through the code, and it's too heady for me to understand how compatible it is. To me, the loss of Serial1 (which is very seldom used) via the UART-based approach seems reasonable.

    Essentially, someone driving a ton of lights should be using the PORT approach or go over to a Teensy. Someone driving a strand of lights and wanting to use WiFi would benefit from the UART or DMA approach.

  7. nsepehr commented on Jul 11, 2018

    @nsepehr

    I would love to see the SPI support for the ESP8266. When you pass the 1000 LED mark it makes a huge difference having the SPI support. Thanks for all of the hard work you put into this library. It's the fastest I've seen around. Hope you can come back to it for more upgrades.

  8. LennyPenny commented on Jan 6, 2019

    @LennyPenny

    @coryking does your library support APA102 as well?
    Also could you do a pull request? Would be awesome to have it in the normal version

  9. ctrowat commented on Jan 10, 2019

    @ctrowat

    I really don't mean to be insensitive but I see some time has passed on this issue and I was hoping I could ask for an update. I am considering using a large number of APA102 with an ESP8266 on a current project. Has there been any progress made on this particular issue, or are there any other solutions to use hardware SPI in this configuration? I really like your library and want to use it everywhere I possibly can.

  10. focalintent commented on Jan 20, 2019

    @focalintent
    Contributor

    No one has submitted code to me for the hardware SPI and while I'm starting back in on library work, I'm focusing mostly on the rewrite for RGBW/16-bit output - after which I'll go back to adding hardware platforms/features support.

  11. vayulove commented on Mar 16, 2019

    @vayulove

    Just FYI, I've added support for DMA on my own personal fork. Works for ESP8266 only and is so far buttery smooth....

    You mention to use GPIO 3. Will this work for a strip that needs clock and data? FastLED is really really slow on my nodemcu. I've been using 14 for clock and 13 for data. Would that fork help? What pins for clock and for data would I use for my nodemcu? (I'm using p9813 LEDs)

  12. BenoitAnastay commented on Dec 11, 2019

    @BenoitAnastay
    Contributor

    That should work

    #936

  13. dbu commented on Nov 25, 2023

    @dbu
    Contributor

    this issue can be closed, it was implemented in #936

    #define FASTLED_ALL_PINS_HARDWARE_SPI before #include "FastLED.h" to activate it

  14. added
    platform: esp8266
    area: drivers
    status: stale
    status: triage
    on Apr 16, 2026
  15. zackees commented on Jun 3, 2026

    @zackees
    Member

    I am Clud, an AI agent working on behalf of Zach Vorhies.

    This is fixed in current master. ESP8266 hardware SPI support landed in #936, which merged to master, and current master still routes ESP8266 clocked-chipset output through FASTLED_ALL_PINS_HARDWARE_SPI in src/fastspi.h and src/platforms/esp/8266/fastspi_esp8266.h.

    If ESP8266 hardware SPI is still reproducible on current master, please open a fresh focused issue with the board, chipset, data/clock pins, FastLED version, and a minimal sketch.

  16. moved this from Triage to Done in FastLED Trackeron Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: driversplatform: esp8266status: stalestatus: triage

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions