I2cBus¶
Description¶
The I2cBus object represents an I2C bus with attached I2cDevice objects. This abstract base object provides common properties and methods only. Use a dedicated I2C bus implementation such as SystemI2cBus and FtdiI2cBus.
› Inherits: | Object |
---|---|
› Inherited by: | FtdiI2cBus, SystemI2cBus |
Properties¶
devices¶
This property holds a list of I2C devices to use on this bus.
› Type: | List<I2cDevice> |
---|---|
› Signal: | devicesChanged() |
› Attributes: | Readonly |
speed¶
This property holds the bus speed in Hz.
› Type: | UnsignedInteger |
---|---|
› Default: | 100000 |
› Signal: | speedChanged() |
› Attributes: | Writable |
Signals¶
devicesDataChanged(SignedInteger index)¶
This signal is emitted whenever the List.dataChanged() signal is emitted, i.e. the item at index
in the devices list itself emitted the dataChanged() signal.