Code written by Paul Rabbat, Angel Daruna, Jarel Hawkins, and Cordel Williams
Dependencies: 4DGL-uLCD-SE EthernetInterface HTTPClient NTPClient PinDetect SDFileSystem mbed-rpc mbed-rtos mbed wave_player
Fork of ECE4180_FinalProject by
alarmModel.cpp
- Committer:
- prabbat3
- Date:
- 2014-11-15
- Revision:
- 0:0a99e3fc2a46
File content as of revision 0:0a99e3fc2a46:
#include "mbed.h" #include "alarmModel.h" alarmModel::alarmModel() {} void alarmModel::updateAlarmPreference(int _hours, int _minutes, int _amPm){ hours = _hours; minutes = _minutes; if(_amPm == 0){ amPm = "AM"; } else if (_amPm == 1){ amPm = "PM"; } printf("Alarm preference updated to %d:%d %s \n", hours, minutes, amPm); } void alarmModel::setAlarm(){ if(alarmSet == 1) printf("Alarm already set.\n"); else{ alarmSet = 1; } }