Live RSS news feeds are displayed on a basic text LCD See http://mbed.org/users/4180_1/notebook/news-lcd-display/
Dependencies: NetServices TextLCDfor mbed spxml
Fork of News_LCD_display by
Reads the RSS-Fedd of the ZVV and prints the current state of the public transports on a LCD
Revision 2:6aaaf927e994, committed 2014-02-22
- Comitter:
- 18padx08
- Date:
- Sat Feb 22 23:26:48 2014 +0000
- Parent:
- 1:27033a7fe75c
- Commit message:
- A news ticker for the ZVV-net in Zuerich
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 27033a7fe75c -r 6aaaf927e994 main.cpp --- a/main.cpp Sat Feb 22 22:19:53 2014 +0000 +++ b/main.cpp Sat Feb 22 23:26:48 2014 +0000 @@ -71,10 +71,7 @@ while(true) { completed = false; if (result == HTTP_OK) { - - lcd.printf("Reload in 5 sec\n"); - - wait(5); + wait(2); lcd.cls(); loadZVVNews(); @@ -124,7 +121,7 @@ //if (j==0) wait(1.2); //add first line delays for scroll timing //delay for charcter scroll timing } - wait(2.5); + if(tsptr!=NULL) wait(2.5); lcd.cls(); //clear LCD between news items } @@ -132,5 +129,4 @@ stream.readNext((byte*)BigBuf, 4096); //Buffer has been read, now we can put more data in it } } - lcd.cls(); } \ No newline at end of file