Table of Contents

Class Switch

Namespace
Pamoja.Gpio
Assembly
Pamoja.Gpio.dll

Builds switches, inferring the line's type.

public static class Switch
Inheritance
Switch
Inherited Members

Methods

ActiveHigh<TLine>(TLine)

A switch whose part is asserted by a high level.

public static Switch<TLine> ActiveHigh<TLine>(TLine line) where TLine : IOutputLine

Parameters

line TLine

The line.

Returns

Switch<TLine>

The switch.

Type Parameters

TLine

The line the part is wired to.

ActiveLow<TLine>(TLine)

A switch whose part is asserted by a low level, the wiring of most relay boards.

public static Switch<TLine> ActiveLow<TLine>(TLine line) where TLine : IOutputLine

Parameters

line TLine

The line.

Returns

Switch<TLine>

The switch.

Type Parameters

TLine

The line the part is wired to.