Skip to main content

Class St7789

Represents a St7789 TFT color display

Assembly: TftSpi.dll
View Source
public class St7789 : TftSpiBase, IGraphicsDisplay, ISpiPeripheral, IDisposable, IRotatableDisplay

Inheritance: System.Object -> Meadow.Foundation.Displays.TftSpiBase

Implements:
Meadow.Foundation.Graphics.IGraphicsDisplay, Meadow.Hardware.ISpiPeripheral, System.IDisposable, Meadow.Foundation.Graphics.IRotatableDisplay

Properties

DefaultColorMode

The default display color mode

View Source
public override ColorMode DefaultColorMode { get; }

SupportedColorModes

The color modes supported by the display

View Source
public override ColorMode SupportedColorModes { get; }

DefaultSpiBusSpeed

SPI bus speed

View Source
public override Frequency DefaultSpiBusSpeed { get; }

DefaultSpiBusMode

The SPI bus mode for the device

View Source
public override SpiClockConfiguration.Mode DefaultSpiBusMode { get; }

Methods

Initialize()

Initialize the display

View Source
protected override void Initialize()

SetAddressWindow(int, int, int, int)

Set address window for display updates

View Source
protected override void SetAddressWindow(int x0, int y0, int x1, int y1)
Parameters
TypeNameDescription
System.Int32x0X start in pixels
System.Int32y0Y start in pixels
System.Int32x1X end in pixels
System.Int32y1Y end in pixels

SetRotation(RotationType)

Set the display rotation

View Source
public void SetRotation(RotationType rotation)
Parameters
TypeNameDescription
Meadow.Foundation.Graphics.RotationTyperotationThe rotation value

Implements