Mcp23018 Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Mcp23018(I2cDevice, Int32, Int32, Int32, GpioController) | |
Mcp23018(I2cDevice, Int32, Int32, Int32, GpioController, Boolean) |
Initializes a new instance of the Mcp23018 device. |
Mcp23018(I2cDevice, Int32, Int32, Int32, GpioController)
public Mcp23018 (System.Device.I2c.I2cDevice i2cDevice, int reset = -1, int interruptA = -1, int interruptB = -1, System.Device.Gpio.GpioController masterController = default);
new Iot.Device.Mcp23xxx.Mcp23018 : System.Device.I2c.I2cDevice * int * int * int * System.Device.Gpio.GpioController -> Iot.Device.Mcp23xxx.Mcp23018
Public Sub New (i2cDevice As I2cDevice, Optional reset As Integer = -1, Optional interruptA As Integer = -1, Optional interruptB As Integer = -1, Optional masterController As GpioController = Nothing)
Parameters
- i2cDevice
- I2cDevice
- reset
- Int32
- interruptA
- Int32
- interruptB
- Int32
- masterController
- GpioController
Applies to
Mcp23018(I2cDevice, Int32, Int32, Int32, GpioController, Boolean)
Initializes a new instance of the Mcp23018 device.
public Mcp23018 (System.Device.I2c.I2cDevice i2cDevice, int reset = -1, int interruptA = -1, int interruptB = -1, System.Device.Gpio.GpioController? controller = default, bool shouldDispose = true);
new Iot.Device.Mcp23xxx.Mcp23018 : System.Device.I2c.I2cDevice * int * int * int * System.Device.Gpio.GpioController * bool -> Iot.Device.Mcp23xxx.Mcp23018
Public Sub New (i2cDevice As I2cDevice, Optional reset As Integer = -1, Optional interruptA As Integer = -1, Optional interruptB As Integer = -1, Optional controller As GpioController = Nothing, Optional shouldDispose As Boolean = true)
Parameters
- i2cDevice
- I2cDevice
The I2C device used for communication.
- reset
- Int32
The output pin number that is connected to the hardware reset, if any. If specified the device will start in a disabled state.
- interruptA
- Int32
The input pin number that is connected to the interrupt for Port A (INTA), if any.
- interruptB
- Int32
The input pin number that is connected to the interrupt for Port B (INTB), if any.
- controller
- GpioController
The controller for the reset and interrupt pins. If not specified, the default controller will be used.
- shouldDispose
- Boolean
True to dispose the Gpio Controller
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for