Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/a/d/Adafruit-Raspberry-Pi-Python-Code-HEAD/Adafruit_TCS34725/Adafruit_TCS34725_Example.py   Adafruit-Raspberry-Pi-Python-Code(Download)
#!/usr/bin/python
from time import sleep
from Adafruit_TCS34725 import TCS34725
 
# ===========================================================================
# Initialize the TCS34725 and use default integration time and gain
# tcs34725 = TCS34725(debug=True)
tcs = TCS34725(integrationTime=0xEB, gain=0x01)
tcs.setInterrupt(False)
sleep(1)