Hi all. I’m a very beginner to programming arduinos, so I’m just starting to figure out how to include dependencies. I tried putting FastLED-2-final in my arduino sketchbook folder. In the Arduino IDE I then tried compiling Blink.ino, and found that I have to add each header file in FastLED one-by-one! Now I’m getting another dependency error “clockless.h:59: undefined reference to `FastLED’”. What I would really like is a Makefile, where all I change the target device, serial interface and baud rate. Does anyone have any example Makefiles for FastLED, or prefered methods of compiling on the comand line?
Thanks, Michael
You need to rename the folder to just FastLED, and only include “FastLED.h”.
Thanks. I did try these things: renaming to sketchbook/FastLED and of course the first header I explicitly added was FastLED.h. However, I tried them in a different order; the Arduino IDE is keeping some state about included files and libraries, so the order may matter… not sure how to clear Arduino IDE state. My version of Arduino IDE is 1:1.0.5+dfsg2-1. In the ordinary Makefile approach, dependencies are already specified, so I wonder if anyone has an example of a Makefile for FastLED.