Multipe Twists on same I2C bus.....

Greetings!

I’ve used the Quiic Twists before individually, changing their colors, getting click positions, and button presses, and they worked rather nicely.

As discussed in the intro video and hookup guide page, multiple Qwiic Twists were used at the same time on the same bus…

Cool! I’d like to use three at once on the same bus. I see in the examples a routine that can be used to change the address via software.

Got it. I can hook them up individually and change them to have three different addresses.

However, I’m not an I2C guy, and so I searched fairly completely (I think) the hookup guide page and the 12 GitHub examples for an example on how to address each one individually, but, if the example was there, sorry, I just didn’t see it.

Can anybody point me in the right direction to example code to access three Twists on the same I2C bus once I’ve changed their addresses?

Thanks!

There isn’t a ready-made example with multiple twists sharing an i2c bus, but what you could do is run example9 (change address) for each twist, setting and recording what you are adjusting each’s i2c address TO…then, open something like example1, and modify the code there to call one of the newly assigned addresses.

After you can get the examples to call the updated i2c addresses, you would simply copy/combine those working sections into a new code which calls all three new addresses.

Best of luck!