LCD display
Fork of LCDLib by
Diff: TextLCD.h
- Revision:
- 1:8902f6be12a5
- Child:
- 2:f0a520c95838
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TextLCD.h Sun Sep 20 10:36:08 2015 +0000 @@ -0,0 +1,45 @@ +/* + * LCD.h + * + * Created: 20.01.2012 13:05:14 + * Author: rul + */ +#ifndef LCD_H_ +#define LCD_H_ +class TextLCD : public Stream +{ +public: + + //Enables the LCD Module for use 2-Lines... + TextLCD(); + // EN = 1 for L-to-H / + // EN = 0 for H-to-L + // Causes the LCD-module to read the data on the data input pins + void pulseEn(); + + //Writes the low lible of data to the LCD-module data pins D4 to D7 + void writeLcdBitD4toD7(char ); + + //Writes the byte comand to the LCD-module using 4 bits mode + void lcdComand(unsigned char); + + //Writes charecters to the LCD display + void lcdData(unsigned char); + + //Enable 4 bit mode From KS0066U Documentation + void init_4BitMode2LinesDisplayOn(); + + + //Moves cursor to the X,Y position + void gotoxy(unsigned char , unsigned char ); + + //Writes a string to the LCD Display + void lcd_print(char *); + +protected: + // Stream implementation functions + virtual int _putc(int value); + virtual int _getc(); +}; + +#endif /* LCD_H_ */ \ No newline at end of file