Display text on screen.

Dependencies:   TextLCD mbed MaxSonar RTC-DS1307

Fork of TextLCD_HelloWorld by Simon Ford

Committer:
aueangpanit
Date:
Tue May 23 13:43:33 2017 +0000
Revision:
3:5e0ba6e35849
Parent:
2:ad0b044d0a10
Child:
4:c669026b6f6e
Working Display

Who changed what in which revision?

UserRevisionLine numberNew contents of line
simon 1:7418a52375a0 1 // Hello World! for the TextLCD
simon 1:7418a52375a0 2
simon 0:334327d1a416 3 #include "mbed.h"
simon 0:334327d1a416 4 #include "TextLCD.h"
simon 0:334327d1a416 5
aueangpanit 3:5e0ba6e35849 6 TextLCD lcd(PTE30, PTE29, PTE23, PTE22, PTE21, PTE20); // rs, e, d4-d7
aueangpanit 3:5e0ba6e35849 7
aueangpanit 3:5e0ba6e35849 8 int i = 0;
simon 0:334327d1a416 9
simon 0:334327d1a416 10 int main() {
aueangpanit 3:5e0ba6e35849 11 while(1){
aueangpanit 3:5e0ba6e35849 12 lcd.cls();
aueangpanit 3:5e0ba6e35849 13 lcd.printf("The Time now is: %d", i);
aueangpanit 3:5e0ba6e35849 14 i++;
aueangpanit 3:5e0ba6e35849 15 wait(1);
aueangpanit 3:5e0ba6e35849 16 }
simon 0:334327d1a416 17 }