Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 3:976025ff1048, committed 2018-11-23
- Comitter:
- jmanocs
- Date:
- Fri Nov 23 22:16:49 2018 +0000
- Parent:
- 2:ad0b044d0a10
- Commit message:
- gg;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r ad0b044d0a10 -r 976025ff1048 main.cpp --- 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