LCD display
Fork of LCDLib by
Diff: TextLCD.cpp
- Revision:
- 2:f0a520c95838
- Parent:
- 1:8902f6be12a5
- Child:
- 3:d2f70de20dbe
diff -r 8902f6be12a5 -r f0a520c95838 TextLCD.cpp --- a/TextLCD.cpp Sun Sep 20 10:36:08 2015 +0000 +++ b/TextLCD.cpp Sun Sep 20 10:42:51 2015 +0000 @@ -21,7 +21,6 @@ //Enables the LCD Module for use 2-Lines... TextLCD::TextLCD() { - CLEAR_EN(); //EN =0 wait_ms(500); @@ -30,11 +29,11 @@ lcdComand(0x28);//(0b0010 1000); // 4- bit mode LCD 2 line 5x7 Matrix wait_us(100); - lcdComand(0xE);//(0b0000 1110); //Hva gj�r vi her ? + lcdComand(0xE);//(0b0000 1110); //Hva gjør vi her ? wait_us(100); - lcdComand(0x01); //(0b00000001); //Hva gj�r vi her ? + lcdComand(0x01); //(0b00000001); //Hva gjør vi her ? wait_us(100); - lcdComand(0x06);//(0b00000110); //Hva gj�r vi her ? + lcdComand(0x06);//(0b00000110); //Hva gjør vi her ? wait_us(100); } @@ -117,7 +116,7 @@ //Moves cursor to the X,Y position -void TextLCD::gotoxy(unsigned char x, unsigned char y) +void TextLCD::gotoxy(int x, int y) { unsigned char firstCharAdr[]= { 0x80,0xc0,0x94,0xD4}; lcdComand(firstCharAdr[y-1]+ x -1);