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.
Clock.h@0:e55bea03756a, 2017-05-03 (annotated)
- Committer:
 - RossalaTTM
 - Date:
 - Wed May 03 08:33:33 2017 +0000
 - Revision:
 - 0:e55bea03756a
 
for ross
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| RossalaTTM | 0:e55bea03756a | 1 | #ifndef Clock_H | 
| RossalaTTM | 0:e55bea03756a | 2 | #define Clock_H | 
| RossalaTTM | 0:e55bea03756a | 3 | |
| RossalaTTM | 0:e55bea03756a | 4 | #include "mbed.h" | 
| RossalaTTM | 0:e55bea03756a | 5 | |
| RossalaTTM | 0:e55bea03756a | 6 | class Clock{ | 
| RossalaTTM | 0:e55bea03756a | 7 | //variables //public so that Reading can read it | 
| RossalaTTM | 0:e55bea03756a | 8 | public: | 
| RossalaTTM | 0:e55bea03756a | 9 | int year; | 
| RossalaTTM | 0:e55bea03756a | 10 | int month; | 
| RossalaTTM | 0:e55bea03756a | 11 | int day; | 
| RossalaTTM | 0:e55bea03756a | 12 | int hour; | 
| RossalaTTM | 0:e55bea03756a | 13 | int minute; | 
| RossalaTTM | 0:e55bea03756a | 14 | int second; | 
| RossalaTTM | 0:e55bea03756a | 15 | |
| RossalaTTM | 0:e55bea03756a | 16 | Clock(int y, int mo, int d, int h,int mi,int s); | 
| RossalaTTM | 0:e55bea03756a | 17 | Clock(); | 
| RossalaTTM | 0:e55bea03756a | 18 | |
| RossalaTTM | 0:e55bea03756a | 19 | void TickTock(); | 
| RossalaTTM | 0:e55bea03756a | 20 | void setClock(Clock *dt); | 
| RossalaTTM | 0:e55bea03756a | 21 | |
| RossalaTTM | 0:e55bea03756a | 22 | }; | 
| RossalaTTM | 0:e55bea03756a | 23 | #endif |