RTC8563
Dependents: rtc_func Projekt_Wecker_LCD Projekt_Wecker_LCD Projekt_Wecker_LCD
Diff: RTC8563.h
- Revision:
- 0:9017c5d1bbb2
- Child:
- 2:e84a6be5784c
diff -r 000000000000 -r 9017c5d1bbb2 RTC8563.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RTC8563.h Thu Apr 16 10:35:00 2015 +0000 @@ -0,0 +1,27 @@ +// +// @ Project : RTC8563 +// @ File Name : RTC8563.h +// @ Date : 06.04.2015 +// @ Author : Franz Pucher +// @ Copyright : pe@bulme.at +// +#include "mbed.h" +#include "const.h" + +#if !defined(_RTC8563_H) +#define _RTC8563_H + +class RTC8563 +{ +public: + RTC8563(); // delete void + RTC8563(PinName sda, PinName scl); + char rtc_read(char address); + void rtc_write(char address, char value); + void rtc_init(); + void rtc_alarm(); +protected: + I2C i2c; +}; + +#endif //_RTC8563_H \ No newline at end of file