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
{{ message }}
Repository navigation
FastLED 3.1.6 + Arduino 1.8.3 not working with NodeMCU ESP-12? #489
Build and deploy FastLED Blink demo, using DATA_PIN D4 and WS2812B strand (also tested with APA102 without success). I added Println() commands to show app is cycling through code, but LED[0] doesn't budge. Am powering LED with separate 5v supply. Exact same hardware setup works fine with Adafruit NeoPixel strandtest.
I normally use Wemos D1 mini for my ESP8266 FastLED projects, but needed extra pins of NodeMCU... and this all works fine with Wemos. I successfully used NodeMCU (probably a year ago), so this is new issue. Also, if I try to use DATA_PIN D5 or greater, I get "Invalid Pin" assertion (even though these are indeed valid on NodeMCU).
Are others using NodeMCU successfully with current 3.1.6 release? Any suggestions for me to try?
I was able to get my NodeMCU ESP-12 board to work with Arduino 1.8.3 and FastLED 3.1.6. I had to add the define FASTLED_ESP8266_RAW_PIN_ORDER. I used D8 and WS2811 but probably would work with D4 and your WS2812B strand. Here's my sample code:
Could we get this define added to the documentation? I was having this issue too and the define fixed it, but I haven't noticed it anywhere in the documentation.
Activity
frhoffer commentedon Aug 31, 2017
I was able to get my NodeMCU ESP-12 board to work with Arduino 1.8.3 and FastLED 3.1.6. I had to add the define FASTLED_ESP8266_RAW_PIN_ORDER. I used D8 and WS2811 but probably would work with D4 and your WS2812B strand. Here's my sample code:
#define FASTLED_ESP8266_RAW_PIN_ORDER
#include "FastLED.h"
#define NUM_LEDS 50
#define PIN D8
#define COLOR_ORDER RGB
CRGB leds[NUM_LEDS];
void setup() { FastLED.addLeds<WS2811, PIN>(leds, NUM_LEDS); }
void loop() {
for(int x = 0; x < NUM_LEDS; x++){
leds[x] = CRGB(255,50,0);
FastLED.show();
delay(50);
leds[x] = CRGB(0,0,0);
}
}
timfield commentedon Aug 31, 2017
Okay, I was missing the FASTLED_ESP8266_RAW_PIN_ORDER define (I had tried FASTLED_ESP8266_NODEMCU_PIN_ORDER without success).
So thank you!!! You solved my problem (and this issue can be closed).
eboston commentedon Sep 1, 2017
Could we get this define added to the documentation? I was having this issue too and the define fixed it, but I haven't noticed it anywhere in the documentation.
focalintent commentedon Sep 1, 2017
https://github.com/FastLED/FastLED/wiki/ESP8266-notes
huangguozhen commentedon May 21, 2018
@timfield
i use FASTLED_ESP8266_RAW_PIN_ORDER, but it don't work right.
dmak commentedon Oct 7, 2019
Seems to be the same as issue #761. In my case (LOLIN NodeMCU V3 or Wemos D1 mini) the following has solved the issue:
Smuno commentedon Dec 21, 2019
In the case of LOLIN NodeMCU V3 can only use GPIO13 and GPIO14 (d7 and d5) and must use:
#define FASTLED_ESP8266_RAW_PIN_ORDER#include <FastLED.h>Info from this awesome guy