I have a I2C bus with some slaves. In Easy Script Manual doesn’t have a example for slave selection. Is there any reference about this? Or a attribute for slave selection?
The address of the slave is specified at IIC object creation time, here is the example from the doc for a slave at address 0x50:
IICbus = IIC.new(3, 4, 0x50)
We use abus withtwodevices.
Do we have toalwaysrecreate theI2Cbus?I would like toknow if there isa problem with this.
You’ll have to manage 2 IIC objects and create them successively at need with the same GPIOs.
We use cookies to enhance your browsing experience and help us improve our websites. To improve our website, we carefully select third parties that use cookies to allow us to serve specific content and achieve the purposes set out in our cookie policy. For more information on how to make adjustments through your browser to the cookies being used on your device, please click Find Out More link. By closing this banner or continuing to browse our website, you agree to our use of such cookies. FIND OUT MORE
HI,
I have a I2C bus with some slaves. In Easy Script Manual doesn’t have a example for slave selection. Is there any reference about this? Or a attribute for slave selection?
The address of the slave is specified at IIC object creation time, here is the example from the doc for a slave at address 0x50:
We use a bus with two devices.
Do we have to always recreate the I2C bus? I would like to know if there is a problem with this.
You’ll have to manage 2 IIC objects and create them successively at need with the same GPIOs.