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

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

Private Properties

Property 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

Public Methods

Method 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

Method 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 method

Clears the display.
public ClearAsync ( ) : IAsyncAction
return IAsyncAction

Dispose() public method

public Dispose ( ) : void
return void

FlipAsync() public method

Flips the display vertically.
public FlipAsync ( ) : IAsyncAction
return IAsyncAction

MirrorAsync() public method

Mirrors the display horizontally.
public MirrorAsync ( ) : IAsyncAction
return IAsyncAction

ResetAsync() public method

Performs a hardware reset of the display
public ResetAsync ( ) : IAsyncAction
return IAsyncAction

UpdateAsync() public method

Updates the display by writing the display buffer.
public UpdateAsync ( ) : IAsyncAction
return IAsyncAction

WritePixelAsync() public method

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. ///
return IAsyncAction