C# Class CyrusBuilt.MonoPi.Components.LcdDisplay.LcdComponent

An LCD display device abstraction component.
Inheritance: LcdBase, ILcd
ファイルを表示 Open project: cyrusbuilt/MonoPi

Public Methods

Method Description
ClearDisplay ( ) : void

Clears the display.

Dispose ( ) : void

Releases all resource used by the CyrusBuilt.MonoPi.Components.LcdDisplay.LcdComponent object.

Call Dispose when you are finished using the CyrusBuilt.MonoPi.Components.LcdDisplay.LcdComponent. The Dispose method leaves the CyrusBuilt.MonoPi.Components.LcdDisplay.LcdComponent in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.Components.LcdDisplay.LcdComponent so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.Components.LcdDisplay.LcdComponent was occupying.

LcdComponent ( ILcdTransferProvider provider, Int32 rows, Int32 columns ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Components.LcdDisplay.LcdComponent class with the LCD transfer provider and the rows and columns of the display.

SetCursorHome ( ) : void

Sets the cursor in the home position.

SetCursorPosition ( Int32 row, Int32 column ) : void

Positions the cursor at the specified column in the specified row.

ToString ( ) : String

Returns a System.String that represents the current CyrusBuilt.MonoPi.Components.LcdDisplay.LcdComponent.

Write ( Byte data ) : void

Write the specified data to the display.

Method Details

ClearDisplay() public method

Clears the display.
public ClearDisplay ( ) : void
return void

Dispose() public method

Releases all resource used by the CyrusBuilt.MonoPi.Components.LcdDisplay.LcdComponent object.
Call Dispose when you are finished using the CyrusBuilt.MonoPi.Components.LcdDisplay.LcdComponent. The Dispose method leaves the CyrusBuilt.MonoPi.Components.LcdDisplay.LcdComponent in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.Components.LcdDisplay.LcdComponent so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.Components.LcdDisplay.LcdComponent was occupying.
public Dispose ( ) : void
return void

LcdComponent() public method

Initializes a new instance of the CyrusBuilt.MonoPi.Components.LcdDisplay.LcdComponent class with the LCD transfer provider and the rows and columns of the display.
public LcdComponent ( ILcdTransferProvider provider, Int32 rows, Int32 columns ) : System
provider ILcdTransferProvider /// The LCD transfer provider. ///
rows System.Int32 /// The number of rows in the display. ///
columns System.Int32 /// The number of columns. ///
return System

SetCursorHome() public method

Sets the cursor in the home position.
public SetCursorHome ( ) : void
return void

SetCursorPosition() public method

Positions the cursor at the specified column in the specified row.
public SetCursorPosition ( Int32 row, Int32 column ) : void
row System.Int32 /// The number of the row to position the cursor in. ///
column System.Int32 /// The number of the column in the specified row to position the cursor. ///
return void

ToString() public method

Returns a System.String that represents the current CyrusBuilt.MonoPi.Components.LcdDisplay.LcdComponent.
public ToString ( ) : String
return String

Write() public method

Write the specified data to the display.
public Write ( Byte data ) : void
data Byte /// The string reperesentation of the data to write. ///
return void