Skip to main content

Class Mcp23x0x.PinDefinitions

Pin definitions for 8 pin MCP IO expanders

Assembly: Mcp23xxx.dll
View Source
Declaration
public class Mcp23x0x.PinDefinitions : IPinDefinitions, IEnumerable<IPin>, IEnumerable

Implements:
Meadow.Hardware.IPinDefinitions, System.Collections.Generic.IEnumerable<Meadow.Hardware.IPin>, System.Collections.IEnumerable

Properties

Controller

The controller for the pins

View Source
Declaration
public IPinController? Controller { get; set; }

AllPins

List of pins

View Source
Declaration
public IList<IPin> AllPins { get; }

GP0

Pin GP0

View Source
Declaration
public IPin GP0 { get; }

GP1

Pin GP1

View Source
Declaration
public IPin GP1 { get; }

GP2

Pin GP2

View Source
Declaration
public IPin GP2 { get; }

GP3

Pin GP3

View Source
Declaration
public IPin GP3 { get; }

GP4

Pin GP4

View Source
Declaration
public IPin GP4 { get; }

GP5

Pin GP5

View Source
Declaration
public IPin GP5 { get; }

GP6

Pin GP6

View Source
Declaration
public IPin GP6 { get; }

GP7

Pin GP7

View Source
Declaration
public IPin GP7 { get; }

Methods

InitAllPins()

Initialize all pins

View Source
Declaration
protected void InitAllPins()

GetEnumerator()

Get Pins

View Source
Declaration
public IEnumerator<IPin> GetEnumerator()
Returns

System.Collections.Generic.IEnumerator<Meadow.Hardware.IPin>: IEnumerator of IPin with all pins

Implements

  • Meadow.Hardware.IPinDefinitions
  • System.Collections.Generic.IEnumerable<Meadow.Hardware.IPin>
  • System.Collections.IEnumerable