Wecker-Library

Dependents:   Projekt_Wecker_LCD Projekt_Wecker_LCD Projekt_Wecker_LCD

Committer:
wolpra98
Date:
Fri May 29 11:58:57 2015 +0000
Revision:
1:ade7876100e2
Parent:
0:6f0b18518e88
Completed the Alarm Clock

Who changed what in which revision?

UserRevisionLine numberNew contents of line
wolpra98 0:6f0b18518e88 1 #include "mbed.h"
wolpra98 0:6f0b18518e88 2 #include "LCD.h"
wolpra98 0:6f0b18518e88 3 #include "const.h"
wolpra98 0:6f0b18518e88 4 #include "RTC8563.h"
wolpra98 1:ade7876100e2 5 #include <string>
wolpra98 0:6f0b18518e88 6
wolpra98 0:6f0b18518e88 7 #if !defined(_WECKER_H)
wolpra98 0:6f0b18518e88 8 #define _WECKER_H
wolpra98 0:6f0b18518e88 9 class Wecker: public RTC8563
wolpra98 0:6f0b18518e88 10 {
wolpra98 0:6f0b18518e88 11 public:
wolpra98 0:6f0b18518e88 12 Wecker();
wolpra98 0:6f0b18518e88 13 void printTime();
wolpra98 0:6f0b18518e88 14 void printAlarmTime();
wolpra98 1:ade7876100e2 15 void test();
wolpra98 0:6f0b18518e88 16 int bcd(int dec);
wolpra98 0:6f0b18518e88 17 int unbcd(int bcd);
wolpra98 1:ade7876100e2 18 void printState(char *Mode);
wolpra98 1:ade7876100e2 19 char week;
wolpra98 1:ade7876100e2 20 int hour, minute, sec;
wolpra98 1:ade7876100e2 21 int hrse, hrsz, mine, minz, sece, secz;
wolpra98 1:ade7876100e2 22 int ahour, aminute, ahrse, ahrsz, amine, aminz;
wolpra98 1:ade7876100e2 23 int nextStd, nextMin;
wolpra98 0:6f0b18518e88 24 };
wolpra98 0:6f0b18518e88 25 #endif