C# Class dd.logilcd.LogiLcd

Inheritance: IDisposable
Afficher le fichier Open project: TheSatoshiChiba/LogiLCD.net

Méthodes publiques

Méthode Description
Dispose ( ) : void

Disposes the objects and also calls Shutdown().

Initialize ( string friendlyName, LCD_TYPE lcdType ) : bool

Initializes the LogiLcd system. You must call this function prior to any other function.

IsColorButtonPressed ( COLOR_BUTTON button ) : bool

Checks if a specific button of the Color LCD is pressed.

IsConnected ( LCD_TYPE lcdType ) : bool

Checks if a specific LCD_TYPE is connected to the system.

IsMonoButtonPressed ( MONO_BUTTON button ) : bool

Checks if a specific button of the Mono LCD is pressed.

LogiLcd ( ) : System

Creates a new instance of the LogiLCD interface class

SetColorBackground ( Bitmap bitmap ) : bool

Sets the Background of the Color LCD to a specific bitmap. The bitmap will be converted to a 320x240x32 image.

SetColorBackground ( byte data ) : bool

Sets the Background of the Color LCD to a specific byte array. The data needs to be a 320x240x32 Bitmap.

SetColorText ( COLOR_TEXT_LINE line, string text, int r = 255, int g = 255, int b = 255 ) : bool

Displays a speific line of text on the Color LCD.

SetColorTitle ( string text, int r = 255, int g = 255, int b = 255 ) : bool

Displays a title text on the Color LCD.

SetMonoBackground ( byte data ) : bool

Sets the Background of the Mono LCD to a specific byte array. The data needs to be a 160x43x8 Bitmap.

SetMonoText ( MONO_TEXT_LINE line, string text ) : bool

Displays a speific line of text on the Mono LCD.

Shutdown ( ) : void

Shuts down the LogiLCD System and frees all the resources.

Update ( ) : void

Updates the whole LCD Screen. You have to call this function every frame of your main loop, to keep the lcd updated.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Disposes the objects and also calls Shutdown().

Method Details

Dispose() public méthode

Disposes the objects and also calls Shutdown().
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

Disposes the objects and also calls Shutdown().
protected Dispose ( bool disposing ) : void
disposing bool true if this method has been called by hand. false if not.
Résultat void

Initialize() public méthode

Initializes the LogiLcd system. You must call this function prior to any other function.
public Initialize ( string friendlyName, LCD_TYPE lcdType ) : bool
friendlyName string the name of your applet, you can’t change it after initialization.
lcdType LCD_TYPE defines the type of your applet lcd target. Is has to e of type LCD_TYPE.
Résultat bool

IsColorButtonPressed() public méthode

Checks if a specific button of the Color LCD is pressed.
public IsColorButtonPressed ( COLOR_BUTTON button ) : bool
button COLOR_BUTTON The button whe want to check. It has to be of type COLOR_BUTTON.
Résultat bool

IsConnected() public méthode

Checks if a specific LCD_TYPE is connected to the system.
public IsConnected ( LCD_TYPE lcdType ) : bool
lcdType LCD_TYPE The LCD_TYPE for which we want to check the connection.
Résultat bool

IsMonoButtonPressed() public méthode

Checks if a specific button of the Mono LCD is pressed.
public IsMonoButtonPressed ( MONO_BUTTON button ) : bool
button MONO_BUTTON The button whe want to check. It has to be of type MONO_BUTTON.
Résultat bool

LogiLcd() public méthode

Creates a new instance of the LogiLCD interface class
public LogiLcd ( ) : System
Résultat System

SetColorBackground() public méthode

Sets the Background of the Color LCD to a specific bitmap. The bitmap will be converted to a 320x240x32 image.
public SetColorBackground ( Bitmap bitmap ) : bool
bitmap System.Drawing.Bitmap The bitmap we want to use as background
Résultat bool

SetColorBackground() public méthode

Sets the Background of the Color LCD to a specific byte array. The data needs to be a 320x240x32 Bitmap.
public SetColorBackground ( byte data ) : bool
data byte The 320x240x32 Bitmap data as array
Résultat bool

SetColorText() public méthode

Displays a speific line of text on the Color LCD.
public SetColorText ( COLOR_TEXT_LINE line, string text, int r = 255, int g = 255, int b = 255 ) : bool
line COLOR_TEXT_LINE The line index where we want the text to show up. It has to be of Type COLOR_TEXT_LINE
text string The line of text we want to show on the screen
r int The Red color bit. Should be between 0 and 255.
g int The Green color bit. Should be between 0 and 255.
b int The Blue color bit. Should be between 0 and 255.
Résultat bool

SetColorTitle() public méthode

Displays a title text on the Color LCD.
public SetColorTitle ( string text, int r = 255, int g = 255, int b = 255 ) : bool
text string The title text we want to show.
r int The Red color bit. Should be between 0 and 255.
g int The Green color bit. Should be between 0 and 255.
b int The Blue color bit. Should be between 0 and 255.
Résultat bool

SetMonoBackground() public méthode

Sets the Background of the Mono LCD to a specific byte array. The data needs to be a 160x43x8 Bitmap.
public SetMonoBackground ( byte data ) : bool
data byte The 160x43x8 Bitmap data as array
Résultat bool

SetMonoText() public méthode

Displays a speific line of text on the Mono LCD.
public SetMonoText ( MONO_TEXT_LINE line, string text ) : bool
line MONO_TEXT_LINE The line index where we want the text to show up. It has to be of Type MONO_TEXT_LINE
text string The line of text we want to show on the screen
Résultat bool

Shutdown() public méthode

Shuts down the LogiLCD System and frees all the resources.
public Shutdown ( ) : void
Résultat void

Update() public méthode

Updates the whole LCD Screen. You have to call this function every frame of your main loop, to keep the lcd updated.
public Update ( ) : void
Résultat void