Class I2CBus
A simple wrapper for the I2c bus on the Raspberry Pi.
Syntax
public class I2CBus : II2CBus
Properties
Devices
Declaration
public ReadOnlyCollection<II2CDevice> Devices { get; }
Property Value
Item[Int32]
Declaration
public II2CDevice this[int deviceId] { get; }
Parameters
Type |
Name |
Description |
Int32 |
deviceId |
|
Property Value
Type |
Description |
II2CDevice |
|
Methods
AddDevice(Int32)
Declaration
public II2CDevice AddDevice(int deviceId)
Parameters
Type |
Name |
Description |
Int32 |
deviceId |
|
Returns
Type |
Description |
II2CDevice |
|
GetDeviceById(Int32)
Declaration
public II2CDevice GetDeviceById(int deviceId)
Parameters
Type |
Name |
Description |
Int32 |
deviceId |
|
Returns
Type |
Description |
II2CDevice |
|