IDisplayControllerProvider Interface
Namespace: GHIElectronics.TinyCLR.Devices.Display.Provider · Assembly: GHIElectronics.TinyCLR.Devices.Display
Provider contract for a display controller.
public interface IDisplayControllerProvider : IDisposable
Methods
Enable()
void Enable()
Powers on the panel.
Disable()
void Disable()
Powers off the panel.
SetConfiguration(DisplayControllerSettings configuration)
void SetConfiguration(DisplayControllerSettings configuration)
Applies a configuration.
| Parameter | Type | Description |
|---|---|---|
configuration | DisplayControllerSettings |
DrawBuffer(int targetX, int targetY, int sourceX, int sourceY, int width, int height, int originalWidth, byte[] data, int offset)
void DrawBuffer(int targetX, int targetY, int sourceX, int sourceY, int width, int height, int originalWidth, byte[] data, int offset)
Blits a rectangle of pixel data to the panel.
| Parameter | Type | Description |
|---|---|---|
targetX | int | |
targetY | int | |
sourceX | int | |
sourceY | int | |
width | int | |
height | int | |
originalWidth | int | |
data | byte[] | |
offset | int |
DrawPixel(int x, int y, long color)
void DrawPixel(int x, int y, long color)
Sets a single pixel.
| Parameter | Type | Description |
|---|---|---|
x | int | |
y | int | |
color | long |
DrawString(string value)
void DrawString(string value)
Renders text via the controller's built-in text mode.
| Parameter | Type | Description |
|---|---|---|
value | string |