Edit

Share via


Mcp23009 Constructors

Definition

Overloads

Mcp23009(I2cDevice, Int32, Int32, GpioController)
Mcp23009(I2cDevice, Int32, Int32, GpioController, Boolean)

Initializes a new instance of the Mcp23009 device.

Mcp23009(I2cDevice, Int32, Int32, GpioController)

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

Parameters

i2cDevice
I2cDevice
reset
Int32
interrupt
Int32
masterController
GpioController

Applies to

Mcp23009(I2cDevice, Int32, Int32, GpioController, Boolean)

Initializes a new instance of the Mcp23009 device.

public Mcp23009 (System.Device.I2c.I2cDevice i2cDevice, int reset = -1, int interrupt = -1, System.Device.Gpio.GpioController? controller = default, bool shouldDispose = true);
new Iot.Device.Mcp23xxx.Mcp23009 : System.Device.I2c.I2cDevice * int * int * System.Device.Gpio.GpioController * bool -> Iot.Device.Mcp23xxx.Mcp23009
Public Sub New (i2cDevice As I2cDevice, Optional reset As Integer = -1, Optional interrupt 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.

interrupt
Int32

The input pin number that is connected to the interrupt, 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