Supergeniene på bakerste rad
/
LAB05_Oppgave4
Hey
Fork of KS0066U4_16x2 by
Revision 4:6d8373f8a21b, committed 2015-09-24
- Comitter:
- Voldread
- Date:
- Thu Sep 24 10:36:27 2015 +0000
- Parent:
- 3:81d65a2a1920
- Commit message:
- Yeee
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 81d65a2a1920 -r 6d8373f8a21b main.cpp --- a/main.cpp Mon Sep 21 10:18:03 2015 +0000 +++ b/main.cpp Thu Sep 24 10:36:27 2015 +0000 @@ -4,13 +4,18 @@ TextLCD lcd(D11,D10,D9,D5,D4,D3,D2); int main() { - lcd.gotoxy(1,1); - lcd.printf("Hello"); - - lcd.gotoxy(4,2); - lcd.printf("World"); + char meldingTilLcdPanel[80]; - while(1) { - wait_ms(300); - } + while(1) + { + printf("Skriv inn teksten du vil skive inn\n"); + scanf("%[^\r\n]s",&meldingTilLcdPanel); + getchar(); + + lcd.lcdComand(0x01); + wait_ms(2); + + lcd.gotoxy(1,1); + lcd.printf(meldingTilLcdPanel); + } } \ No newline at end of file