C# Класс Microsoft.IoT.Devices.Display.SSD1306

A driver for the SSD1306 SPI display controller.
Наследование: IDisposable, ISpiBasedDevice
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
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

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

ClearAsync() публичный Метод

Clears the display.
public ClearAsync ( ) : IAsyncAction
Результат IAsyncAction

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

FlipAsync() публичный Метод

Flips the display vertically.
public FlipAsync ( ) : IAsyncAction
Результат IAsyncAction

MirrorAsync() публичный Метод

Mirrors the display horizontally.
public MirrorAsync ( ) : IAsyncAction
Результат IAsyncAction

ResetAsync() публичный Метод

Performs a hardware reset of the display
public ResetAsync ( ) : IAsyncAction
Результат IAsyncAction

UpdateAsync() публичный Метод

Updates the display by writing the display buffer.
public UpdateAsync ( ) : IAsyncAction
Результат IAsyncAction

WritePixelAsync() публичный Метод

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. ///
Результат IAsyncAction