Edit

Share via


Mcp23x0x Constructors

Definition

Overloads

Mcp23x0x(Mcp23xxx+BusAdapter, Int32, Int32, GpioController)
Mcp23x0x(Mcp23xxx+BusAdapter, Int32, Int32, GpioController, Boolean)

Constructs Mcp23x0x instance

Mcp23x0x(Mcp23xxx+BusAdapter, Int32, Int32, GpioController)

protected Mcp23x0x (Iot.Device.Mcp23xxx.Mcp23xxx.BusAdapter device, int reset, int interrupt, System.Device.Gpio.GpioController masterController);
new Iot.Device.Mcp23xxx.Mcp23x0x : Iot.Device.Mcp23xxx.Mcp23xxx.BusAdapter * int * int * System.Device.Gpio.GpioController -> Iot.Device.Mcp23xxx.Mcp23x0x
Protected Sub New (device As Mcp23xxx.BusAdapter, reset As Integer, interrupt As Integer, masterController As GpioController)

Parameters

reset
Int32
interrupt
Int32
masterController
GpioController

Applies to

Mcp23x0x(Mcp23xxx+BusAdapter, Int32, Int32, GpioController, Boolean)

Constructs Mcp23x0x instance

protected Mcp23x0x (Iot.Device.Mcp23xxx.Mcp23xxx.BusAdapter device, int reset, int interrupt, System.Device.Gpio.GpioController? controller = default, bool shouldDispose = true);
new Iot.Device.Mcp23xxx.Mcp23x0x : Iot.Device.Mcp23xxx.Mcp23xxx.BusAdapter * int * int * System.Device.Gpio.GpioController * bool -> Iot.Device.Mcp23xxx.Mcp23x0x
Protected Sub New (device As Mcp23xxx.BusAdapter, reset As Integer, interrupt As Integer, Optional controller As GpioController = Nothing, Optional shouldDispose As Boolean = true)

Parameters

device
Mcp23xxx.BusAdapter

I2C device used to communicate with the device

reset
Int32

Reset pin

interrupt
Int32

Interrupt pin

controller
GpioController

GpioController related with reset and interrupt pins

shouldDispose
Boolean

True to dispose the Gpio Controller

Applies to