You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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".
Just FYI, I've added support for DMA on my own personal fork. Works for ESP8266 only and is so far buttery smooth....
Reacted by Juergen Koennemann, Axel Mattias Fornander, rlesac, Christian Stöveken, Bruno Martins, Myles, benpicco, Erik O'Leary and Andreas Pleschutznig
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.
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.
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.
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.
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)
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.
Activity
focalintent commentedon Mar 27, 2017
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.
Leozolt commentedon Nov 26, 2017
Is it possible to motivate development on the hardware SPI for the ESP8266?
focalintent commentedon Nov 26, 2017
No, I haven’t gotten back to a place of working on the library yet.
Leozolt commentedon Nov 26, 2017
Do you accept donations to ease (facility estate assets and) time on this project? Sorry if this is off-topic.
coryking commentedon Dec 12, 2017
Just FYI, I've added support for DMA on my own personal fork. Works for ESP8266 only and is so far buttery smooth....
the-magister commentedon Jan 13, 2018
@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.
nsepehr commentedon Jul 11, 2018
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.
LennyPenny commentedon Jan 6, 2019
@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
ctrowat commentedon Jan 10, 2019
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.
focalintent commentedon Jan 20, 2019
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.
vayulove commentedon Mar 16, 2019
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)
BenoitAnastay commentedon Dec 11, 2019
That should work
#936
dbu commentedon Nov 25, 2023
this issue can be closed, it was implemented in #936
#define FASTLED_ALL_PINS_HARDWARE_SPIbefore#include "FastLED.h"to activate itzackees commentedon Jun 3, 2026
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 tomaster, and currentmasterstill routes ESP8266 clocked-chipset output throughFASTLED_ALL_PINS_HARDWARE_SPIinsrc/fastspi.handsrc/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.