Whitworth-EN173-2016
/
SmartRise_MBED
Alarm Clock
Fork of SmartRise_MBED by
TimeControl.h@6:73866b51e0b7, 2016-01-26 (annotated)
- Committer:
- asloop18
- Date:
- Tue Jan 26 01:14:35 2016 +0000
- Revision:
- 6:73866b51e0b7
- Parent:
- 4:33f3750fe70a
time functions isolated
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
asloop18 | 4:33f3750fe70a | 1 | /********************************************************** |
asloop18 | 4:33f3750fe70a | 2 | * Header for Time management and display for SmartRISE-MBED |
asloop18 | 4:33f3750fe70a | 3 | * |
asloop18 | 4:33f3750fe70a | 4 | * LCD connects RSp28 Ep27, D1-4 p23-26. |
asloop18 | 4:33f3750fe70a | 5 | * Control buttons connected p6-10 |
asloop18 | 4:33f3750fe70a | 6 | * |
asloop18 | 4:33f3750fe70a | 7 | **********************************************************/ |
asloop18 | 4:33f3750fe70a | 8 | #ifndef TimeControl_h |
asloop18 | 4:33f3750fe70a | 9 | #define TimeControl_h |
asloop18 | 4:33f3750fe70a | 10 | |
asloop18 | 4:33f3750fe70a | 11 | #include "mbed.h" |
asloop18 | 4:33f3750fe70a | 12 | |
asloop18 | 4:33f3750fe70a | 13 | char checkAlarm(void); //function to check if programmed alarm time matches current time |
asloop18 | 6:73866b51e0b7 | 14 | void timeDisplay(void); |
asloop18 | 4:33f3750fe70a | 15 | void alarmProg(void); |
asloop18 | 4:33f3750fe70a | 16 | void timeProg(void); |
asloop18 | 4:33f3750fe70a | 17 | void time_init(void); //Declare time var |
asloop18 | 4:33f3750fe70a | 18 | |
asloop18 | 4:33f3750fe70a | 19 | |
asloop18 | 4:33f3750fe70a | 20 | #endif |