Table of Contents

Class GraphicDriver

Namespace
nanoFramework.UI
Assembly
nanoFramework.Graphics.dll

The generic graphic driver.

public class GraphicDriver
Inheritance
GraphicDriver
Inherited Members
Extension Methods

Constructors

GraphicDriver()

public GraphicDriver()

Properties

BitsPerPixel

Gets or sets the bits per pixel of the driver, it does override the Screen one if specified.

public byte BitsPerPixel { get; set; }

Property Value

byte

Brightness

Gets or sets the Brighness command.

public byte Brightness { get; set; }

Property Value

byte

Clear

Gets or sets the Clear command. If not specified, a default behavior will apply with a manual feel of the screen.

public byte[] Clear { get; set; }

Property Value

byte[]

Remarks

See GraphicDriverCommandType for more information. Format is the following: (byte)GraphicDriverCommandType.Command, N, n0, n1..., nN-1, where N is the number of bytes to send and n0, n1, ..., nN-1 are the bytes to send. (byte)GraphicDriverCommandType.Sleep, T, where T is the time to sleep in 10 of milliseconds.

DefaultOrientation

Gets or sets the default orientation.

public DisplayOrientation DefaultOrientation { get; set; }

Property Value

DisplayOrientation

Height

Gets or sets the height of the driver, it does override the Screen one if specified.

public uint Height { get; set; }

Property Value

uint

InitializationSequence

Gets or sets the initialization sequence of the driver.

public byte[] InitializationSequence { get; set; }

Property Value

byte[]

Remarks

See GraphicDriverCommandType for more information. Format is the following: (byte)GraphicDriverCommandType.Command, N, n0, n1..., nN-1, where N is the number of bytes to send and n0, n1, ..., nN-1 are the bytes to send. (byte)GraphicDriverCommandType.Sleep, T, where T is the time to sleep in 10 of milliseconds.

MemoryWrite

Gets or sets the Memory Write command.

public byte MemoryWrite { get; set; }

Property Value

byte

OrientationLandscape

Gets or sets the Orientation Landscape command. If not specifyed, nothing will be applied.

public byte[] OrientationLandscape { get; set; }

Property Value

byte[]

Remarks

See GraphicDriverCommandType for more information. Format is the following: (byte)GraphicDriverCommandType.Command, N, n0, n1..., nN-1, where N is the number of bytes to send and n0, n1, ..., nN-1 are the bytes to send. (byte)GraphicDriverCommandType.Sleep, T, where T is the time to sleep in 10 of milliseconds.

OrientationLandscape180

Gets or sets the Orientation Landscape 180 command. If not specifyed, nothing will be applied.

public byte[] OrientationLandscape180 { get; set; }

Property Value

byte[]

Remarks

See GraphicDriverCommandType for more information. Format is the following: (byte)GraphicDriverCommandType.Command, N, n0, n1..., nN-1, where N is the number of bytes to send and n0, n1, ..., nN-1 are the bytes to send. (byte)GraphicDriverCommandType.Sleep, T, where T is the time to sleep in 10 of milliseconds.

OrientationPortrait

Gets or sets the Orientation Portrait command. If not specifyed, nothing will be applied.

public byte[] OrientationPortrait { get; set; }

Property Value

byte[]

Remarks

See GraphicDriverCommandType for more information. Format is the following: (byte)GraphicDriverCommandType.Command, N, n0, n1..., nN-1, where N is the number of bytes to send and n0, n1, ..., nN-1 are the bytes to send. (byte)GraphicDriverCommandType.Sleep, T, where T is the time to sleep in 10 of milliseconds.

OrientationPortrait180

Gets or sets the Orientation Portrait 180 command. If not specifyed, nothing will be applied.

public byte[] OrientationPortrait180 { get; set; }

Property Value

byte[]

Remarks

See GraphicDriverCommandType for more information. Format is the following: (byte)GraphicDriverCommandType.Command, N, n0, n1..., nN-1, where N is the number of bytes to send and n0, n1, ..., nN-1 are the bytes to send. (byte)GraphicDriverCommandType.Sleep, T, where T is the time to sleep in 10 of milliseconds.

PowerModeNormal

Gets or sets the Power Mode Normal command.

public byte[] PowerModeNormal { get; set; }

Property Value

byte[]

Remarks

See GraphicDriverCommandType for more information. Format is the following: (byte)GraphicDriverCommandType.Command, N, n0, n1..., nN-1, where N is the number of bytes to send and n0, n1, ..., nN-1 are the bytes to send. (byte)GraphicDriverCommandType.Sleep, T, where T is the time to sleep in 10 of milliseconds.

PowerModeSleep

Gets or sets the Power Mode Sleep command.

public byte[] PowerModeSleep { get; set; }

Property Value

byte[]

Remarks

See GraphicDriverCommandType for more information. Format is the following: (byte)GraphicDriverCommandType.Command, N, n0, n1..., nN-1, where N is the number of bytes to send and n0, n1, ..., nN-1 are the bytes to send. (byte)GraphicDriverCommandType.Sleep, T, where T is the time to sleep in 10 of milliseconds.

SetColumnAddress

Gets or sets the Set Column Address command.

public byte SetColumnAddress { get; set; }

Property Value

byte

SetRowAddress

Gets or sets the Set Row Address command.

public byte SetRowAddress { get; set; }

Property Value

byte

SetWindowType

Gets or sets the Set Windowing type.

public SetWindowType SetWindowType { get; set; }

Property Value

SetWindowType

Width

Gets or sets the width of the driver, it does override the Screen one if specified.

public uint Width { get; set; }

Property Value

uint