C:\Users\Field\Documents\Arduino\Adafruit_TCS34725-master\examples\tcs34725autorange\tcs34725autorange.ino:2:31: fatal error: Adafruit_TCS34725.h: No such file or directory
#include "Adafruit_TCS34725.h"
^
compilation terminated.
exit status 1 Error compiling.
-
Did you try installing the library?Ignacio Vazquez-Abrams– Ignacio Vazquez-Abrams2016年01月16日 05:21:45 +00:00Commented Jan 16, 2016 at 5:21
-
I got it, I goofed on installing the library.Dan Wilkes– Dan Wilkes2016年01月16日 05:34:51 +00:00Commented Jan 16, 2016 at 5:34
1 Answer 1
You are trying to use a library, but it is either not installed, or is installed in the wrong location. A library, in this context, is code that supports a sensor or some other hardware or that accomplishes a task. We call them libraries because we can share and reuse them – like borrowing a book from a library.
It looks like you're trying to get the Adafruit TCS34725 color sensor going. The official source of the library is in the Adafruit's GitHub repository for the TCS34725 and there is a link at the bottom of the README for how to install a library. I'll bet that will get you back on track.
-
1I got it, messed up on installing the libraryDan Wilkes– Dan Wilkes2016年01月16日 06:22:49 +00:00Commented Jan 16, 2016 at 6:22