C# Class Microsoft.IoT.Devices.Display.SSD1306

A driver for the SSD1306 SPI display controller.
Inheritance: IDisposable, ISpiBasedDevice
Afficher le fichier Open project: jbienzms/iot-devices

Private Properties

Свойство Type Description
ClearBuffer void
EnsureInitializedAsync System.Threading.Tasks.Task
InitAllAsync System.Threading.Tasks.Task
InitBuffers void
InitDisplayAsync System.Threading.Tasks.Task
InitGpio void
InitSpiAsync System.Threading.Tasks.Task
SendCommand void
SendData void
SetAddressMode void
WriteBufferAsync System.Threading.Tasks.Task

Méthodes publiques

Méthode Description
ClearAsync ( ) : IAsyncAction

Clears the display.

Dispose ( ) : void
FlipAsync ( ) : IAsyncAction

Flips the display vertically.

MirrorAsync ( ) : IAsyncAction

Mirrors the display horizontally.

ResetAsync ( ) : IAsyncAction

Performs a hardware reset of the display

UpdateAsync ( ) : IAsyncAction

Updates the display by writing the display buffer.

WritePixelAsync ( int x, int y, Color color ) : IAsyncAction

Writes the specified pixel to the display.

Private Methods

Méthode Description
ClearBuffer ( ) : void

Clears the internal display buffer.

EnsureInitializedAsync ( ) : System.Threading.Tasks.Task

Ensures that the display has been initialized and can be updated.

InitAllAsync ( ) : System.Threading.Tasks.Task

Initializes GPIO, SPI, and the display

InitBuffers ( ) : void
InitDisplayAsync ( ) : System.Threading.Tasks.Task

Sends the SPI commands to power up and initialize the display

InitGpio ( ) : void

Initializes GPIO

InitSpiAsync ( ) : System.Threading.Tasks.Task

Initializes the SPI bus.

SendCommand ( byte command ) : void

Sends a command to the controller.

SendData ( byte data ) : void

Sends data to the controller.

SetAddressMode ( SSD1306AddressMode mode ) : void
WriteBufferAsync ( ) : System.Threading.Tasks.Task

Writes the buffer out to the physical display.

Method Details

ClearAsync() public méthode

Clears the display.
public ClearAsync ( ) : IAsyncAction
Résultat IAsyncAction

Dispose() public méthode

public Dispose ( ) : void
Résultat void

FlipAsync() public méthode

Flips the display vertically.
public FlipAsync ( ) : IAsyncAction
Résultat IAsyncAction

MirrorAsync() public méthode

Mirrors the display horizontally.
public MirrorAsync ( ) : IAsyncAction
Résultat IAsyncAction

ResetAsync() public méthode

Performs a hardware reset of the display
public ResetAsync ( ) : IAsyncAction
Résultat IAsyncAction

UpdateAsync() public méthode

Updates the display by writing the display buffer.
public UpdateAsync ( ) : IAsyncAction
Résultat IAsyncAction

WritePixelAsync() public méthode

Writes the specified pixel to the display.
public WritePixelAsync ( int x, int y, Color color ) : IAsyncAction
x int /// The x location of the pixel. ///
y int /// The y location of the pixel. ///
color Color /// The color of the pixel. ///
Résultat IAsyncAction