C# 클래스 Raspberry.IO.Components.Displays.Ssd1306.Ssd1306Connection

Represents a connection with an Ssd1306 I2C OLED display.
파일 보기 프로젝트 열기: raspberry-sharp/raspberry-sharp-io 1 사용 예제들

공개 메소드들

메소드 설명
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