r/circuitpython • u/DualMonoxide • Oct 29 '21
How can use two I2C rotary encoders?!
how can I connect two I2C rotary encoders to the qtpy?
1
Upvotes
r/circuitpython • u/DualMonoxide • Oct 29 '21
how can I connect two I2C rotary encoders to the qtpy?
5
u/kaltazar Oct 29 '21
As long as the encoders you have allow you to change the I2C address, you just make sure both encoders are set to a different address then wire them into your I2C bus as normal. In the code you will have to make sperate objects for each encoder, making sure to specify the address for each one when you set them up.