A mono (on/off) graphic display comprised of LEDs
More...
|
| override Task | flush () |
| | Write out all the pixels' values to the corresponding LEDs More...
|
| |
| override void | setBrightness (double brightness) |
| | Set the global brightness of the display More...
|
| |
|
| LedCollection | Leds [get] |
| | The collection of LEDs to use, ordered by column and in ascending row More...
|
| |
| bool [,] | PixelBuffer [get, set] |
| | The raw byte buffer used by the display in its native format More...
|
| |
| int | Columns [get] |
| |
| int | Rows [get] |
| |
| int | CursorLeft [get, set] |
| |
| int | CursorTop [get, set] |
| |
| int | Height [get, protected set] |
| | The height of the display, in pixels More...
|
| |
| int | Width [get, protected set] |
| | The width of the display, in pixels. More...
|
| |
| byte [] | RawBuffer [get, protected set] |
| | The raw byte buffer used by the display in its native format More...
|
| |
| double | Brightness [get, set] |
| | Gets or sets the global brightness of the display More...
|
| |
| bool | AutoFlush = true [get, set] |
| |
| IFlushable | Parent [get] |
| |
A mono (on/off) graphic display comprised of LEDs
◆ LedGraphicDisplay()
Construct a new LED graphic display
- Parameters
-
| leds | The LEDs to use with this display |
| width | The number of LEDs wide this display is |
| height | THe number of LEDs tall this display is |
◆ WriteLeds()
◆ flush()
Write out all the pixels' values to the corresponding LEDs
- Returns
- An awaitable task
Implements GraphicDisplay.
◆ setBrightness()
| override void setBrightness |
( |
double |
brightness | ) |
|
|
protectedvirtual |
Set the global brightness of the display
- Parameters
-
| brightness | The brightness, from 0-1, to set |
Note that this function will write out this brightness setting to all underlying controllers; if the controller doesn't support brightness control, this setting is ignored.
Implements GraphicDisplay.
◆ SetCursorPosition()
| async Task SetCursorPosition |
( |
int |
left, |
|
|
int |
top |
|
) |
| |
|
inherited |
Set left/right cursor position
- Parameters
-
| left | The left position |
| top | The top position |
- Returns
- An awaitable task that completes once the cursor is updated
Implements ICharacterDisplay.
◆ SetPixel()
| void SetPixel |
( |
int |
row, |
|
|
int |
column, |
|
|
bool |
state |
|
) |
| |
|
inherited |
Set a pixel's state.
You must explicitly flush to the display to write out the changes.
- Parameters
-
| row | The row of the pixel |
| column | The column of the pixel |
| state | Whether the pixel should be on or off |
◆ Write()
| async Task Write |
( |
dynamic |
value | ) |
|
|
inherited |
Display an alphanumeric value using a 5x7 font at the given character column and row
- Parameters
-
| value | The alphanumeric value to use |
- Returns
- An awaitable task that will finish upon completion
This method is used for quickly rendering fixed-size sharp, monospaced text on a monochrome graphic display, allowing these displays to be dropped into a project in place of a (usually more costly and older) character display. If you want control over the size and font family used to display the text, use the extremely extensible System.Drawing.Graphics class.
If you want control over
Implements ICharacterDisplay.
◆ WriteLine()
| async Task WriteLine |
( |
dynamic |
value | ) |
|
|
inherited |
Write a line of text, advancing the cursor to the next line
- Parameters
-
- Returns
- An awaitable task that completes when finished
Implements ICharacterDisplay.
◆ Clear()
Clear the display
- Returns
- An awaitable task
Reimplemented from GraphicDisplay.
◆ FlushAsync()
| Task FlushAsync |
( |
bool |
force = false | ) |
|
|
inherited |
Flush changed data to the port expander
- Parameters
-
| force | whether to flush all data to the port expander, even if it doesn't appear to have been changed |
Implements IFlushable.
◆ Leds
The collection of LEDs to use, ordered by column and in ascending row
◆ PixelBuffer
The raw byte buffer used by the display in its native format
The format of this raw buffer depends on the particular implementation of this class
◆ Columns
◆ Rows
◆ CursorLeft
◆ CursorTop
◆ Height
|
|
getprotected setinherited |
The height of the display, in pixels
◆ Width
|
|
getprotected setinherited |
The width of the display, in pixels.
◆ RawBuffer
|
|
getprotected setinherited |
The raw byte buffer used by the display in its native format
The format of this raw buffer depends on the particular implementation of this class
◆ Brightness
Gets or sets the global brightness of the display
◆ AutoFlush
◆ Parent
The documentation for this class was generated from the following file: