I2C with Python

4 thoughts on “I2C with Python

  1. 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?

    1. 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)
      
      1. 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.

        1. You’ll have to manage 2 IIC  objects and create them successively at need with the same GPIOs.