C# 클래스 CyrusBuilt.MonoPi.Components.LcdDisplay.LcdBase

Base class for LCD display abstractions.
상속: ComponentBase, ILcd
파일 보기 프로젝트 열기: cyrusbuilt/MonoPi

공개 메소드들

메소드 설명
Clear ( ) : void

Clears the entire display.

Clear ( Int32 row ) : void

Clears the specified row.

Clear ( Int32 row, Int32 column, Int32 length ) : void

Clear one or more characters starting at the specified row and column.

SendCursorHome ( ) : void

Sends the cursor to the home position which is in the top-left corner of the screen.

SetCursorPosition ( Int32 row ) : void

Positions the cursor at the beginning of the specified row.

SetCursorPosition ( Int32 row, Int32 column ) : void

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

Write ( Byte data ) : void

Writes a single byte to the display.

Write ( Char data ) : void

Writes a single character to the display.

Write ( Int32 row, Byte data ) : void

Writes a byte array to the display.

Write ( Int32 row, Char data ) : void

Writes a character array to the display in the specified row.

Write ( Int32 row, Int32 column, Byte data ) : void

Write the specified data to the display.

Write ( Int32 row, Int32 column, Char data ) : void

Write the specified data to the display.

Write ( Int32 row, Int32 column, String data ) : void

Writes text to the display in the specified row.

Write ( Int32 row, Int32 column, String data, Object arguments ) : void

Write the specified data to the display.

Write ( Int32 row, String data ) : void

Writes text to the display in the specified row.

Write ( Int32 row, String data, LcdTextAlignment alignment ) : void

Writes text to the display in the specified row.

Write ( Int32 row, String data, LcdTextAlignment alignment, Object arguments ) : void

Write the specified data to the display.

Write ( Int32 row, String data, Object arguments ) : void

Writes text to the display in the specified row.

Write ( String data ) : void

Write the specified data to the display.

Write ( String data, Object arguments ) : void

Write the specified data to the display.

WriteLine ( Int32 row, String data ) : void

Write the specified data to the display with the text aligned to the left.

WriteLine ( Int32 row, String data, LcdTextAlignment alignment ) : void

Write the specified data to the display.

WriteLine ( Int32 row, String data, LcdTextAlignment alignment, Object args ) : void

Write the specified data to the display.

WriteLine ( Int32 row, String data, Object args ) : void

Write the specified data to the display.

보호된 메소드들

메소드 설명
LcdBase ( ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Components.LcdDisplay.LcdBase class. This is the default constructor.

ValidateColumnIndex ( Int32 column ) : void

Validates the index of the column.

ValidateCoordinates ( Int32 row, Int32 column ) : void

Validates the coordinates.

ValidateRowIndex ( Int32 row ) : void

Validates the index of the row.

메소드 상세

Clear() 공개 메소드

Clears the entire display.
public Clear ( ) : void
리턴 void

Clear() 공개 메소드

Clears the specified row.
/// The row index is invalid for the display. ///
public Clear ( Int32 row ) : void
row System.Int32 /// The number of the row to clear. ///
리턴 void

Clear() 공개 메소드

Clear one or more characters starting at the specified row and column.
public Clear ( Int32 row, Int32 column, Int32 length ) : void
row System.Int32 /// The number of the row to clear the character(s) from. ///
column System.Int32 /// The column that is the starting position. ///
length System.Int32 /// The number of characters to clear. ///
리턴 void

LcdBase() 보호된 메소드

Initializes a new instance of the CyrusBuilt.MonoPi.Components.LcdDisplay.LcdBase class. This is the default constructor.
protected LcdBase ( ) : System
리턴 System

SendCursorHome() 공개 메소드

Sends the cursor to the home position which is in the top-left corner of the screen.
public SendCursorHome ( ) : void
리턴 void

SetCursorPosition() 공개 메소드

Positions the cursor at the beginning of the specified row.
/// The row or column index is invalid for the display. ///
public SetCursorPosition ( Int32 row ) : void
row System.Int32 /// The number of the row to position the cursor in. ///
리턴 void

SetCursorPosition() 공개 추상적인 메소드

Positions the cursor at the specified column in the specified row.
public abstract 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. ///
리턴 void

ValidateColumnIndex() 보호된 메소드

Validates the index of the column.
/// The column index is invalid for the display. ///
protected ValidateColumnIndex ( Int32 column ) : void
column System.Int32 /// The index of the column to validate. ///
리턴 void

ValidateCoordinates() 보호된 메소드

Validates the coordinates.
/// The row or column index is invalid for the display. ///
protected ValidateCoordinates ( Int32 row, Int32 column ) : void
row System.Int32 /// The index of the row to validate. ///
column System.Int32 /// The index of the column to validate. ///
리턴 void

ValidateRowIndex() 보호된 메소드

Validates the index of the row.
/// The row index is invalid for the display. ///
protected ValidateRowIndex ( Int32 row ) : void
row System.Int32 /// The index of the row to validate. ///
리턴 void

Write() 공개 추상적인 메소드

Writes a single byte to the display.
public abstract Write ( Byte data ) : void
data Byte /// The byte to write. ///
리턴 void

Write() 공개 메소드

Writes a single character to the display.
public Write ( Char data ) : void
data Char /// The character to write. ///
리턴 void

Write() 공개 메소드

Writes a byte array to the display.
/// The row or column index is invalid for the display. ///
public Write ( Int32 row, Byte data ) : void
row System.Int32 /// The row to position the data in. ///
data Byte /// The array of bytes to write. ///
리턴 void

Write() 공개 메소드

Writes a character array to the display in the specified row.
/// The row or column index is invalid for the display. ///
public Write ( Int32 row, Char data ) : void
row System.Int32 /// The row to position the data in. ///
data Char /// The array of characters to write. ///
리턴 void

Write() 공개 메소드

Write the specified data to the display.
/// The row or column index is invalid for the display. ///
public Write ( Int32 row, Int32 column, Byte data ) : void
row System.Int32 /// The row to position the data in. ///
column System.Int32 /// The column within the row to start the write. ///
data Byte /// The array of bytes to write. ///
리턴 void

Write() 공개 메소드

Write the specified data to the display.
/// The row or column index is invalid for the display. ///
public Write ( Int32 row, Int32 column, Char data ) : void
row Int32 /// The row to position the data in. ///
column Int32 /// The column within the row to start the write. ///
data Char /// The array of characters to write. ///
리턴 void

Write() 공개 메소드

Writes text to the display in the specified row.
/// The row or column index is invalid for the display. ///
public Write ( Int32 row, Int32 column, String data ) : void
row Int32 /// The row to write the text in. ///
column Int32 /// The column position within the row to start the write. ///
data String /// The text string to write. ///
리턴 void

Write() 공개 메소드

Write the specified data to the display.
/// The row or column index is invalid for the display. ///
public Write ( Int32 row, Int32 column, String data, Object arguments ) : void
row Int32 /// The row to position the data in. ///
column Int32 /// The column within the row to start the write. ///
data String /// The string reperesentation of the data to write. ///
arguments Object /// The arguments. ///
리턴 void

Write() 공개 메소드

Writes text to the display in the specified row.
/// The row or column index is invalid for the display. ///
public Write ( Int32 row, String data ) : void
row Int32 /// The row to write the text in. ///
data String /// The text string to write. ///
리턴 void

Write() 공개 메소드

Writes text to the display in the specified row.
/// The row or column index is invalid for the display. ///
public Write ( Int32 row, String data, LcdTextAlignment alignment ) : void
row Int32 /// The row to write the text in. ///
data String /// The text string to write. ///
alignment LcdTextAlignment /// The text alignment within the row. ///
리턴 void

Write() 공개 메소드

Write the specified data to the display.
/// The row or column index is invalid for the display. ///
public Write ( Int32 row, String data, LcdTextAlignment alignment, Object arguments ) : void
row Int32 /// The row to position the data in. ///
data String /// The data to write. ///
alignment LcdTextAlignment /// The text alignment within the row. ///
arguments Object /// The arguments. ///
리턴 void

Write() 공개 메소드

Writes text to the display in the specified row.
public Write ( Int32 row, String data, Object arguments ) : void
row Int32 /// The row to write the text in. ///
data String /// The text string to write. ///
arguments Object /// The arguments. ///
리턴 void

Write() 공개 메소드

Write the specified data to the display.
/// cannot be null. /// /// An encoder fallback occurred. ///
public Write ( String data ) : void
data String /// The string reperesentation of the data to write. ///
리턴 void

Write() 공개 메소드

Write the specified data to the display.
public Write ( String data, Object arguments ) : void
data String /// The string reperesentation of the data to write. ///
arguments Object /// The object representing the arguments. ///
리턴 void

WriteLine() 공개 메소드

Write the specified data to the display with the text aligned to the left.
/// The row or column index is invalid for the display. ///
public WriteLine ( Int32 row, String data ) : void
row Int32 /// The row to position the data in. ///
data String /// The string reperesentation of the data to write. ///
리턴 void

WriteLine() 공개 메소드

Write the specified data to the display.
/// The row or column index is invalid for the display. ///
public WriteLine ( Int32 row, String data, LcdTextAlignment alignment ) : void
row Int32 /// The row to position the data in. ///
data String /// The string reperesentation of the data to write. ///
alignment LcdTextAlignment /// The text alignment. ///
리턴 void

WriteLine() 공개 메소드

Write the specified data to the display.
/// The row or column index is invalid for the display. ///
public WriteLine ( Int32 row, String data, LcdTextAlignment alignment, Object args ) : void
row Int32 /// The row to position the data in. ///
data String /// The text to write to the display. ///
alignment LcdTextAlignment /// The text alignment within the row. ///
args Object /// The arguments. ///
리턴 void

WriteLine() 공개 메소드

Write the specified data to the display.
/// The row or column index is invalid for the display. ///
public WriteLine ( Int32 row, String data, Object args ) : void
row Int32 /// The row to position the data in. ///
data String /// The string reperesentation of the data to write. ///
args Object /// The arguments. ///
리턴 void