Supergeniene på bakerste rad / Mbed 2 deprecated LAB05_Oppgave3

Dependencies:   LCDLib mbed

Fork of KS0066U4_16x2 by Rune Langoy

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001  #include "mbed.h"
00002  #include "TextLCD.h"
00003  
00004  TextLCD lcd(D11,D10,D9,D5,D4,D3,D2);
00005  int main()
00006  {    
00007    int counter=0;
00008    
00009    while(1)
00010    {    lcd.gotoxy(1,1);
00011         lcd.printf("Nr: %d",counter);
00012         counter=counter+1;
00013         wait_ms(300);
00014         
00015         lcd.gotoxy(1,2);
00016         lcd.printf("Nr: %d",counter);
00017         wait_ms(300);
00018     }
00019  }