Knowledge Base

The AB Electronics UK Knowledge Base provides support solutions, tutorials and troubleshooting guides.

Knowledge Base

I2C Switch .Net Core Library

I2C Switch .Net Core Library code and demos

Created 29/07/2024 | Last Updated: 30/07/2024

.Net Core Library to use with the I2C Switch Raspberry Pi development boards.

Downloading and Installing the .Net Core Libraries

Download the zip archive containing the code demos and libaries from GitHub.

I2C Switch Methods

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

I2C Switch Parameters

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

Home

Shop

Learn

Forum

FAQ

Contact

0 item

Your cart is empty

Please browse our shop to order from the wide range of Raspberry Pi boards and accessories.

Subtotal:£0.00
View Basket Continue to Checkout