Jose Manuel Cruz Sanchez
/
TextLCD_HelloWorld
lcd
Diff: main.cpp
- Revision:
- 3:976025ff1048
- Parent:
- 2:ad0b044d0a10
--- a/main.cpp Sat Dec 04 11:31:07 2010 +0000 +++ b/main.cpp Fri Nov 23 22:16:49 2018 +0000 @@ -1,10 +1,17 @@ -// Hello World! for the TextLCD - #include "mbed.h" #include "TextLCD.h" -TextLCD lcd(p15, p16, p17, p18, p19, p20); // rs, e, d4-d7 +TextLCD lcd(p5, p6, p7, p8, p9, p10);//RS, RW, D4, D5, D6, D7 int main() { + int a=0; lcd.printf("Hello World!\n"); -} + + while(1) + { + lcd.locate(0,1); + lcd.printf("%d",a); + wait(1); + a++; + } +} \ No newline at end of file