I keep getting this error when trying to run the demoreel or fire. no matching function for call to ‘CFastLED::addLeds(CRGB [331], int)’ blink and first light works which seems to call on the same function from the library.
I really don’t know much with arduino or FastLED so I’m guessing there’s something simple I’m missing but I don’t know what it is. Anyone have an ideo?
Can you post your code to http://gist.github.com or http://pastebin.com and post the link here so we can take a look at your code and see what’s going on?
Also - for extra info - go into your arduino preferences, turn on verbose output during compilation and copy/paste the entire build log from trying to compile to a gist or pastebin as well so I can see all the compiler messages that are coming out.
Blink
#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
This file has been truncated. show original
Error
Arduino: 1.6.6 (Windows 8.1), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\Brian\Documents\Arduino\libraries" -fqbn=arduino:avr:mega:cpu=atmega2560 -ide-version=10606 -build-path "C:\Users\Brian\AppData\Local\Temp\build2c6e34f6f8c8558f2d7daf52f29fbdc7.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\Brian\AppData\Local\Temp\arduino_2c6e34f6f8c8558f2d7daf52f29fbdc7\Fire2012WithPalette.ino"
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\Brian\Documents\Arduino\libraries" -fqbn=arduino:avr:mega:cpu=atmega2560 -ide-version=10606 -build-path "C:\Users\Brian\AppData\Local\Temp\build2c6e34f6f8c8558f2d7daf52f29fbdc7.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\Brian\AppData\Local\Temp\arduino_2c6e34f6f8c8558f2d7daf52f29fbdc7\Fire2012WithPalette.ino"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\mega" "C:\Users\Brian\AppData\Local\Temp\build2c6e34f6f8c8558f2d7daf52f29fbdc7.tmp\sketch\Fire2012WithPalette.ino.cpp"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\mega" "-IC:\Users\Brian\Documents\Arduino\libraries\FastLED" "C:\Users\Brian\AppData\Local\Temp\build2c6e34f6f8c8558f2d7daf52f29fbdc7.tmp\sketch\Fire2012WithPalette.ino.cpp"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\mega" "-IC:\Users\Brian\Documents\Arduino\libraries\FastLED" "C:\Users\Brian\AppData\Local\Temp\build2c6e34f6f8c8558f2d7daf52f29fbdc7.tmp\sketch\Fire2012WithPalette.ino.cpp"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\mega" "-IC:\Users\Brian\Documents\Arduino\libraries\FastLED" "C:\Users\Brian\AppData\Local\Temp\build2c6e34f6f8c8558f2d7daf52f29fbdc7.tmp\sketch\Fire2012WithPalette.ino.cpp"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\mega" "-IC:\Users\Brian\Documents\Arduino\libraries\FastLED" "C:\Users\Brian\Documents\Arduino\libraries\FastLED\FastLED.cpp"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\mega" "-IC:\Users\Brian\Documents\Arduino\libraries\FastLED" "C:\Users\Brian\Documents\Arduino\libraries\FastLED\colorpalettes.cpp"
This file has been truncated. show original
Fire2012WithPalette
#include <FastLED.h>
#define LED_PIN 6
#define COLOR_ORDER GRB
#define CHIPSET NEOPIXEL
#define NUM_LEDS 331
#define BRIGHTNESS 200
#define FRAMES_PER_SECOND 60
This file has been truncated. show original
Now I figured out a fix for it but don’t understand it. I used NEOPIXEL as the chipset on the Fire2012 file I just posted and it gets the error. If I switch it to WS2812B it works fine. But then the Blink file that is also posted where you comment out the chipset, I used NEOPIXEL there and it works just fine. Btw, these are both just examples that came with the library.
I appreciate the help.
NEOPIXEL doesn’t take a color ordering.