I have tried to look in various foruns but couldn’t find the solution for my problem. I’m trying to build a project where I have to use three VEML6070 sensors… These sensors obviously use the same address.
Hardware: Raspeberry PI2 (I have one RPI3 and RPIZero that I could use) Linux 4.19.85-1-ARCH #1 SMP PREEMPT armv7l GNU/Linux
Any help will be very much appreciated.
The result from i2cdetect -l is this:
i2c-3 unknown 3.i2c
i2c-1 unknown bcm2835 I2C adapter
i2c-4 unknown 4.i2c
i2c-5 unknown 5.i2c
I have this Python example: I replace i2cX with 3, 4 and 5 and the result is the same
i2c5 = busio.I2C(board.SCL, board.SDA)
uv = adafruit_veml6070.VEML6070(i2c5)
How can I do this with multiplexing in python? At this point I just don’t know if i2c5 = busio.I2C(board.SCL, board.SDA) or i2c3 = busio.I2C(board.SCL, board.SDA) or whatever makes sense.