Display text on screen.
Dependencies: TextLCD mbed MaxSonar RTC-DS1307
Fork of TextLCD_HelloWorld by
Diff: main.cpp
- Revision:
- 3:5e0ba6e35849
- Parent:
- 2:ad0b044d0a10
- Child:
- 4:c669026b6f6e
--- a/main.cpp Sat Dec 04 11:31:07 2010 +0000 +++ b/main.cpp Tue May 23 13:43:33 2017 +0000 @@ -3,8 +3,15 @@ #include "mbed.h" #include "TextLCD.h" -TextLCD lcd(p15, p16, p17, p18, p19, p20); // rs, e, d4-d7 +TextLCD lcd(PTE30, PTE29, PTE23, PTE22, PTE21, PTE20); // rs, e, d4-d7 + +int i = 0; int main() { - lcd.printf("Hello World!\n"); + while(1){ + lcd.cls(); + lcd.printf("The Time now is: %d", i); + i++; + wait(1); + } }