I'm using this python code to set up the i2c:
Code: Select all
import board, busio
i2c = busio.I2C(board.SCL, board.SDA)
Any help?
Code: Select all
import board, busio
i2c = busio.I2C(board.SCL, board.SDA)
EDIT: re-wrote this post as I realize I was really off the mark.
I2C is a multidrop bus. The RPi is the master/controller. Each slave/sensor device has a unique address between x'03' and x'77'. So as long as two slave devices have unique bus addresses they can share the I2C bus.ChaosSpear wrote: ↑Wed Aug 05, 2020 7:32 amEDIT: re-wrote this post as I realize I was really off the mark.
Firstly, thank you for the reply. Second, from what I'm reading, I can use GPIO 2/3 for both SPI and I2C at the same time, right? So I can use my screen and my ADC at the same time, by connecting them both to GPIO 2/3?