.. _object_I2cBus: :index:`I2cBus` --------------- Description *********** The I2cBus object represents an I2C bus with attached :ref:`I2cDevice ` objects. This abstract base object provides common properties and methods only. Use a dedicated I2C bus implementation such as :ref:`SystemI2cBus ` and :ref:`FtdiI2cBus `. :**› Inherits**: :ref:`Object ` :**› Inherited by**: :ref:`FtdiI2cBus `, :ref:`SystemI2cBus ` Overview ******** Properties ++++++++++ .. hlist:: :columns: 1 * :ref:`devices ` * :ref:`speed ` * :ref:`Object.objectId ` * :ref:`Object.parent ` Methods +++++++ .. hlist:: :columns: 1 * :ref:`Object.deserializeProperties() ` * :ref:`Object.fromJson() ` * :ref:`Object.serializeProperties() ` * :ref:`Object.toJson() ` Signals +++++++ .. hlist:: :columns: 1 * :ref:`devicesDataChanged() ` * :ref:`Object.completed() ` Properties ********** .. _property_I2cBus_devices: .. _signal_I2cBus_devicesChanged: .. index:: single: devices devices +++++++ This property holds a list of I2C devices to use on this bus. :**› Type**: :ref:`List `\<:ref:`I2cDevice `> :**› Signal**: devicesChanged() :**› Attributes**: Readonly .. _property_I2cBus_speed: .. _signal_I2cBus_speedChanged: .. index:: single: speed speed +++++ This property holds the bus speed in *Hz*. :**› Type**: UnsignedInteger :**› Default**: ``100000`` :**› Signal**: speedChanged() :**› Attributes**: Writable Signals ******* .. _signal_I2cBus_devicesDataChanged: .. index:: single: devicesDataChanged devicesDataChanged(SignedInteger index) +++++++++++++++++++++++++++++++++++++++ This signal is emitted whenever the :ref:`List.dataChanged() ` signal is emitted, i.e. the item at ``index`` in the :ref:`devices ` list itself emitted the dataChanged() signal.