Mcp23s09 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Mcp23s09(SpiDevice, Int32, Int32, GpioController) | |
Mcp23s09(SpiDevice, Int32, Int32, GpioController, Boolean) |
初始化 Mcp23s09 裝置的新實例。 |
Mcp23s09(SpiDevice, Int32, Int32, GpioController)
public Mcp23s09 (System.Device.Spi.SpiDevice spiDevice, int reset = -1, int interrupt = -1, System.Device.Gpio.GpioController masterController = default);
new Iot.Device.Mcp23xxx.Mcp23s09 : System.Device.Spi.SpiDevice * int * int * System.Device.Gpio.GpioController -> Iot.Device.Mcp23xxx.Mcp23s09
Public Sub New (spiDevice As SpiDevice, Optional reset As Integer = -1, Optional interrupt As Integer = -1, Optional masterController As GpioController = Nothing)
參數
- spiDevice
- SpiDevice
- reset
- Int32
- interrupt
- Int32
- masterController
- GpioController
適用於
Mcp23s09(SpiDevice, Int32, Int32, GpioController, Boolean)
初始化 Mcp23s09 裝置的新實例。
public Mcp23s09 (System.Device.Spi.SpiDevice spiDevice, int reset = -1, int interrupt = -1, System.Device.Gpio.GpioController? controller = default, bool shouldDispose = true);
new Iot.Device.Mcp23xxx.Mcp23s09 : System.Device.Spi.SpiDevice * int * int * System.Device.Gpio.GpioController * bool -> Iot.Device.Mcp23xxx.Mcp23s09
Public Sub New (spiDevice As SpiDevice, Optional reset As Integer = -1, Optional interrupt As Integer = -1, Optional controller As GpioController = Nothing, Optional shouldDispose As Boolean = true)
參數
- spiDevice
- SpiDevice
用於通訊的 SPI 裝置。
- reset
- Int32
如果有的話,連接到硬體重設的輸出針腳編號。 如果指定,裝置將會處於停用狀態。
- interrupt
- Int32
如果有的話,連接到中斷的輸入針腳編號。
- controller
- GpioController
重設和中斷針腳的控制器。 如果未指定,則會使用預設控制器。
- shouldDispose
- Boolean
True 是表示 處置 Gpio 控制器