lcd

Dependencies:   mbed TextLCD

Committer:
jmanocs
Date:
Fri Nov 23 22:16:49 2018 +0000
Revision:
3:976025ff1048
Parent:
2:ad0b044d0a10
gg;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
simon 0:334327d1a416 1 #include "mbed.h"
simon 0:334327d1a416 2 #include "TextLCD.h"
simon 0:334327d1a416 3
jmanocs 3:976025ff1048 4 TextLCD lcd(p5, p6, p7, p8, p9, p10);//RS, RW, D4, D5, D6, D7
simon 0:334327d1a416 5
simon 0:334327d1a416 6 int main() {
jmanocs 3:976025ff1048 7 int a=0;
simon 0:334327d1a416 8 lcd.printf("Hello World!\n");
jmanocs 3:976025ff1048 9
jmanocs 3:976025ff1048 10 while(1)
jmanocs 3:976025ff1048 11 {
jmanocs 3:976025ff1048 12 lcd.locate(0,1);
jmanocs 3:976025ff1048 13 lcd.printf("%d",a);
jmanocs 3:976025ff1048 14 wait(1);
jmanocs 3:976025ff1048 15 a++;
jmanocs 3:976025ff1048 16 }
jmanocs 3:976025ff1048 17 }