Hi Guys, I’ve used FastLED (v 3.001.005) only on the surface but one thing that continues to worry me is that when used with the Eclipse IDE (SLOEBER v4) with the Arduino add-on, I get an error on this line:
FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);
‘addLeds<NEOPIXEL, DATA_PIN>’ is ambiguous
Candidates are: CLEDController & addLeds(CRGB *, int, int)
Funnily enough, even though marked as an error it compiles and works. No such error appears in the standard Arduino IDE (but that is often the case compared to Eclipse which is a lot more picky).
I’m compiling for the Arduino family (Uno / Nano) ATMega328P.
Anyone have any ideas how I might eliminate this ‘error’?
I don’t think that eclipse is supported, sorry.
It’s always worth trying the latest version of FastLED though 
https://github.com/FastLED/FastLED/releases
Eclipse can work, I build FastLED for the Particle Photon all the time with Eclipse. Just takes a bit of massaging. I haven’t done it for the Arduino though, so I can’t tell you why you are having that issue.
I don’t think this is Arduino-related, it’s more general than that. It seems that the compiler (AVR) doesn’t like “addLeds” call, because it is ambiguous (and there are many declarations of “addLeds” all with slightly different signatures, just look at the header file for FastLED!). If I change NEOPIXEL and use WS3812B there is no error (but the LED colours are wrong then of course, I need a different colour order).
It’s a pity the writers of the library are not available as they would probably spot the problem immediately but I understand why they are not available at this time.
It’s not a disaster as the code still compiles and works as expected but eliminating this error is still desirable. BTW I am using the latest version of this library. Anyway, thanks for your response, we’ll see if anyone else has any ideas.
So i can tell you i had problems with using some 3.1X version. There was a compile error in the .h file.
I’m also using sloeber and after some starting issues i don’t have any troubles anymore with it. But what troubled me also at the begining was the fact that it doesen’t autocompile after every save, like i’m used in java from eclipse. So error kept staying and i went on trying to solve it. And until i did the next compile i broke it allready again somehow.
