Skip to main content

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.

ParameterTypeDescription
configurationDisplayControllerSettings

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.

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

DrawPixel(int x, int y, long color)

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

Sets a single pixel.

ParameterTypeDescription
xint
yint
colorlong

DrawString(string value)

void DrawString(string value)

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

ParameterTypeDescription
valuestring