Sdílet prostřednictvím


Mcp23s18 Konstruktory

Definice

Přetížení

Mcp23s18(SpiDevice, Int32, Int32, Int32, GpioController)
Mcp23s18(SpiDevice, Int32, Int32, Int32, GpioController, Boolean)

Inicializuje novou instanci zařízení Mcp23s18.

Mcp23s18(SpiDevice, Int32, Int32, Int32, GpioController)

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

Parametry

spiDevice
SpiDevice
reset
Int32
interruptA
Int32
interruptB
Int32
masterController
GpioController

Platí pro

Mcp23s18(SpiDevice, Int32, Int32, Int32, GpioController, Boolean)

Inicializuje novou instanci zařízení Mcp23s18.

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

Parametry

spiDevice
SpiDevice

Zařízení SPI používané ke komunikaci.

reset
Int32

Výstupní pin číslo, které je připojeno k resetování hardwaru, pokud existuje. Pokud je zadáno, zařízení se spustí v zakázaném stavu.

interruptA
Int32

Vstupní pin číslo, které je připojeno k přerušení portu A (INTA), pokud existuje.

interruptB
Int32

Vstupní pin číslo, které je připojeno k přerušení portu B (INTB), pokud existuje.

controller
GpioController

Ovladač pro resetování a přerušení kolíků. Pokud není zadaný, použije se výchozí kontroler.

shouldDispose
Boolean

True pro odstranění kontroleru Gpio

Platí pro