|
Treehopper C# API
|
Represents displays that can print strings of alphanumeric characters on one or more lines More...
Public Member Functions | |
| CharacterDisplay (int Columns, int Rows) | |
| Construct a character display 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 | |
| abstract Task | clear () |
| Clear the display. More... | |
| abstract Task | updateCursorPosition () |
| internally updates the current cursor position More... | |
| abstract Task | write (dynamic value) |
| write text at the current cursor position More... | |
Properties | |
| 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... | |
Represents displays that can print strings of alphanumeric characters on one or more lines
| CharacterDisplay | ( | int | Columns, |
| int | Rows | ||
| ) |
Construct a character display
| Columns | Number of columns |
| Rows | Number of rows |
| Task SetCursorPosition | ( | int | left, |
| int | top | ||
| ) |
Set left/right cursor position
| left | The left position |
| top | The top position |
Implements ICharacterDisplay.
| Task WriteLine | ( | dynamic | value | ) |
Write a line of text, advancing the cursor to the next line
| value | the text to write |
Implements ICharacterDisplay.
| async Task Write | ( | dynamic | value | ) |
Write text
| value | the text to write |
Implements ICharacterDisplay.
| Task Clear | ( | ) |
Clear the display and reset the cursor to (0,0)
Implements ICharacterDisplay.
|
protectedpure virtual |
Clear the display.
The driver is expected to reset the cursor to home
Implemented in Hd44780, and SevenSegmentDisplay.
|
protectedpure virtual |
internally updates the current cursor position
Implemented in Hd44780, and SevenSegmentDisplay.
|
protectedpure virtual |
write text at the current cursor position
| value | the data to write |
Implemented in Hd44780, and SevenSegmentDisplay.
|
get |
History of previously-written lines from the display
|
get |
Current lines of the display
|
get |
Number of columns of the display
|
get |
Number of rows of the display
|
getset |
Cursor left position
|
getset |
Cursor top position