Hello I'm at the very beginning f the usage of FastLed and the problems

Hello

I’m at the very beginning f the usage of FastLed and the problems allready startet: i Asked firstly for support in the prjc forum (mainly because i find the Google+ very messy) and well describet my problem :
https://forum.pjrc.com/threads/41741-Beginners-questions

shortly der is just the question why does my compiler keep telling me:
…/Table.cpp:41:25: error: no matching function for call to ‘CFastLED::addLeds(CRGB [1312], int)’

when compiled in the sloeber ide… but not when i compile it in the arduine ide… seems strange to me… it is like i’m passing the wrong arguments… but it gives me this as a method signature…

EDIT: i forgott to mention. i’m asking here now for help because i was probably at the wrong place firstly :wink:

What version of Arduino IDE are you using? I know there was a bug before that required the function to be defined above the first call to the function on a certain version of the IDE.

@Justin_Eastman thanks for your response. I’m very thankfull for any help i get in this topic. The example Code Compiles in the Arduino IDE… (not every example does but this one) but it doesn’t compile in sloeber (previous eclipse arduino plugin http://eclipse.baeyens.it/).

Let me try again… What version of the Arduino IDE are you using?

Sorrry i’m using 1.6.8 but actually woulden’t the fastled libary version be more interesting?

Thanks for the version. Not sure that is your problem…

I don’t think there is a function in FastLED to do what you are trying to do.

I think you need to define the CRGB variable first… something like
CRGB leds[1312];

Then you need to define the LEDs to an LED controller object (default is LEDS). Put in your data pin number for “yourdatapin”
LEDS.addLeds<WS2811, youdatapin>(leds, 1312);

thanks for your response. The code i postet is a example Code from the Fastled Libary for the OCTOWS Shield. (this has not a single pin it uses 8 pins.) As i said if i open the example in the Arduino IDE it compiles. If i open it in the Sloeber IDE it doesn’t.
So there must be a difference in the project setup between the two IDE.

Sorry I don’t know anything about Sloeber IDE. Maybe one of the guys that wrote the code would know… Is there a reason you don’t want to use the Arduino IDE? Is there some sort of benefit to the Sloeber IDE? I suspect that there is a difference in the compilers.

There are big benefits in my opinion like code completion, refactoring support, the option of installing plugins like a console grep. Easy working with multiple files. Outline find usage of a methode… Just to mention some of the benefits…
Sloeber is a real developmet environment while the arduino ide is a texteditor with automatic build an upload…
I can really recomend to give it a try.
There is a video on the sloeber homepage i lonked which explains that question very well.
So i liked to do some oop (but i’m not used to c++) and ecery other example compiles quite easy (if it compiles also in the arduino ide) but there seems to be a difference somewhere…

@Severin_N ​ i have used eclipse for java, C and even Perl, so i understand your desire to use Sloeber. I havent tried that plugin, but i would guess your build/include path is wrong for your project.

@Stuart_Taylor Hello thanks for your hint. Probably you are right but i can’t find my setup error. It just has the problem with this one line. The import is fine and everything. So i would guess the include path is fine, i don’t have any experience in c++ project setups so probably you are right there. But still no clue for what i have to look.

@Severin_N ​ if i get time tonight i will try the plugin and see what happens :+1:

@Stuart_Taylor that would be really nice. So actually its not a plugin anymore as we where used before. so you have to download the hole IDE. IF you whish i can upload you my ide including the workspace as a ZIP and post you the link.

Ah, cool. You have v4.0 Sloeber?

Do not zip the workspace. Baby steps :slight_smile:

@Stuart_Taylor ​ Yes i do… Yeah you have to know that i had to do little tweaks to get it running for teensy. So adding extra hardware and stuff like this :wink: my setup is so thatyou could putitjust on the D drive and you should be able to use mi state

@Severin_N ​ so last night i remembered i dont like eclipse :smiley:

I cant even get Sloeber to build an empty sketch, because the auto generated make files had the wrong path, because the regex is bollox for Windows.

I don’t have enough free time to test, fix and submit a PR, especially when the author wont look at github issues without a patreon donation.

TLDR; I think Sloeber is still very flaky.

@Stuart_Taylor haha eclipse is all about getting used to it :wink:
https://drive.google.com/open?id=0BzBh3K6Nj-F1Q2FJTjNHYjZNZWM

i uploaded you my installation you should be able to unzip it on a E:\drive and then start sloeber in e:\ide\sloeber2 it should work right out of the box.

EDIT: don’t mess with the arduino installation aside…its included by a path in sloebers arduino settings :wink: and has a installation of the teensyduino in it

@Stuart_Taylor ​ could you have a look atthe Installation?