Contains the main execution of the clock uses headers to import functions
Dependencies: RTC-DS1307 SPI_TFT_ILI9341 TFT_fonts mbed tsi_sensor
Fork of TFT_Mikroelectronika_IL9341_sketchpad by
Diff: RTC.h
- Revision:
- 31:3255668e6b08
- Parent:
- 16:3cb9b1fbc039
- Child:
- 38:3fe3bafbf0c7
diff -r af38c80391cb -r 3255668e6b08 RTC.h --- a/RTC.h Thu May 25 13:24:26 2017 +0000 +++ b/RTC.h Thu May 25 15:32:20 2017 +0000 @@ -9,14 +9,11 @@ void read_time() { // perform read - pc.printf("Performing read operation\n\r"); int n = 0; do { n++; } while(!rtc.getTime(tm_c)); - pc.printf("The current time is : %02d:%02d:%02d\n\r", tm_c.hour, tm_c.min, tm_c.sec); - pc.printf("The current date is : %s, %02d/%02d/%04d\n\r", rtc.weekdayToString(tm_c.wday), tm_c.mon, tm_c.date, tm_c.year); - pc.printf("Tried to read %d times\n\r",n); + } void write()