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.
Dependencies: 4DGL-uLCD-SE EthernetInterface NTPClient TextLCD mbed PinDetect SDFileSystem wave_player mbed-rtos
Fork of Internet_LCD_Clock by
Diff: Internet_LCD_Clock.cpp
- Revision:
- 1:09fcc9b81f23
- Parent:
- 0:5c5226aac712
- Child:
- 3:b4e7f126c80a
diff -r 5c5226aac712 -r 09fcc9b81f23 Internet_LCD_Clock.cpp
--- a/Internet_LCD_Clock.cpp Thu Apr 12 01:44:02 2012 +0000
+++ b/Internet_LCD_Clock.cpp Sat Apr 14 01:12:23 2012 +0000
@@ -18,19 +18,16 @@
//Get an Internet IP address using DHCP
if (ethErr) {
//error or timeout getting an IP address
- printf("Error %d in setup.\n\r", ethErr);
lcd.cls();
lcd.printf("Network Error \n\r %d",ethErr);
return -1;
}
lcd.cls();
- ctTime = time(NULL);
lcd.printf("Reading Time...\n\r");
//specify time server URL
Host server(IpAddr(), 123, "0.uk.pool.ntp.org");
//Read time from server
ntp.setTime(server);
- ctTime = time(NULL);
lcd.printf("Time set");
//Delay for human time to read LCD display
wait(1);
