Class Mcp23017
Driver for the Microchip MCP23017 16-Bit I/O Expander with Serial Interface.
public class Mcp23017 : Mcp23x1x
- Inheritance
-
GpioDriverMcp23017
- Inherited Members
Constructors
Mcp23017(I2cDevice, int, int, int, GpioController?, bool)
Initializes a new instance of the Mcp23017 device.
public Mcp23017(I2cDevice i2cDevice, int reset = -1, int interruptA = -1, int interruptB = -1, GpioController? controller = null, bool shouldDispose = true)
Parameters
i2cDevice
I2cDeviceThe I2C device used for communication.
reset
intThe output pin number that is connected to the hardware reset, if any. If specified the device will start in a disabled state.
interruptA
intThe input pin number that is connected to the interrupt for Port A (INTA), if any.
interruptB
intThe input pin number that is connected to the interrupt for Port B (INTB), if any.
controller
GpioControllerThe controller for the reset and interrupt pins. If not specified, the default controller will be used.
shouldDispose
boolTrue to dispose the Gpio Controller