Table of Contents

Class Mcp23018

Namespace
Iot.Device.Mcp23xxx
Assembly
Iot.Device.Mcp23xxx.dll

Driver for the Microchip MCP23018 16-Bit I/O Expander with Open-Drain Outputs.

public class Mcp23018 : Mcp23x1x
Inheritance
GpioDriver
Mcp23018
Inherited Members

Constructors

Mcp23018(I2cDevice, int, int, int, GpioController?, bool)

Initializes a new instance of the Mcp23018 device.

public Mcp23018(I2cDevice i2cDevice, int reset = -1, int interruptA = -1, int interruptB = -1, GpioController? controller = null, bool shouldDispose = true)

Parameters

i2cDevice I2cDevice

The I2C device used for communication.

reset int

The output pin number that is connected to the hardware reset, if any. If specified the device will start in a disabled state.

interruptA int

The input pin number that is connected to the interrupt for Port A (INTA), if any.

interruptB int

The input pin number that is connected to the interrupt for Port B (INTB), if any.

controller GpioController

The controller for the reset and interrupt pins. If not specified, the default controller will be used.

shouldDispose bool

True to dispose the Gpio Controller