Mcp23x0x 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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)
參數
- device
- Mcp23xxx.BusAdapter
- 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
GpioController 與 reset
和 interrupt
針腳相關的
- shouldDispose
- Boolean
True 是表示 處置 Gpio 控制器