|
Treehopper C# API
|
A display comprised of one or more SevenSegment characters More...
Public Member Functions | |
| SevenSegmentDisplay (IList< Led > Leds, bool rightToLeftDigits=false) | |
| Construct a SevenSegment display from a list of LEDs. More... | |
| SevenSegmentDisplay (IList< SevenSegmentDigit > Digits) | |
| Construct a SevenSegmentDisplay from a collection of already-created digits More... | |
| Task | SetCursorPosition (int left, int top) |
| Set left/right cursor position More... | |
| Task | WriteLine (dynamic value) |
| Write a line of text, advancing the cursor to the next line More... | |
| async Task | Write (dynamic value) |
| Write text More... | |
| Task | Clear () |
| Clear the display and reset the cursor to (0,0) More... | |
Protected Member Functions | |
| override async Task | clear () |
| clear the display More... | |
| override async Task | updateCursorPosition () |
| update the cursor position More... | |
| override Task | write (dynamic value) |
| write a value to the current position of the display More... | |
Properties | |
| dynamic | Text [get, set] |
| Gets or sets the currently-displayed text. More... | |
| bool | LeftAlignt [get, set] |
| Controls whether the display should be left-aligned or not. More... | |
| Collection< string > | History = new Collection<string>() [get] |
| History of previously-written lines from the display More... | |
| Collection< string > | Lines = new Collection<string>() [get] |
| Current lines of the display More... | |
| int | Columns [get] |
| Number of columns of the display More... | |
| int | Rows [get] |
| Number of rows of the display More... | |
| int | CursorLeft [get, set] |
| Cursor left position More... | |
| int | CursorTop [get, set] |
| Cursor top position More... | |
A display comprised of one or more SevenSegment characters
| SevenSegmentDisplay | ( | IList< Led > | Leds, |
| bool | rightToLeftDigits = false |
||
| ) |
Construct a SevenSegment display from a list of LEDs.
| Leds | The list of LEDs to use |
| rightToLeftDigits | Whether the digits are right-to-left digits |
| SevenSegmentDisplay | ( | IList< SevenSegmentDigit > | Digits | ) |
Construct a SevenSegmentDisplay from a collection of already-created digits
| Digits |
|
protectedvirtual |
clear the display
Implements CharacterDisplay.
|
protectedvirtual |
update the cursor position
Implements CharacterDisplay.
|
protectedvirtual |
write a value to the current position of the display
| value | the value to write |
Implements CharacterDisplay.
|
inherited |
Set left/right cursor position
| left | The left position |
| top | The top position |
Implements ICharacterDisplay.
|
inherited |
Write a line of text, advancing the cursor to the next line
| value | the text to write |
Implements ICharacterDisplay.
|
inherited |
Write text
| value | the text to write |
Implements ICharacterDisplay.
|
inherited |
Clear the display and reset the cursor to (0,0)
Implements ICharacterDisplay.
|
getset |
Gets or sets the currently-displayed text.
|
getset |
Controls whether the display should be left-aligned or not.
|
getinherited |
History of previously-written lines from the display
|
getinherited |
Current lines of the display
|
getinherited |
Number of columns of the display
|
getinherited |
Number of rows of the display
|
getsetinherited |
Cursor left position
|
getsetinherited |
Cursor top position