共用方式為


Mcp23x0x 建構函式

定義

多載

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

建構 Mcp23x0x 實例

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

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

參數

reset
Int32
interrupt
Int32
masterController
GpioController

適用於

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

建構 Mcp23x0x 實例

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

參數

device
Mcp23xxx.BusAdapter

用來與裝置通訊的 I2C 裝置

reset
Int32

重設針腳

interrupt
Int32

中斷針腳

controller
GpioController

GpioControllerresetinterrupt 針腳相關的

shouldDispose
Boolean

True 是表示 處置 Gpio 控制器

適用於