Whitworth-EN173-2016
/
SmartRise_MBED
Alarm Clock
Fork of SmartRise_MBED by
Diff: main.cpp
- Revision:
- 6:73866b51e0b7
- Parent:
- 4:33f3750fe70a
- Child:
- 7:5412a6d7ef6d
diff -r 33f3750fe70a -r 73866b51e0b7 main.cpp --- a/main.cpp Tue Jan 26 00:47:00 2016 +0000 +++ b/main.cpp Tue Jan 26 01:14:35 2016 +0000 @@ -7,18 +7,19 @@ Serial pc(USBTX,USBRX); -TextLCD lcd(p27,p28,p23,p24,p25,p26); //RS E d1,d2,d3,d4 -DigitalIn HrAdjustUp(p6); -DigitalIn HrAdjustDown(p7); -DigitalIn MinAdjust(p8); //buttons for setting time and alarm DigitalIn AlarmAdjust(p9); - +DigitalIn timeSW(p10); InterruptIn safetyOff(p5); int main() { time_init(); + while(1){ + timeDisplay(); + if(timeSW==1)timeProg(); + if(AlarmAdjust==1) alarmProg(); + } }