Treehopper C# API
SevenSegmentDigit Class Reference

Represents a single Seven-Segment digit, comprised of 7 LEDs, plus a decimal point LED More...

Public Member Functions

 SevenSegmentDigit (IList< Led > leds)
 Construct a Seven-Segment digit with the specified list of LEDs More...
 
async Task Flush (bool force=false)
 Flush display data to the driver More...
 

Properties

IList< LedLeds [get, protected set]
 The LEDs that comprise this digit More...
 
char Character [get, set]
 Gets or sets the currently-displayed character More...
 
bool AutoFlush = true [get, set]
 Gets or sets whether to automatically flush data to the board More...
 
bool DecimalPoint [get, set]
 Gets or sets whether the decimal point is illuminated More...
 

Detailed Description

Represents a single Seven-Segment digit, comprised of 7 LEDs, plus a decimal point LED

Constructor & Destructor Documentation

◆ SevenSegmentDigit()

SevenSegmentDigit ( IList< Led leds)

Construct a Seven-Segment digit with the specified list of LEDs

Parameters
ledsThe LEDs to use for this digit

Member Function Documentation

◆ Flush()

async Task Flush ( bool  force = false)

Flush display data to the driver

Parameters
forceForce a full update, even if data doesn't appear to have changed.

Property Documentation

◆ Leds

IList<Led> Leds
getprotected set

The LEDs that comprise this digit

◆ Character

char Character
getset

Gets or sets the currently-displayed character

◆ AutoFlush

bool AutoFlush = true
getset

Gets or sets whether to automatically flush data to the board

◆ DecimalPoint

bool DecimalPoint
getset

Gets or sets whether the decimal point is illuminated


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