El-POM1001
/
LAB05_Oppgave4
LCD
Fork of KS0066U4_16x2 by
Diff: main.cpp
- Revision:
- 1:be0ba4cb6c5d
- Parent:
- 0:92dd50c69b90
- Child:
- 2:47cd49e26bfc
diff -r 92dd50c69b90 -r be0ba4cb6c5d main.cpp --- a/main.cpp Sun Sep 20 11:57:45 2015 +0000 +++ b/main.cpp Sun Sep 20 18:02:03 2015 +0000 @@ -1,16 +1,16 @@ -#include "mbed.h" -#include "TextLCD.h" - -TextLCD lcd(D11,D10,D9,D5,D4,D3,D2); -int main() -{ + #include "mbed.h" + #include "TextLCD.h" + + TextLCD lcd(D11,D10,D9,D5,D4,D3,D2); + int main() + { lcd.gotoxy(1,1); - lcd.printf("Hello"); - - lcd.gotoxy(1,2); - lcd.printf(" World"); - + lcd.printf("Line nr 1"); + + lcd.gotoxy(4,2); + lcd.printf("Line nr 2"); + while(1) { wait_ms(300); } -} + } \ No newline at end of file