-
Notifications
You must be signed in to change notification settings - Fork 1
Class: I2CSwitch
Andrew Dorey edited this page Feb 27, 2020
·
1 revision
This class contains methods for use with the I2C Switch from
https://www.abelectronics.co.uk/p/84/i2c-switch
Connect()
Connect to the I2C device
Parameters: none
Returns: null
IsConnected()
Check if the device is connected
Parameters: none
Returns: boolean
Dispose()
Dispose of the active I2C device
Parameters: none
Returns: null
SwitchChannel(byte channel)
Enable the specified I2C channel and disable other channels.
Parameters: channel - 1 to 4
Returns: null
SetChannelState(byte channel, bool state)
Set the state of an individual I2C channel.
Parameters: channel - 1 to 4, state - true or false
Returns: null
GetChannelState(byte channel)
Get the state of an individual I2C channel.
Parameters: channel - 1 to 4
Returns: state - true or false
Reset()
Reset the I2C switch.
Returns: null
byte Address { get; set;}
Gets or sets the I2C address for the I2C Switch bus
byte ResetPin { get; set; }
GPIO pin for resetting the I2C Switch