共用方式為


Mcp23x1x 建構函式

定義

多載

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

建構 Mcp23x1x 實例

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

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

參數

reset
Int32
interruptA
Int32
interruptB
Int32
masterController
GpioController

適用於

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

建構 Mcp23x1x 實例

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

參數

device
Mcp23xxx.BusAdapter

用來與裝置通訊的 I2C 裝置

reset
Int32

重設針腳

interruptA
Int32

中斷針腳

interruptB
Int32

中斷 B 針腳

controller
GpioController

GpioControllerresetinterruptAinterruptB 針腳相關的

shouldDispose
Boolean

True 是表示 處置 Gpio 控制器

適用於