Treehopper C# API
ShiftOutPin Class Reference

A digital output pin part of a shift register output More...

Inheritance diagram for ShiftOutPin:
DigitalOut DigitalBase

Public Member Functions

async Task MakeDigitalPushPullOutAsync ()
 Make the pin a push-pull output. More...
 
async Task ToggleOutputAsync ()
 Toggle the output More...
 

Properties

int BitNumber [get, protected set]
 The bit number, 0-n, of the n-bit output. More...
 
bool DigitalValue [get, set]
 Gets or sets the digital value of the pin. More...
 

Detailed Description

A digital output pin part of a shift register output

Member Function Documentation

◆ MakeDigitalPushPullOutAsync()

async Task MakeDigitalPushPullOutAsync ( )

Make the pin a push-pull output.

This function has no effect, since all ShiftOut pins are always push-pull outputs.

Implements DigitalOut.

◆ ToggleOutputAsync()

async Task ToggleOutputAsync ( )

Toggle the output

Implements DigitalOut.

Property Documentation

◆ BitNumber

int BitNumber
getprotected set

The bit number, 0-n, of the n-bit output.

◆ DigitalValue

bool DigitalValue
getset

Gets or sets the digital value of the pin.

Since this is an output-only pin, getting its value will return the current state of the output.


The documentation for this class was generated from the following file: