GpioOutputSegment Class

Definition

IOutputSegment implementation that uses GpioController.

C#
public class GpioOutputSegment : IDisposable, Iot.Device.Multiplexing.IOutputSegment
Inheritance
GpioOutputSegment
Implements

Constructors

GpioOutputSegment(Int32[], GpioController, Boolean)

IOutputSegment implementation that uses GpioController.

Properties

Item[Int32]

Segment values.

Length

The length of the segment; the number of GPIO pins it exposes.

Methods

Display(CancellationToken)

Displays current state of segment. Segment is displayed at least until token receives a cancellation signal, possibly due to a specified duration expiring.

DisplayAsync(CancellationToken)

Displays current state of segment. Segment is displayed at least until token receives a cancellation signal, possibly due to a specified duration expiring.

Dispose()

Disposes the underlying GpioController.

TurnOffAll()

Writes a byte to the underlying GpioController.

Write(Byte)

Writes discrete underlying bits to a virtual segment. Writes each bit, left to right. Least significant bit will written to index 0. Does not display output.

Write(Int32, PinValue)

Writes a PinValue to a virtual segment. Does not display output.

Write(ReadOnlySpan<Byte>)

Writes discrete underlying bits to a virtual segment. Writes each byte, left to right. Least significant bit will written to index 0. Does not display output.

Applies to

Toode Versioonid
.NET IoT Libraries 1.4.0, 1.5.0, 2.0.0, 2.1.0, 2.2.0