background image

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 

Example4

 of the SparkFun library for a full demonstration.

2

2

2

2

Summary of Contents for DEV-15083

Page 1: ...you just need a volume knob The Qwiic Twist is a digital RGB encoder also known as a continuously rotating knob that is read and controlled over I C 2 SparkFun Qwiic Twist RGB Rotary Encoder Breakout...

Page 2: ...tasks The Qwiic Twist has an indent type encoder which gives the user a great clicky feel as they turn The Qwiic Twist also has an RGB LED and a built in button We ve written an Arduino library to mak...

Page 3: ...nology as it becomes available SparkX products are tested but come with no guarantees Live technical support is not available for SparkX products You will also need a Qwiic cable to connect the shield...

Page 4: ...you may need a soldering iron solder and general soldering accessories Suggested Reading If you aren t familiar with the Qwiic system we recommend reading here for an overview Qwiic Cable 500mm PRT 14...

Page 5: ...rtant Hardware Overview The RGB encoder is a 24 indent encoder You ll feel 24 clicks when turning one 360 degree rotation I2C An introduction to I2C one of the main embedded communications protocols i...

Page 6: ...t we recommend a clear knob but depending on your setup you may also be able to get a backlit effect with an opaque knob The RGB LEDs are pulse width modulated and controlled via software and backed b...

Page 7: ...talking to it Alternatively you can solder to the I C pins on the board Heads Up The Qwiic Twist is designed to operate at 3 3V so please don t drive it at 5V Your I C pins however can be 5V logic RS...

Page 8: ...are the interrupt pins among many Twists then you can optionally cut the jumper to remove the 10k pull up on each Twist board Jumpers The ADR jumper is normally open and controls the I C address of th...

Page 9: ...ou are using the latest version of the Arduino IDE on your desktop If this is your first time using Arduino please review our tutorial on installing the Arduino IDE If you have not previously installe...

Page 10: ...t8_t Set the red LED 0 255 boolean setGreen uint8_t Set the green LED 0 255 boolean setBlue uint8_t Set the blue LED 0 255 uint8_t getRed Get current value uint8_t getGreen Get current value uint8_t g...

Page 11: ...d 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...

Page 12: ...other Qwiic products Qwiic Shield for Arduino Photon Hookup Guide Get started with our Qwiic ecosystem with the Qwiic shield for Arduino or Photon CCS811 BME280 Qwiic Environmental Combo Breakout Hook...

Reviews: