Class St7789
Represents a St7789 TFT color display
Assembly: TftSpi.dll
View Source
Declaration
public class St7789 : TftSpiBase, IPixelDisplay, IDisplay, ISpiPeripheral, IDisposable, IRotatableDisplay
Inheritance: System.Object
-> Meadow.Foundation.Displays.TftSpiBase
Implements:
Meadow.Peripherals.Displays.IPixelDisplay
, Meadow.Peripherals.Displays.IDisplay
, Meadow.Hardware.ISpiPeripheral
, System.IDisposable
, Meadow.Peripherals.Displays.IRotatableDisplay
Properties
DefaultColorMode
The default display color mode
View Source
Declaration
public override ColorMode DefaultColorMode { get; }
SupportedColorModes
The color modes supported by the display
View Source
Declaration
public override ColorMode SupportedColorModes { get; }
DefaultSpiBusSpeed
SPI bus speed
View Source
Declaration
public override Frequency DefaultSpiBusSpeed { get; }
DefaultSpiBusMode
The SPI bus mode for the device
View Source
Declaration
public override SpiClockConfiguration.Mode DefaultSpiBusMode { get; }
Methods
Initialize()
Initialize the display
View Source
Declaration
protected override void Initialize()
SetAddressWindow(int, int, int, int)
Set address window for display updates
View Source
Declaration
protected override void SetAddressWindow(int x0, int y0, int x1, int y1)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x0 | X start in pixels |
System.Int32 | y0 | Y start in pixels |
System.Int32 | x1 | X end in pixels |
System.Int32 | y1 | Y end in pixels |
SetRotation(RotationType)
Set the display rotation
View Source
Declaration
public void SetRotation(RotationType rotation)
Parameters
Type | Name | Description |
---|---|---|
Meadow.Peripherals.Displays.RotationType | rotation | The rotation value |
Implements
Meadow.Peripherals.Displays.IPixelDisplay
Meadow.Peripherals.Displays.IDisplay
Meadow.Hardware.ISpiPeripheral
System.IDisposable
Meadow.Peripherals.Displays.IRotatableDisplay