LCD display
Fork of LCDLib by
Diff: TextLCD.cpp
- Revision:
- 9:9529e943259c
- Parent:
- 8:b12188ddd403
- Child:
- 10:8d5383e2546e
diff -r b12188ddd403 -r 9529e943259c TextLCD.cpp --- a/TextLCD.cpp Sun Sep 20 15:55:57 2015 +0000 +++ b/TextLCD.cpp Sun Sep 20 17:03:29 2015 +0000 @@ -12,9 +12,9 @@ TextLCD::TextLCD(PinName rs,PinName rw, PinName e, PinName d4, PinName d5, - PinName d6, PinName d7) : LCD_RS(rs),LCD_RW(rw), LCD_EN(e), - LCD_D4to7(d4,d5,d6,d7) -{ + PinName d6, PinName d7, const char* name=NULL ) : LCD_RS(rs),LCD_RW(rw), LCD_EN(e), + LCD_D4to7(d4,d5,d6,d7 ), Stream(name) +{ CLEAR_RW(); wait_ms(50); // Wait for disp to turn on @@ -36,6 +36,7 @@ wait_us(100); lcdComand(0x06);//(0b00000110); wait_us(100); + gotoxy(1,1); } // Causes the LCD-module to read the data on the data input pins