![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
real time clock...Marcel Reath
Fork of rtc_func by
Diff: Date.h
- Revision:
- 4:f3adf7e6dd40
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Date.h Wed Apr 22 18:10:10 2015 +0000 @@ -0,0 +1,21 @@ +#include "mbed.h" +#include "const.h" +#include "RTC8563.h" +#include "string" + +#ifndef DATE_H +#define DATE_H +class Date : public RTC8563 // Date abgeleitet von RTC8563 +{ +private: + uint8_t bcdToUint(uint8_t const nybbles); // private Methode + string toString(uint8_t value); + +public: + Date() // Standard Konstruktor + {} + uint8_t GetDay(); // Methode + uint8_t GetMonth(); + uint8_t GetYear(); +}; +#endif