Hello,
I’m new to coding, and I got an XRP robotic kit, with the XRP controller (not beta). I got a SparkFun Tristimulus Color Sensor - OPT4048DTSR to go with it for a project, but I don’t know how to use them together. Is it possibly for them to work together, and if so, how would I use the two together through coding? I was able to connect them physically with a Qwiic cable, but I’m stuck on the coding.
Hi there,
We have a Python library for the sensor available here: GitHub - sparkfun/qwiic_opt4048_py The easiest way to install it is with mpremote: mpremote mip install github:sparkfun/qwiic_opt4048_py
, which will also install the qwiic_i2c_py dependency. Alternatively, you can manually copy the files into the lib
folder on the XRP.
Hope this helps!