Table of Contents

Class Mcp23x0x

Namespace
Iot.Device.Mcp23xxx
Assembly
Iot.Device.Mcp23xxx.dll

Wraps 8-bit MCP I/O expanders.

public abstract class Mcp23x0x : Mcp23xxx
Inheritance
GpioDriver
Mcp23x0x
Derived
Inherited Members

Constructors

Mcp23x0x(BusAdapter, int, int, GpioController?, bool)

Constructs Mcp23x0x instance

protected Mcp23x0x(Mcp23xxx.BusAdapter device, int reset, int interrupt, GpioController? controller = null, bool shouldDispose = true)

Parameters

device Mcp23xxx.BusAdapter

I2C device used to communicate with the device

reset int

Reset pin

interrupt int

Interrupt pin

controller GpioController

GpioController related with reset and interrupt pins

shouldDispose bool

True to dispose the Gpio Controller

Properties

PinCount

The number of pins provided by the driver.

protected override int PinCount { get; }

Property Value

int