TLC5940 library BasicUse example won't compile ( include not found)

I'm running the Arduino IDE on a Mac OSX 10.6.6. I've installed the IDE and it works fine. I've been able to compile, download and execute the Blink example successfully.

I got the TLC5940 library as a zip file and extracted the files into a directory I created. The directory structure looks like this:


I then go into the IDE and load the TLC5940 BasicUse example via the File menu as follows:

File/Sketchbook/hardware/libraries/TLC5940/BasicUse which brings in the code.

When I try and verify (compile) the code I get a series of errors that I think are caused because the include file was not found.

BasicUse.cpp:50:21: error: Tlc5940.h: No such file or directory BasicUse.cpp: In function 'void setup()': BasicUse:55: error: 'Tlc' was not declared in this scope BasicUse.cpp: In function 'void loop()': BasicUse:66: error: 'NUM_TLCS' was not declared in this scope BasicUse:70: error: 'Tlc' was not declared in this scope

So do I have my environment setup wrong? I can see the include files in the TLC5940 directory just fine.

Thanks for any help you can provide.

Craig Lindley


These sub-directories should already be in the libraries directory...

ArduinoTestSuite EEPROM Ethernet Firmata LiquidCrystal Matrix SD Servo SoftwareSerial SPI Sprite Stepper Wire

If they are not present, you are in the wrong place. You should put the new library in SketchFolder/libraries instead of Arduino/libraries. Don't forget to restart the IDE when you add or move a library.

Thank you that did it.