![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Original programm
Fork of rtc_class by
Diff: Date.h
- Revision:
- 5:fc8c66a7c87a
- Parent:
- 4:a4d39c018c65
- Child:
- 6:ebe2350041f1
diff -r a4d39c018c65 -r fc8c66a7c87a Date.h --- a/Date.h Mon Apr 20 08:35:58 2015 +0000 +++ b/Date.h Thu Apr 23 09:02:20 2015 +0000 @@ -1,3 +1,17 @@ +/*********************************** +name: date.h Version: 0.2 +author: PE HTL BULME +email: pe@bulme.at +description: + Real Time Clock (RTC8563) on HIMBED M0 - LPC11U24 + class Date inherited from class RTC8563 + Example methode GetDay implemented +ToDo: + implement GetYear, GetMonth; + Constructor to initialize Date on RTC + Alarm methode +***********************************/ + #include "mbed.h" #include "const.h" #include "RTC8563.h" @@ -7,13 +21,14 @@ #define DATE_H class Date : public RTC8563 // Date abgeleitet von RTC8563 { -private: +protected: uint8_t bcdToUint(uint8_t const nybbles); // private Methode string toString(uint8_t value); public: Date() // Standard Konstruktor - {} + { + } uint8_t GetDay(); // Methode }; #endif \ No newline at end of file