I'm having trouble with FastLED 3.1, Arduino IDE 1.6.5 and an Adafruit Pixie.

I’m having trouble with FastLED 3.1, Arduino IDE 1.6.5 and an Adafruit Pixie. Long story short, the IDE gives me the error “PIXIE not declared in this scope” when attempting to compile the simple Blink example.

Here’s the code…

#include “SoftwareSerial.h”
#include “FastLED.h”

// How many leds in your strip?
#define NUM_LEDS 1

// For led chips like Neopixels, which have a data line, ground, and power, you just
// need to define DATA_PIN. For led chipsets that are SPI based (four wires - data, clock,
// ground, and power), like the LPD8806 define both DATA_PIN and CLOCK_PIN
#define DATA_PIN 6
//#define CLOCK_PIN 13

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

void setup() {
FastLED.addLeds<PIXIE, DATA_PIN, 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);
}

I’ve searched this group and examples I’ve found suggest to me the above should work. I really don’t get what I’m doing wrong, so any help would be appreciated.

use the line
“FastLED.addLeds<WS2812B, DATA_PIN, RGB>(leds, NUM_LEDS);”
instead of yours

@Soumitra_Paul you’re incorrect. He’s specifically wanting to use the PIXIE led which is not a WS2812B.

@Steven_Sykes what’re you trying to build for, hardware wise - I wonder if something isn’t getting defined right for me to pick up the software serial support for the Pixie? (Also, I stopped testing w/1.6.5 a while ago, what happens with Arduino 1.6.8 or Arduino 1.6.9?)

@Daniel_Garcia I originally did try 1.6.9 but the same symptom occurs, 1.6.8 does the same. I switched to 1.6.5 as the FastLED documentation said it was tested with that.

It’s probably something I’m doing wrong, but I can’t figure out what.

Even though there’s mention of FastLED 3.001.000, I’m using 3.1 according to the README file. Here’s the output from Arduino IDE:

Arduino: 1.6.8 (Linux), Board: “Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)”

In file included from /tmp/arduino_modified_sketch_877697/ArrayOfLedArrays.ino:2:0:
/home/steven/Arduino/libraries/FastLED/FastLED.h:12:2: warning: #warning FastLED version 3.001.000 (Not really a warning, just telling you here.) [-Wcpp]
#warning FastLED version 3.001.000 (Not really a warning, just telling you here.)
^
/tmp/arduino_modified_sketch_877697/ArrayOfLedArrays.ino: In function ‘void setup()’:
ArrayOfLedArrays:17: error: ‘PIXIE’ was not declared in this scope
FastLED.addLeds<PIXIE, DATA_PIN, RGB>(leds, NUM_LEDS);
^
ArrayOfLedArrays:17: error: no matching function for call to ‘CFastLED::addLeds(CRGB [1], int)’
FastLED.addLeds<PIXIE, DATA_PIN, RGB>(leds, NUM_LEDS);
^
/tmp/arduino_modified_sketch_877697/ArrayOfLedArrays.ino:17:59: note: candidates are:
In file included from /tmp/arduino_modified_sketch_877697/ArrayOfLedArrays.ino:2:0:
/home/steven/Arduino/libraries/FastLED/FastLED.h:172: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) {
^
/home/steven/Arduino/libraries/FastLED/FastLED.h:172:129: note: template argument deduction/substitution failed:
ArrayOfLedArrays:17: error: template argument 1 is invalid
FastLED.addLeds<PIXIE, DATA_PIN, RGB>(leds, NUM_LEDS);
^
In file included from /tmp/arduino_modified_sketch_877697/ArrayOfLedArrays.ino:2:0:
/home/steven/Arduino/libraries/FastLED/FastLED.h:184: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) {
^
/home/steven/Arduino/libraries/FastLED/FastLED.h:184:95: note: template argument deduction/substitution failed:
ArrayOfLedArrays:17: error: template argument 1 is invalid
FastLED.addLeds<PIXIE, DATA_PIN, RGB>(leds, NUM_LEDS);
^
In file included from /tmp/arduino_modified_sketch_877697/ArrayOfLedArrays.ino:2:0:
/home/steven/Arduino/libraries/FastLED/FastLED.h:196: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) {
^
/home/steven/Arduino/libraries/FastLED/FastLED.h:196:113: note: template argument deduction/substitution failed:
ArrayOfLedArrays:17: error: template argument 1 is invalid
FastLED.addLeds<PIXIE, DATA_PIN, RGB>(leds, NUM_LEDS);
^
In file included from /tmp/arduino_modified_sketch_877697/ArrayOfLedArrays.ino:2:0:
/home/steven/Arduino/libraries/FastLED/FastLED.h:209:56: note: template static CLEDController& CFastLED::addLeds(CRGB
, int, int)
template static CLEDController &addLeds(struct CRGB data, int nLedsOrOffset, int nLedsIfOffset = 0) {
^
/home/steven/Arduino/libraries/FastLED/FastLED.h:209:56: note: template argument deduction/substitution failed:
ArrayOfLedArrays:17: error: wrong number of template arguments (3, should be 1)
FastLED.addLeds<PIXIE, DATA_PIN, RGB>(leds, NUM_LEDS);
^
In file included from /tmp/arduino_modified_sketch_877697/ArrayOfLedArrays.ino:2:0:
/home/steven/Arduino/libraries/FastLED/FastLED.h:213:74: note: template<ESPIChipsets CHIPSET, EOrder RGB_ORDER> static CLEDController& CFastLED::addLeds(CRGB
, int, int)
template<ESPIChipsets CHIPSET, EOrder RGB_ORDER> static CLEDController &addLeds(struct CRGB data, int nLedsOrOffset, int nLedsIfOffset = 0) {
^
/home/steven/Arduino/libraries/FastLED/FastLED.h:213:74: note: template argument deduction/substitution failed:
ArrayOfLedArrays:17: error: wrong number of template arguments (3, should be 2)
FastLED.addLeds<PIXIE, DATA_PIN, RGB>(leds, NUM_LEDS);
^
In file included from /tmp/arduino_modified_sketch_877697/ArrayOfLedArrays.ino:2:0:
/home/steven/Arduino/libraries/FastLED/FastLED.h:217:97: note: template<ESPIChipsets CHIPSET, EOrder RGB_ORDER, unsigned char SPI_DATA_RATE> static CLEDController& CFastLED::addLeds(CRGB
, int, int)
template<ESPIChipsets CHIPSET, EOrder RGB_ORDER, uint8_t SPI_DATA_RATE> static CLEDController &addLeds(struct CRGB data, int nLedsOrOffset, int nLedsIfOffset = 0) {
^
/home/steven/Arduino/libraries/FastLED/FastLED.h:217:97: note: template argument deduction/substitution failed:
ArrayOfLedArrays:17: error: template argument 1 is invalid
FastLED.addLeds<PIXIE, DATA_PIN, RGB>(leds, NUM_LEDS);
^
ArrayOfLedArrays:17: error: invalid conversion from ‘int’ to ‘EOrder’ [-fpermissive]
In file included from /tmp/arduino_modified_sketch_877697/ArrayOfLedArrays.ino:2:0:
/home/steven/Arduino/libraries/FastLED/FastLED.h:244: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) {
^
/home/steven/Arduino/libraries/FastLED/FastLED.h:244:25: note: template argument deduction/substitution failed:
ArrayOfLedArrays:17: error: template argument 1 is invalid
FastLED.addLeds<PIXIE, DATA_PIN, RGB>(leds, NUM_LEDS);
^
In file included from /tmp/arduino_modified_sketch_877697/ArrayOfLedArrays.ino:2:0:
/home/steven/Arduino/libraries/FastLED/FastLED.h:250: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) {
^
/home/steven/Arduino/libraries/FastLED/FastLED.h:250:25: note: template argument deduction/substitution failed:
ArrayOfLedArrays:17: error: wrong number of template arguments (3, should be 2)
FastLED.addLeds<PIXIE, DATA_PIN, RGB>(leds, NUM_LEDS);
^
In file included from /tmp/arduino_modified_sketch_877697/ArrayOfLedArrays.ino:2:0:
/home/steven/Arduino/libraries/FastLED/FastLED.h:256: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) {
^
/home/steven/Arduino/libraries/FastLED/FastLED.h:256:25: note: template argument deduction/substitution failed:
ArrayOfLedArrays:17: error: wrong number of template arguments (3, should be 2)
FastLED.addLeds<PIXIE, DATA_PIN, RGB>(leds, NUM_LEDS);
^
In file included from /tmp/arduino_modified_sketch_877697/ArrayOfLedArrays.ino:2:0:
/home/steven/Arduino/libraries/FastLED/FastLED.h:292: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) {
^
/home/steven/Arduino/libraries/FastLED/FastLED.h:292:25: note: template argument deduction/substitution failed:
ArrayOfLedArrays:17: error: wrong number of template arguments (3, should be 2)
FastLED.addLeds<PIXIE, DATA_PIN, RGB>(leds, NUM_LEDS);
^
In file included from /tmp/arduino_modified_sketch_877697/ArrayOfLedArrays.ino:2:0:
/home/steven/Arduino/libraries/FastLED/FastLED.h:298:25: note: template<template class CHIPSET> static CLEDController& CFastLED::addLeds(CRGB
, int, int)
static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {
^
/home/steven/Arduino/libraries/FastLED/FastLED.h:298:25: note: template argument deduction/substitution failed:
ArrayOfLedArrays:17: error: wrong number of template arguments (3, should be 1)
FastLED.addLeds<PIXIE, DATA_PIN, RGB>(leds, NUM_LEDS);
^
exit status 1
‘PIXIE’ was not declared in this scope

This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.

Ah - PIXIE support was added after 3.1 was released, but we haven’t done a new release yet for it - you need to grab the most recent version of the library directly from github.

@Daniel_Garcia Yes! That did the trick! Thank you very much.