Class Ssd1351
Represents a Ssd1351 TFT color display
Assembly: TftSpi.dll
View Source
Declaration
public class Ssd1351 : TftSpiBase, IPixelDisplay, IDisplay, ISpiPeripheral, IDisposable
Inheritance: System.Object
-> Meadow.Foundation.Displays.TftSpiBase
Implements:
Meadow.Peripherals.Displays.IPixelDisplay
, Meadow.Peripherals.Displays.IDisplay
, Meadow.Hardware.ISpiPeripheral
, System.IDisposable
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; }
Methods
Initialize()
Initialize the display
View Source
Declaration
protected override void Initialize()
SetAddressWindow(int, int, int, int)
Set address window to update
View Source
Declaration
protected override void SetAddressWindow(int x0, int y0, int x1, int y1)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x0 | Start x position in pixels |
System.Int32 | y0 | End x position in pixels |
System.Int32 | x1 | Start y position in pixels |
System.Int32 | y1 | End y position in pixels |
InvertDisplay(bool)
Invert the display
View Source
Declaration
public void InvertDisplay(bool invert)
Parameters
Type | Name |
---|---|
System.Boolean | invert |
Implements
Meadow.Peripherals.Displays.IPixelDisplay
Meadow.Peripherals.Displays.IDisplay
Meadow.Hardware.ISpiPeripheral
System.IDisposable