C# 클래스 Raspberry.IO.Components.Displays.Hd44780.Hd44780LcdConnection

Based on https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code/blob/master/Adafruit_CharLCD/Adafruit_CharLCD.py and http://lcd-linux.sourceforge.net/pdfdocs/hd44780.pdf and http://www.quinapalus.com/hd44780udg.html and http://robo.fe.uni-lj.si/~kamnikr/sola/urac/vaja3_display/How%20to%20control%20HD44780%20display.pdf and http://web.stanford.edu/class/ee281/handouts/lcd_tutorial.pdf and http://www.systronix.com/access/Systronix_20x4_lcd_brief_data.pdf
상속: IDisposable
파일 보기 프로젝트 열기: raspberry-sharp/raspberry-sharp-io 1 사용 예제들

공개 메소드들

메소드 설명
Clear ( ) : void

Clears the display.

Close ( ) : void

Closes this instance.

Hd44780LcdConnection ( Raspberry.IO.Components.Displays.Hd44780.Hd44780LcdConnectionSettings settings, Raspberry.IO.Components.Displays.Hd44780.Hd44780Pins pins ) : System

Initializes a new instance of the Hd44780LcdConnection class.

Hd44780LcdConnection ( IOutputBinaryPin registerSelectPin, IOutputBinaryPin clockPin ) : System

Initializes a new instance of the Hd44780LcdConnection class.

Hd44780LcdConnection ( IOutputBinaryPin registerSelectPin, IOutputBinaryPin clockPin, IEnumerable dataPins ) : System

Initializes a new instance of the Hd44780LcdConnection class.

Home ( ) : void

Set cursor to top left corner.

Move ( int offset ) : void

Moves the cursor of the specified offset.

SetCursorPosition ( Hd44780Position position ) : void

Moves the cursor to the specified row and column

SetCustomCharacter ( byte character, byte pattern ) : void

Sets the custom character.

Write ( object value, System.TimeSpan animationDelay = newTimeSpan() ) : void

Writes the specified value.

Write ( string format ) : void

Writes the specified format.

Write ( string format, System.TimeSpan animationDelay ) : void

Writes the specified format.

WriteLine ( object value, System.TimeSpan animationDelay = newTimeSpan() ) : void

Writes the line.

WriteLine ( string format ) : void

Writes the line.

WriteLine ( string text, System.TimeSpan animationDelay = newTimeSpan() ) : void

Writes the line.

비공개 메소드들

메소드 설명
GetLcdAddressLocation ( int row ) : int

Returns the Lcd Address for the given row

http://www.mikroe.com/forum/viewtopic.php?t=5149

IDisposable ( ) : void
Set5x10CustomCharacter ( byte character, byte pattern ) : void
Set5x8CustomCharacter ( byte character, byte pattern ) : void
Synchronize ( ) : void
WriteByte ( int bits, bool charMode ) : void
WriteByte4Pins ( int bits, bool charMode ) : void
WriteCommand ( Command command, int parameter ) : void

메소드 상세

Clear() 공개 메소드

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

Close() 공개 메소드

Closes this instance.
public Close ( ) : void
리턴 void

Hd44780LcdConnection() 공개 메소드

Initializes a new instance of the Hd44780LcdConnection class.
/// dataPins;There must be either 4 or 8 data pins /// or /// settings;ScreenHeight must be between 1 and 4 rows /// or /// settings;PatternWidth must be 5 pixels /// or /// settings;PatternWidth must be either 7 or 10 pixels height /// /// At most 80 characters are allowed /// or /// 10 pixels height pattern cannot be used with 2 rows ///
public Hd44780LcdConnection ( Raspberry.IO.Components.Displays.Hd44780.Hd44780LcdConnectionSettings settings, Raspberry.IO.Components.Displays.Hd44780.Hd44780Pins pins ) : System
settings Raspberry.IO.Components.Displays.Hd44780.Hd44780LcdConnectionSettings The settings.
pins Raspberry.IO.Components.Displays.Hd44780.Hd44780Pins The pins.
리턴 System

Hd44780LcdConnection() 공개 메소드

Initializes a new instance of the Hd44780LcdConnection class.
public Hd44780LcdConnection ( IOutputBinaryPin registerSelectPin, IOutputBinaryPin clockPin ) : System
registerSelectPin IOutputBinaryPin The register select pin.
clockPin IOutputBinaryPin The clock pin.
리턴 System

Hd44780LcdConnection() 공개 메소드

Initializes a new instance of the Hd44780LcdConnection class.
public Hd44780LcdConnection ( IOutputBinaryPin registerSelectPin, IOutputBinaryPin clockPin, IEnumerable dataPins ) : System
registerSelectPin IOutputBinaryPin The register select pin.
clockPin IOutputBinaryPin The clock pin.
dataPins IEnumerable The data pins.
리턴 System

Home() 공개 메소드

Set cursor to top left corner.
public Home ( ) : void
리턴 void

Move() 공개 메소드

Moves the cursor of the specified offset.
public Move ( int offset ) : void
offset int The offset.
리턴 void

SetCursorPosition() 공개 메소드

Moves the cursor to the specified row and column
public SetCursorPosition ( Hd44780Position position ) : void
position Hd44780Position The position.
리턴 void

SetCustomCharacter() 공개 메소드

Sets the custom character.
public SetCustomCharacter ( byte character, byte pattern ) : void
character byte The character.
pattern byte The pattern.
리턴 void

Write() 공개 메소드

Writes the specified value.
public Write ( object value, System.TimeSpan animationDelay = newTimeSpan() ) : void
value object The value.
animationDelay System.TimeSpan The animation delay.
리턴 void

Write() 공개 메소드

Writes the specified format.
public Write ( string format ) : void
format string The format.
리턴 void

Write() 공개 메소드

Writes the specified format.
public Write ( string format, System.TimeSpan animationDelay ) : void
format string The format.
animationDelay System.TimeSpan The animation delay.
리턴 void

WriteLine() 공개 메소드

Writes the line.
public WriteLine ( object value, System.TimeSpan animationDelay = newTimeSpan() ) : void
value object The value.
animationDelay System.TimeSpan The animation delay.
리턴 void

WriteLine() 공개 메소드

Writes the line.
public WriteLine ( string format ) : void
format string The format.
리턴 void

WriteLine() 공개 메소드

Writes the line.
public WriteLine ( string text, System.TimeSpan animationDelay = newTimeSpan() ) : void
text string The text.
animationDelay System.TimeSpan The animation delay.
리턴 void