Teller på skjerm

Dependencies:   LCDLib mbed

Fork of KS0066U4_16x2 by Rune Langoy

main.cpp

Committer:
Voldread
Date:
2015-10-08
Revision:
4:99ee8e183c53
Parent:
3:81d65a2a1920

File content as of revision 4:99ee8e183c53:

 #include "mbed.h"
 #include "TextLCD.h"
 
 TextLCD lcd(D11,D10,D9,D5,D4,D3,D2);
 int main()
 {    
   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);
    }
 }