![]() |
Qwiic_OPT4048_Py
v0.9.1_test-4-gdcd7056
Python for SFE Qwiic OPT4048
|
Python module for the following:
![]() | ![]() |
SparkFun Tristimulus Color Sensor - OPT4048DTSR (Qwiic) | SparkFun Mini Tristimulus Color Sensor - OPT4048DTSR (Qwiic) |
This python package is a port of the existing SparkFun OPT4048 Arduino Library
This package can be used in conjunction with the overall SparkFun Qwiic Python Package
New to qwiic? Take a look at the entire SparkFun qwiic ecosystem.
Your system might need modification. See this note.
The qwiic Buzzer Python package current supports the following platforms:
This driver package depends on the qwiic I2C driver: Qwiic_I2C_Py
The SparkFun Qwiic Trisitumuls Color Sensor module documentation is hosted at ReadTheDocs
This repository is hosted on PyPi as the sparkfun_opt4048_tristimulus_color_sensor package. On systems that support PyPi installation via pip, this library is installed using the following commands
For all users (note: the user must have sudo privileges):
For the current user:
To install, make sure the setuptools package is installed on the system.
Direct installation at the command line:
To build a package for use with pip:
A package file is built and placed in a subdirectory called dist. This package file can be installed using pip.
For this sensor to work on the Raspberry Pi, I2C clock stretching must be enabled.
To do this:
See the examples directory for more detailed use examples.