次の方法で共有


Mcp23s08 コンストラクター

定義

オーバーロード

Mcp23s08(SpiDevice, Int32, Int32, Int32, GpioController)
Mcp23s08(SpiDevice, Int32, Int32, Int32, GpioController, Boolean)

Mcp23s08 デバイスの新しいインスタンスを初期化します。

Mcp23s08(SpiDevice, Int32, Int32, Int32, GpioController)

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

パラメーター

spiDevice
SpiDevice
deviceAddress
Int32
reset
Int32
interrupt
Int32
masterController
GpioController

適用対象

Mcp23s08(SpiDevice, Int32, Int32, Int32, GpioController, Boolean)

Mcp23s08 デバイスの新しいインスタンスを初期化します。

public Mcp23s08 (System.Device.Spi.SpiDevice spiDevice, int deviceAddress, int reset = -1, int interrupt = -1, System.Device.Gpio.GpioController? controller = default, bool shouldDispose = true);
new Iot.Device.Mcp23xxx.Mcp23s08 : System.Device.Spi.SpiDevice * int * int * int * System.Device.Gpio.GpioController * bool -> Iot.Device.Mcp23xxx.Mcp23s08
Public Sub New (spiDevice As SpiDevice, deviceAddress As Integer, Optional reset As Integer = -1, Optional interrupt As Integer = -1, Optional controller As GpioController = Nothing, Optional shouldDispose As Boolean = true)

パラメーター

spiDevice
SpiDevice

通信に使用される SPI デバイス。

deviceAddress
Int32

SPI バス上の接続のデバイス アドレス。

reset
Int32

ハードウェア リセットに接続されている出力ピン番号 (存在する場合)。 指定した場合、デバイスは無効な状態で起動します。

interrupt
Int32

割り込みに接続されている入力ピン番号 (存在する場合)。

controller
GpioController

リセットおよび割り込みピンのコントローラー。 指定しない場合は、既定のコントローラーが使用されます。

shouldDispose
Boolean

True を指定すると、Gpio コントローラーが破棄されます

適用対象