Rune Langoy / LCDLib

Dependents:   KS0066U4_16x2 LAB05_Oppgave4 LAB05_Oppgave2 LAB05_Oppgave3 ... more

Files at this revision

API Documentation at this revision

Comitter:
rlanghbv
Date:
Mon Sep 21 10:17:51 2015 +0000
Parent:
16:ca413e232eaa
Child:
18:68125c2172fd
Commit message:
LCD Init Fix

Changed in this revision

TextLCD.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/TextLCD.cpp	Mon Sep 21 09:25:53 2015 +0000
+++ b/TextLCD.cpp	Mon Sep 21 10:17:51 2015 +0000
@@ -30,13 +30,12 @@
     lcdComand(0x28);//(0b0010 1000);   // 4- bit mode   LCD 2 line 16x2 Matrix
     wait_us(100);
 
-    lcdComand(0xE);//(0b0000 1110);
-    wait_us(100);
     lcdComand(0x01); //(0b00000001);
     wait_us(100);
     lcdComand(0x06);//(0b00000110);
     wait_us(100);
-    gotoxy(1,1);
+    lcdComand(0xC);//(0b0000 1100);
+    wait_us(100);
 }
 
 // Causes the LCD-module to read the data on the data input pins