Table of Contents

Class Contact

Namespace
Pamoja.Gpio
Assembly
Pamoja.Gpio.dll

Builds contacts, inferring the line's type.

public static class Contact
Inheritance
Contact
Inherited Members

Methods

ActiveHigh<TLine>(TLine)

A contact that reads high when asserted.

public static Contact<TLine> ActiveHigh<TLine>(TLine line) where TLine : IInputLine

Parameters

line TLine

The line.

Returns

Contact<TLine>

The contact.

Type Parameters

TLine

The line the part is wired to.

ActiveLow<TLine>(TLine)

A contact that reads low when asserted, the wiring of a switch to ground with a pull-up.

public static Contact<TLine> ActiveLow<TLine>(TLine line) where TLine : IInputLine

Parameters

line TLine

The line.

Returns

Contact<TLine>

The contact.

Type Parameters

TLine

The line the part is wired to.