The final project of Embedde class.
Dependencies: C12832 LM75B ESP-call MMA7660
Diff: ALARM/ALARM.h
- Revision:
- 1:ed1c6618f739
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ALARM/ALARM.h Thu Jun 03 07:08:47 2021 +0000 @@ -0,0 +1,22 @@ +#ifndef _ALARM_H +#define _ALARM_H + +#include "mbed.h" +#include "WIFI.h" +#include "TIMER.h" +#include "BUZZER.h" +#include "BELL.h" + +#define ALARM_STATE alarmState; +#define ALARM_ENABLED true +#define ALARM_DISABLED false + +extern short alarmHour; +extern short alarmMinute; +extern short alarmSecond; +extern bool alarmState; +extern Semaphore semaphoreAlarmData; + +void alarmInit(void); + +#endif \ No newline at end of file