Python code to use the TCS34725 color sensor with the Raspberry Pi & BeagleBone Black.
To install the library from source (recommended) run the following commands on a Raspberry Pi or other Debian-based OS system:
sudo apt-get install git build-essential python-dev
cd ~
git clone https://github.com/adafruit/Adafruit_Python_TCS34725.git
cd Adafruit_Python_TCS34725
sudo python setup.py install
Alternatively you can install from pip with:
sudo pip install adafruit-tcs34725
Note that the pip install method won't install the example code.