Edit

Share via


Mcp23s17 Constructors

Definition

Overloads

Mcp23s17(SpiDevice, Int32, Int32, Int32, Int32, GpioController)
Mcp23s17(SpiDevice, Int32, Int32, Int32, Int32, GpioController, Boolean)

Initializes a new instance of the Mcp23s17 device.

Mcp23s17(SpiDevice, Int32, Int32, Int32, Int32, GpioController)

public Mcp23s17 (System.Device.Spi.SpiDevice spiDevice, int deviceAddress, int reset = -1, int interruptA = -1, int interruptB = -1, System.Device.Gpio.GpioController masterController = default);
new Iot.Device.Mcp23xxx.Mcp23s17 : System.Device.Spi.SpiDevice * int * int * int * int * System.Device.Gpio.GpioController -> Iot.Device.Mcp23xxx.Mcp23s17
Public Sub New (spiDevice As SpiDevice, deviceAddress As Integer, Optional reset As Integer = -1, Optional interruptA As Integer = -1, Optional interruptB As Integer = -1, Optional masterController As GpioController = Nothing)

Parameters

spiDevice
SpiDevice
deviceAddress
Int32
reset
Int32
interruptA
Int32
interruptB
Int32
masterController
GpioController

Applies to

Mcp23s17(SpiDevice, Int32, Int32, Int32, Int32, GpioController, Boolean)

Initializes a new instance of the Mcp23s17 device.

public Mcp23s17 (System.Device.Spi.SpiDevice spiDevice, int deviceAddress, int reset = -1, int interruptA = -1, int interruptB = -1, System.Device.Gpio.GpioController? controller = default, bool shouldDispose = true);
new Iot.Device.Mcp23xxx.Mcp23s17 : System.Device.Spi.SpiDevice * int * int * int * int * System.Device.Gpio.GpioController * bool -> Iot.Device.Mcp23xxx.Mcp23s17
Public Sub New (spiDevice As SpiDevice, deviceAddress As Integer, 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

spiDevice
SpiDevice

The SPI device used for communication.

deviceAddress
Int32

The device address for the connection on the SPI bus.

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