-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAlarm.h
More file actions
49 lines (38 loc) · 808 Bytes
/
Copy pathAlarm.h
File metadata and controls
49 lines (38 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/**
* Alarm.h
* Klasse fuer die Weckfunktion.
*
* @mc Arduino/RBBB
* @autor Christian Aschoff / caschoff _AT_ mac _DOT_ com
* @version 1.0
* @created 22.1.2013
*
* Versionshistorie:
* V 1.0: - Erstellt.
*/
#ifndef ALARM_H
#define ALARM_H
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
#include <Time.h>
class Alarm {
public:
Alarm(byte speakerPin);
TimeElements getAlarmTime();
void activate();
void deactivate();
void buzz(boolean on);
byte getShowAlarmTimeTimer();
void setShowAlarmTimeTimer(byte seconds);
void decShowAlarmTimeTimer();
boolean isActive();
private:
TimeElements _alarmTime;
boolean _isActive;
byte _showAlarmTimeTimer;
byte _speakerPin;
};
#endif