Supergeniene på bakerste rad
/
LAB05_Oppgave3
Teller på skjerm
Fork of KS0066U4_16x2 by
Revision 4:99ee8e183c53, committed 2015-10-08
- Comitter:
- Voldread
- Date:
- Thu Oct 08 16:16:53 2015 +0000
- Parent:
- 3:81d65a2a1920
- Commit message:
- Teller p? skjerm
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 81d65a2a1920 -r 99ee8e183c53 main.cpp --- a/main.cpp Mon Sep 21 10:18:03 2015 +0000 +++ b/main.cpp Thu Oct 08 16:16:53 2015 +0000 @@ -4,13 +4,16 @@ 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"); - - while(1) { + int counter=0; + + while(1) + { lcd.gotoxy(1,1); + lcd.printf("Nr: %d",counter); + counter=counter+1; + wait_ms(300); + + lcd.gotoxy(1,2); + lcd.printf("Nr: %d",counter); wait_ms(300); } } \ No newline at end of file