C# Class Raspberry.IO.Components.Displays.Ssd1306.Ssd1306Connection

Represents a connection with an Ssd1306 I2C OLED display.
Afficher le fichier Open project: raspberry-sharp/raspberry-sharp-io Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
DrawStride ( byte data ) : void
Initialize ( ) : void
SendCommand ( ) : void

Method Details

ActivateScroll() public méthode

Activates the scroll.
public ActivateScroll ( ) : void
Résultat void

ClearScreen() public méthode

Clears the screen.
public ClearScreen ( ) : void
Résultat void

DeactivateScroll() public méthode

Deactivates the scroll.
public DeactivateScroll ( ) : void
Résultat void

DrawImage() public méthode

Draws the image.
public DrawImage ( byte image ) : void
image byte Image.
Résultat void

DrawText() public méthode

Draws the text.
public DrawText ( IFont font, string text ) : void
font IFont Font.
text string Text.
Résultat void

GotoXY() public méthode

Sets the current cursor position to the specified column and row.
public GotoXY ( int column, int row ) : void
column int Column.
row int Row.
Résultat void

InvertDisplay() public méthode

Inverts the display.
public InvertDisplay ( ) : void
Résultat void

NormalDisplay() public méthode

Sets the display to normal mode.
public NormalDisplay ( ) : void
Résultat void

Off() public méthode

Turns the display off.
public Off ( ) : void
Résultat void

On() public méthode

Turns the display on.
public On ( ) : void
Résultat void

SetContrast() public méthode

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.
Résultat void

SetScrollProperties() public méthode

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.
Résultat void

Ssd1306Connection() public méthode

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.
Résultat System