yadaken yadaken
/
TextLCD_HelloWorld
a
Fork of TextLCD_HelloWorld by
Revision 3:4a39f290a99c, committed 2013-03-20
- Comitter:
- yadaken
- Date:
- Wed Mar 20 10:08:05 2013 +0000
- Parent:
- 2:ad0b044d0a10
- Commit message:
- TextLCD
Changed in this revision
TextLCD.lib | Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r ad0b044d0a10 -r 4a39f290a99c TextLCD.lib --- a/TextLCD.lib Sat Dec 04 11:31:07 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/simon/code/TextLCD/#e4cb7ddee0d3
diff -r ad0b044d0a10 -r 4a39f290a99c main.cpp --- a/main.cpp Sat Dec 04 11:31:07 2010 +0000 +++ b/main.cpp Wed Mar 20 10:08:05 2013 +0000 @@ -3,8 +3,17 @@ #include "mbed.h" #include "TextLCD.h" -TextLCD lcd(p15, p16, p17, p18, p19, p20); // rs, e, d4-d7 +TextLCD lcd(p24, p25, p26, p27, p28, p29, p30); // rs, e, d4-d7 int main() { + int count = 0; + lcd.printf("Hello World!\n"); + + while(1) { + lcd.locate(8,1); + lcd.printf("%04d",count); + count++; + wait(1.0); + } }