I have a raspberry pi 3b with three sensors attached (sds011, sgp30, scd30). The sds011 is connected via usb to raspberry pi, but the other two sensors are i2c devices and they are connected via gpio pins (diff i2c addresses). This all works fine but I wanted to get rid of gpio connections, so I bought the Qwiic Pro Micro USB controller to attach i2c devices via USB.
I have it all hooked up but cannot figure out how to connect to Qwiic Pro Micro USB controller in python and access two i2c devices behind controller in python. I currently connect to i2c devices in the following manner.
i2c = busio.I2C(board.SCL, board.SDA, frequency=50000)
scd = adafruit_scd30.SCD30(i2c)
i2c = busio.I2C(board.SCL, board.SDA, frequency=100000)
sgp30 = adafruit_sgp30.Adafruit_SGP30(i2c)
So what is the magic incantation to connect to i2c devices via Qwiic Pro Micro USB controller in python on raspberry pi. image of setup below. Any help would be appreciated. Thanks!
setup.png