Skip to main content

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.

ParameterTypeDescription
apiNativeApi

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)

ParameterTypeDescription
targetXint
targetYint
sourceXint
sourceYint
widthint
heightint
originalWidthint
databyte[]
offsetint

DrawPixel(int x, int y, long color)

public extern void DrawPixel(int x, int y, long color)

Sets a single pixel. (inherited)

ParameterTypeDescription
xint
yint
colorlong

DrawString(string value)

public extern void DrawString(string value)

Renders text via the controller's built-in text mode. (inherited)

ParameterTypeDescription
valuestring

SetConfiguration(DisplayControllerSettings configuration)

public void SetConfiguration(DisplayControllerSettings configuration)

Applies a configuration. (inherited)

ParameterTypeDescription
configurationDisplayControllerSettings