Matthew Waddilove / TextLCD_Serial

Dependencies:   TextDisplays

Embed: (wiki syntax)

« Back to documentation index

TextLCD_Serial Class Reference

class that implements TextDisplay, for a 2x16 (2x20 etc. to come) serial LCD, controlled by the HD44780 More...

#include <TextLCD_Serial.h>

Data Structures

struct  Codes
 Enum with command codes. More...

Public Member Functions

 TextLCD_Serial (PinName tx, PinName rx, char const *name=NULL)
 Constructor.
virtual void cls ()
 Clear the screen and locate to 0,0.

Protected Member Functions

void setLCDCursor (int const column, int const row)
 Set the LCD's cursor position.
void writeByte (int const value)
 write a byte to _lcd
void writeCommand (int const command)
 Send a command.
void writeData (int const data)
 write a regular char.

Detailed Description

class that implements TextDisplay, for a 2x16 (2x20 etc. to come) serial LCD, controlled by the HD44780

Definition at line 9 of file TextLCD_Serial.h.


Constructor & Destructor Documentation

TextLCD_Serial ( PinName  tx,
PinName  rx,
char const *  name = NULL 
)

Constructor.

Definition at line 7 of file TextLCD_Serial.cpp.


Member Function Documentation

void cls (  ) [virtual]

Clear the screen and locate to 0,0.

Definition at line 31 of file TextLCD_Serial.cpp.

void setLCDCursor ( int const   column,
int const   row 
) [protected]

Set the LCD's cursor position.

Definition at line 23 of file TextLCD_Serial.cpp.

void writeByte ( int const   value ) [protected]

write a byte to _lcd

Definition at line 40 of file TextLCD_Serial.cpp.

void writeCommand ( int const   command ) [protected]

Send a command.

Definition at line 47 of file TextLCD_Serial.cpp.

void writeData ( int const   data ) [protected]

write a regular char.

Definition at line 55 of file TextLCD_Serial.cpp.