I've been looking around trying to figure this out,

I’ve been looking around trying to figure this out, and I’m pretty sure the root cause is my newbie status, but while trying to get FastLED working on NodeMCU as some others have done (in the Arduino IDE) I also can’t get the Blink example to compile. I think I have done everything suggested… Any ideas? They will come MUCH MUCH appreciated!!!

I am using “Arduino 3” (1.6.9), downloaded the code just a few days ago for FastLED 3.1.0, im using esp8266 2.1.0 in my board manager, I’m using the LED driver pictured here (http://www.dx.com/p/led-strip-driver-module-for-arduino-deep-blue-311841?tc=USD&gclid=CN-Jvfa6h80CFQeraQodDLgOEw), and my additional board url in preferences comes from http://arduino.esp8266.com/stable/package_esp8266com_index.json.

To start here is my code…

#define FASTLED_ESP8266_NODEMCU_PIN_ORDER
#include “FastLED.h”

#define NUM_LEDS 1
#define DATA_PIN D6
#define CLOCK_PIN D5

// Define the array of leds
CRGB leds[NUM_LEDS];

void setup() {
FastLED.addLeds<P9813, RGB>(leds, NUM_LEDS);
}

void loop() {
// Turn the LED on, then pause
leds[0] = CRGB::Red;
FastLED.show();
delay(500);
// Now turn the LED off, then pause
leds[0] = CRGB::Black;
FastLED.show();
delay(500);
}

Here is the error message I get…

In file included from /Users/NoobCake/Documents/Arduino/libraries/FastLED/FastLED.h:34:0,
from /var/folders/6p/rgqlc95s24bd0czrtc1k5rq00000gp/T/arduino_modified_sketch_366828/Blink.ino:2:
/Users/NoobCake/Documents/Arduino/libraries/FastLED/led_sysdefs.h:22:2: error: #error “XTENSA-architecture microcontrollers are not supported.”
#error “XTENSA-architecture microcontrollers are not supported.”
^
In file included from /Users/NoobCake/Documents/Arduino/libraries/FastLED/FastLED.h:42:0,
from /var/folders/6p/rgqlc95s24bd0czrtc1k5rq00000gp/T/arduino_modified_sketch_366828/Blink.ino:2:
/Users/NoobCake/Documents/Arduino/libraries/FastLED/platforms.h:22:2: error: #error “XTENSA-architecture microcontrollers are not supported”
#error “XTENSA-architecture microcontrollers are not supported”
^
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

You need to pull the most recent FastLED directly out of github - I haven’t yet done a full release w/ESP8266 support because some of the kinks are still being ironed out.

Daniel thank you so much for the help! I think I am much farther along now! I had seen that advice but didn’t realize the github version would be different. So I get a different error now:

no matching function for call to ‘CFastLED::addLeds(CRGB [1], int)’
FastLED.addLeds<P9813, RGB>(leds, NUM_LEDS);"

I’m guessing is because I didn’t update the library correctly. I went to GitHub - FastLED/FastLED: The FastLED library for colored LED animation on Arduino. Please direct questions/requests for help to the FastLED Reddit community: http://fastled.io/r We'd like to use github "issues" just for tracking library bugs / enhancements. and downloaded Zip from the Clone or download menu. It opened as FastLED-master, I renamed it to FastLED after deleting the old folder (I also tried leaving it as FastLED-master) and copied into my Arduino/libraries folder. Either way, I got the same error, it seems to me that the new library might not have the command?

Reverting to the download from http://fastled.io changes the error back to the original message.

for good measure I’ll copy in the entire error message im getting with the new library:

n file included from /Users/NoobCake/Documents/Arduino/LED controller/Blink_With_Help/Blink_With_Help.ino:3:0:
/Users/NoobCake/Documents/Arduino/libraries/FastLED/FastLED.h:17:21: note: #pragma message: FastLED version 3.001.001

pragma message “FastLED version 3.001.001”

                 ^

In file included from /Users/NoobCake/Documents/Arduino/libraries/FastLED/FastLED.h:65:0,
from /Users/NoobCake/Documents/Arduino/LED controller/Blink_With_Help/Blink_With_Help.ino:3:
/Users/NoobCake/Documents/Arduino/libraries/FastLED/fastspi.h:110:23: note: #pragma message: No hardware SPI pins defined. All SPI access will default to bitbanged output

pragma message “No hardware SPI pins defined. All SPI access will default to bitbanged output”

                   ^

/Users/NoobCake/Documents/Arduino/LED controller/Blink_With_Help/Blink_With_Help.ino: In function ‘void setup()’:
Blink_With_Help:15: error: no matching function for call to ‘CFastLED::addLeds(CRGB [1], int)’
FastLED.addLeds<P9813, RGB>(leds, NUM_LEDS);
^
/Users/NoobCake/Documents/Arduino/LED controller/Blink_With_Help/Blink_With_Help.ino:15:50: note: candidates are:
In file included from /Users/NoobCake/Documents/Arduino/LED controller/Blink_With_Help/Blink_With_Help.ino:3:0:
/Users/NoobCake/Documents/Arduino/libraries/FastLED/FastLED.h:211:129: note: template<ESPIChipsets CHIPSET, unsigned char DATA_PIN, unsigned char CLOCK_PIN, EOrder RGB_ORDER, unsigned char SPI_DATA_RATE> CLEDController& CFastLED::addLeds(CRGB*, int, int)
template<ESPIChipsets CHIPSET, uint8_t DATA_PIN, uint8_t CLOCK_PIN, EOrder RGB_ORDER, uint8_t SPI_DATA_RATE > CLEDController &addLeds(struct CRGB data, int nLedsOrOffset, int nLedsIfOffset = 0) {
^
/Users/NoobCake/Documents/Arduino/libraries/FastLED/FastLED.h:211:129: note: template argument deduction/substitution failed:
/Users/NoobCake/Documents/Arduino/LED controller/Blink_With_Help/Blink_With_Help.ino:15:50: note: couldn’t deduce template parameter ‘CLOCK_PIN’
FastLED.addLeds<P9813, RGB>(leds, NUM_LEDS);
^
In file included from /Users/NoobCake/Documents/Arduino/LED controller/Blink_With_Help/Blink_With_Help.ino:3:0:
/Users/NoobCake/Documents/Arduino/libraries/FastLED/FastLED.h:224:95: note: template<ESPIChipsets CHIPSET, unsigned char DATA_PIN, unsigned char CLOCK_PIN> static CLEDController& CFastLED::addLeds(CRGB
, int, int)
template<ESPIChipsets CHIPSET, uint8_t DATA_PIN, uint8_t CLOCK_PIN > static CLEDController &addLeds(struct CRGB data, int nLedsOrOffset, int nLedsIfOffset = 0) {
^
/Users/NoobCake/Documents/Arduino/libraries/FastLED/FastLED.h:224:95: note: template argument deduction/substitution failed:
/Users/NoobCake/Documents/Arduino/LED controller/Blink_With_Help/Blink_With_Help.ino:15:50: note: couldn’t deduce template parameter ‘CLOCK_PIN’
FastLED.addLeds<P9813, RGB>(leds, NUM_LEDS);
^
In file included from /Users/NoobCake/Documents/Arduino/LED controller/Blink_With_Help/Blink_With_Help.ino:3:0:
/Users/NoobCake/Documents/Arduino/libraries/FastLED/FastLED.h:237:113: note: template<ESPIChipsets CHIPSET, unsigned char DATA_PIN, unsigned char CLOCK_PIN, EOrder RGB_ORDER> static CLEDController& CFastLED::addLeds(CRGB
, int, int)
template<ESPIChipsets CHIPSET, uint8_t DATA_PIN, uint8_t CLOCK_PIN, EOrder RGB_ORDER > static CLEDController &addLeds(struct CRGB data, int nLedsOrOffset, int nLedsIfOffset = 0) {
^
/Users/NoobCake/Documents/Arduino/libraries/FastLED/FastLED.h:237:113: note: template argument deduction/substitution failed:
/Users/NoobCake/Documents/Arduino/LED controller/Blink_With_Help/Blink_With_Help.ino:15:50: note: couldn’t deduce template parameter ‘CLOCK_PIN’
FastLED.addLeds<P9813, RGB>(leds, NUM_LEDS);
^
In file included from /Users/NoobCake/Documents/Arduino/LED controller/Blink_With_Help/Blink_With_Help.ino:3:0:
/Users/NoobCake/Documents/Arduino/libraries/FastLED/FastLED.h:286:25: note: template<template<unsigned char DATA_PIN, EOrder RGB_ORDER> class CHIPSET, unsigned char DATA_PIN, EOrder RGB_ORDER> static CLEDController& CFastLED::addLeds(CRGB
, int, int)
static CLEDController &addLeds(struct CRGB data, int nLedsOrOffset, int nLedsIfOffset = 0) {
^
/Users/NoobCake/Documents/Arduino/libraries/FastLED/FastLED.h:286:25: note: template argument deduction/substitution failed:
/Users/NoobCake/Documents/Arduino/libraries/FastLED/FastLED.h:292:25: note: template<template<unsigned char DATA_PIN, EOrder RGB_ORDER> class CHIPSET, unsigned char DATA_PIN> static CLEDController& CFastLED::addLeds(CRGB
, int, int)
static CLEDController &addLeds(struct CRGB data, int nLedsOrOffset, int nLedsIfOffset = 0) {
^
/Users/NoobCake/Documents/Arduino/libraries/FastLED/FastLED.h:292:25: note: template argument deduction/substitution failed:
/Users/NoobCake/Documents/Arduino/libraries/FastLED/FastLED.h:298:25: note: template<template class CHIPSET, unsigned char DATA_PIN> static CLEDController& CFastLED::addLeds(CRGB
, int, int)
static CLEDController &addLeds(struct CRGB data, int nLedsOrOffset, int nLedsIfOffset = 0) {
^
/Users/NoobCake/Documents/Arduino/libraries/FastLED/FastLED.h:298:25: note: template argument deduction/substitution failed:
/Users/NoobCake/Documents/Arduino/libraries/FastLED/FastLED.h:334:25: note: template<template class CHIPSET, EOrder RGB_ORDER> static CLEDController& CFastLED::addLeds(CRGB
, int, int)
static CLEDController &addLeds(struct CRGB data, int nLedsOrOffset, int nLedsIfOffset = 0) {
^
/Users/NoobCake/Documents/Arduino/libraries/FastLED/FastLED.h:334:25: note: template argument deduction/substitution failed:
/Users/NoobCake/Documents/Arduino/libraries/FastLED/FastLED.h:340:25: note: template<template class CHIPSET> static CLEDController& CFastLED::addLeds(CRGB
, int, int)
static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {
^
/Users/NoobCake/Documents/Arduino/libraries/FastLED/FastLED.h:340:25: note: template argument deduction/substitution failed:
Blink_With_Help:15: error: wrong number of template arguments (2, should be 1)
FastLED.addLeds<P9813, RGB>(leds, NUM_LEDS);
^
exit status 1
no matching function for call to ‘CFastLED::addLeds(CRGB [1], int)’

Because I don’t have hardware SPI support for the ESP8266 yet, you have to specify the clock and data pins, so

FastLED.addLeds<P9813, RGB>(leds, NUM_LEDS);

needs to become

FastLED.addLeds<P9813, DATA_PIN, CLOCK_PIN, RGB>(leds, NUM_LEDS);