DisplayControllerApiWrapper Class
Namespace: GHIElectronics.TinyCLR.Devices.Display.Provider · Assembly: GHIElectronics.TinyCLR.Devices.Display
Concrete IDisplayControllerProvider backed by the native TinyCLR display HAL.
public sealed class DisplayControllerApiWrapper : IDisplayControllerProvider, IApiImplementation
Constructors
DisplayControllerApiWrapper(NativeApi api)
public DisplayControllerApiWrapper(NativeApi api)
Wraps the given native API as a provider.
| Parameter | Type | Description |
|---|---|---|
api | NativeApi |
Properties
Api
public NativeApi Api { get; }
The underlying native API descriptor.
Methods
Dispose()
public void Dispose()
Releases the native controller.
Enable()
public extern void Enable()
Re-enables interrupts after a matching Disable. (inherited)
Disable()
public extern void Disable()
Disables interrupts on the current core. Always pair with Enable. (inherited)
DrawBuffer(int targetX, int targetY, int sourceX, int sourceY, int width, int height, int originalWidth, byte[] data, int offset)
public extern 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. (inherited)
| 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)
public extern void DrawPixel(int x, int y, long color)
Sets a single pixel. (inherited)
| Parameter | Type | Description |
|---|---|---|
x | int | |
y | int | |
color | long |
DrawString(string value)
public extern void DrawString(string value)
Renders text via the controller's built-in text mode. (inherited)
| Parameter | Type | Description |
|---|---|---|
value | string |
SetConfiguration(DisplayControllerSettings configuration)
public void SetConfiguration(DisplayControllerSettings configuration)
Applies a configuration. (inherited)
| Parameter | Type | Description |
|---|---|---|
configuration | DisplayControllerSettings |