C# Класс Raspberry.IO.Components.Displays.Ssd1306.Ssd1306Connection

Represents a connection with an Ssd1306 I2C OLED display.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ActivateScroll ( ) : void

Activates the scroll.

ClearScreen ( ) : void

Clears the screen.

DeactivateScroll ( ) : void

Deactivates the scroll.

DrawImage ( byte image ) : void

Draws the image.

DrawText ( IFont font, string text ) : void

Draws the text.

GotoXY ( int column, int row ) : void

Sets the current cursor position to the specified column and row.

InvertDisplay ( ) : void

Inverts the display.

NormalDisplay ( ) : void

Sets the display to normal mode.

Off ( ) : void

Turns the display off.

On ( ) : void

Turns the display on.

SetContrast ( int contrast ) : void

Sets the contrast (brightness) of the display. Default is 127.

SetScrollProperties ( ScrollDirection direction, ScrollSpeed scrollSpeed, int startLine, int endLine ) : void

Sets the scroll properties.

Ssd1306Connection ( Raspberry.IO.InterIntegratedCircuit.I2cDeviceConnection connection, int displayWidth = 128, int displayHeight = 64 ) : System

Initializes a new instance of the Ssd1306Connection class.

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

Метод Описание
DrawStride ( byte data ) : void
Initialize ( ) : void
SendCommand ( ) : void

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

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

Activates the scroll.
public ActivateScroll ( ) : void
Результат void

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

Clears the screen.
public ClearScreen ( ) : void
Результат void

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

Deactivates the scroll.
public DeactivateScroll ( ) : void
Результат void

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

Draws the image.
public DrawImage ( byte image ) : void
image byte Image.
Результат void

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

Draws the text.
public DrawText ( IFont font, string text ) : void
font IFont Font.
text string Text.
Результат void

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

Sets the current cursor position to the specified column and row.
public GotoXY ( int column, int row ) : void
column int Column.
row int Row.
Результат void

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

Inverts the display.
public InvertDisplay ( ) : void
Результат void

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

Sets the display to normal mode.
public NormalDisplay ( ) : void
Результат void

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

Turns the display off.
public Off ( ) : void
Результат void

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

Turns the display on.
public On ( ) : void
Результат void

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

Sets the contrast (brightness) of the display. Default is 127.
public SetContrast ( int contrast ) : void
contrast int A number between 0 and 255. Contrast increases as the value increases.
Результат void

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

Sets the scroll properties.
public SetScrollProperties ( ScrollDirection direction, ScrollSpeed scrollSpeed, int startLine, int endLine ) : void
direction ScrollDirection Direction.
scrollSpeed ScrollSpeed Scroll speed.
startLine int Start line.
endLine int End line.
Результат void

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

Initializes a new instance of the Ssd1306Connection class.
public Ssd1306Connection ( Raspberry.IO.InterIntegratedCircuit.I2cDeviceConnection connection, int displayWidth = 128, int displayHeight = 64 ) : System
connection Raspberry.IO.InterIntegratedCircuit.I2cDeviceConnection The connection.
displayWidth int The display displayWidth.
displayHeight int The display displayHeight.
Результат System