|
Treehopper C# API
|
A class representing pixel-addressed displays More...
Public Member Functions | |
| GraphicDisplay (int Width, int Height, double bytesPerPixel) | |
| Construct a graphic display of given width and height More... | |
| Task | FlushAsync (bool force=false) |
| Flush changed data to the port expander More... | |
| virtual Task | Clear () |
| Clear the display More... | |
Protected Member Functions | |
| abstract void | setBrightness (double brightness) |
| Sets the global brightness of the graphic display More... | |
| abstract Task | flush () |
| Flush any updates to the RawBuffer to the display More... | |
Properties | |
| 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 class representing pixel-addressed displays
| GraphicDisplay | ( | int | Width, |
| int | Height, | ||
| double | bytesPerPixel | ||
| ) |
Construct a graphic display of given width and height
| Width | The width, in pixels, of the display |
| Height | The height, in pixels, of the display |
| bytesPerPixel | The number of bytes per row (stride) of the display |
| Task FlushAsync | ( | bool | force = false | ) |
Flush changed data to the port expander
| force | whether to flush all data to the port expander, even if it doesn't appear to have been changed |
Implements IFlushable.
|
virtual |
|
protectedpure virtual |
Sets the global brightness of the graphic display
| brightness | The brightness of the display |
Implemented in Ssd1306, LedGraphicDisplay, and Pcd8544.
|
protectedpure virtual |
Flush any updates to the RawBuffer to the display
Internal function called by the implementation to flush the RawBuffer to the display
Implemented in Ssd1306, LedGraphicDisplay, and Pcd8544.
|
getprotected set |
The height of the display, in pixels
|
getprotected set |
The width of the display, in pixels.
|
getprotected set |
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
|
getset |
Gets or sets the global brightness of the display
|
getset |
|
get |