Skip to content

Software Setup

Arduino

Arduino IDE

This example assumes you are using the latest version of the Arduino IDE on your desktop. If this is your first time using Arduino IDE and an library, please review the following tutorials.

USB-to-Serial Drivers

If you've never connected an CH340 device to your computer before, you may need to install drivers for the USB-to-serial converter. Check out our section on "How to Install CH340 Drivers" for help with the installation.

OPT4048

SparkFun has written a library to work with the SparkFun Tristimulus Color Sensors. This library can be used by extension with the SparkFun Tristimulus Color Sensor - OPT4048DTSR (Qwiic). You can obtain this library through the Arduino Library Manager by searching for "OPT4048". Find the one written by SparkFun Electronics and install the latest version. Users who prefer to manually install the library can get it from the GitHub Repository or download the .ZIP by clicking the button below: