![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Minor fixes
Fork of Coursework by
Clock.h@37:1a621144e73f, 2017-05-03 (annotated)
- Committer:
- RossalaTTM
- Date:
- Wed May 03 10:30:24 2017 +0000
- Revision:
- 37:1a621144e73f
classes moved out of folder
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
RossalaTTM | 37:1a621144e73f | 1 | #ifndef Clock_H |
RossalaTTM | 37:1a621144e73f | 2 | #define Clock_H |
RossalaTTM | 37:1a621144e73f | 3 | |
RossalaTTM | 37:1a621144e73f | 4 | #include "mbed.h" |
RossalaTTM | 37:1a621144e73f | 5 | |
RossalaTTM | 37:1a621144e73f | 6 | class Clock{ |
RossalaTTM | 37:1a621144e73f | 7 | //variables //public so that Reading can read it |
RossalaTTM | 37:1a621144e73f | 8 | public: |
RossalaTTM | 37:1a621144e73f | 9 | int year; |
RossalaTTM | 37:1a621144e73f | 10 | int month; |
RossalaTTM | 37:1a621144e73f | 11 | int day; |
RossalaTTM | 37:1a621144e73f | 12 | int hour; |
RossalaTTM | 37:1a621144e73f | 13 | int minute; |
RossalaTTM | 37:1a621144e73f | 14 | int second; |
RossalaTTM | 37:1a621144e73f | 15 | |
RossalaTTM | 37:1a621144e73f | 16 | Clock(int y, int mo, int d, int h,int mi,int s); |
RossalaTTM | 37:1a621144e73f | 17 | Clock(); |
RossalaTTM | 37:1a621144e73f | 18 | |
RossalaTTM | 37:1a621144e73f | 19 | void TickTock(); |
RossalaTTM | 37:1a621144e73f | 20 | void setClock(Clock *dt); |
RossalaTTM | 37:1a621144e73f | 21 | |
RossalaTTM | 37:1a621144e73f | 22 | }; |
RossalaTTM | 37:1a621144e73f | 23 | #endif |