Edit

Share via


Mcp23017 Constructors

Definition

Overloads

Mcp23017(I2cDevice, Int32, Int32, Int32, GpioController)
Mcp23017(I2cDevice, Int32, Int32, Int32, GpioController, Boolean)

Initializes a new instance of the Mcp23017 device.

Mcp23017(I2cDevice, Int32, Int32, Int32, GpioController)

public Mcp23017 (System.Device.I2c.I2cDevice i2cDevice, int reset = -1, int interruptA = -1, int interruptB = -1, System.Device.Gpio.GpioController masterController = default);
new Iot.Device.Mcp23xxx.Mcp23017 : System.Device.I2c.I2cDevice * int * int * int * System.Device.Gpio.GpioController -> Iot.Device.Mcp23xxx.Mcp23017
Public Sub New (i2cDevice As I2cDevice, Optional reset As Integer = -1, Optional interruptA As Integer = -1, Optional interruptB As Integer = -1, Optional masterController As GpioController = Nothing)

Parameters

i2cDevice
I2cDevice
reset
Int32
interruptA
Int32
interruptB
Int32
masterController
GpioController

Applies to

Mcp23017(I2cDevice, Int32, Int32, Int32, GpioController, Boolean)

Initializes a new instance of the Mcp23017 device.

public Mcp23017 (System.Device.I2c.I2cDevice i2cDevice, int reset = -1, int interruptA = -1, int interruptB = -1, System.Device.Gpio.GpioController? controller = default, bool shouldDispose = true);
new Iot.Device.Mcp23xxx.Mcp23017 : System.Device.I2c.I2cDevice * int * int * int * System.Device.Gpio.GpioController * bool -> Iot.Device.Mcp23xxx.Mcp23017
Public Sub New (i2cDevice As I2cDevice, Optional reset As Integer = -1, Optional interruptA As Integer = -1, Optional interruptB As Integer = -1, Optional controller As GpioController = Nothing, Optional shouldDispose As Boolean = true)

Parameters

i2cDevice
I2cDevice

The I2C device used for communication.

reset
Int32

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

interruptA
Int32

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

interruptB
Int32

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
Boolean

True to dispose the Gpio Controller

Applies to