SparkFun Triad Spectroscopy Sensor (SEN-15050)
SparkFun AS7265x Arduino Library
This library is a Python implementation of the SparkFun Arduino Library.
from smbus import SMBus
from as7265x import AS7265X
i2c = SMBus(1)
sensor = AS7265X(i2c)
sensor.begin()
sensor.takeMeasurementsWithBulb()
print("A:{}".format(sensor.getCaibratedA())
print("B:{}".format(sensor.getCaibratedB())
print("C:{}".format(sensor.getCaibratedC())
print("D:{}".format(sensor.getCaibratedD())