Class Mcp23009
Driver for the Microchip MCP23009 8-Bit I/O Expander with Open-Drain Outputs.
public class Mcp23009 : Mcp23x0x
- Inheritance
-
GpioDriverMcp23009
- Inherited Members
Constructors
Mcp23009(I2cDevice, int, int, GpioController?, bool)
Initializes a new instance of the Mcp23009 device.
public Mcp23009(I2cDevice i2cDevice, int reset = -1, int interrupt = -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.
interrupt
intThe input pin number that is connected to the interrupt, 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