If you’d like to use a platform other than Arduino you can easily control Qwiic Twist by accessing the following set
of registers:
You can also download the PDF.
The Qwiic Twist behaves as a normal I C slave. First write the address of the register you would like to read or
write, then follow that I C command with a Read to read the given register or a Write and a data byte to write to a
register. The register address pointer is auto-incrementing so you can read and write multiple registers at a time.
Connecting Colors
One of the more advanced (but really handy) features of Qwiic Twist is the ability to connect the color control to the
knob movement. What this means is that you can have the red LED brightness increase or decrease as the user
turns the knob without sending commands to the Qwiic Twist. This greatly increases the responsiveness of the
knob illumination and dramatically reduces I C traffic.
In the above photo we have connected blue to increase brightness by 10 for every tick increment, and connected
red to -10 per tick. The color changes automatically without the need for intervention from the I C master. The
color connect values are stored in the Qwiic Twist and will be loaded after each power-on.
See
of the SparkFun library for a full demonstration.
2
2
2
2