Rtc class

Dependencies:   RTC8563 mbed

Fork of rtc_class by HIMBED_3AHELI

Revision:
6:a52551f2f398
diff -r fc8c66a7c87a -r a52551f2f398 DateString.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/DateString.cpp	Thu Apr 30 10:48:30 2015 +0000
@@ -0,0 +1,25 @@
+#include "DateString.h"
+#include "RTC8563.h"
+// 2. Methode überschreiben
+uint8_t DateString::GetDay()
+{
+    //uint8_t day = rtc_read(DAYS);
+    //return bcdToUint(day & 0x3F);
+    uint8_t day = Date::GetDay(); //Aufruf der GetDay-Methode aus basisklasse Date mit Scope-Op
+    //3. Erweitern von Methoden der Basisklasse
+    day = day -5;
+    return day;
+}
+
+uint8_t DateString::GetNextDay()
+{
+    uint8_t day = GetDay();
+    return ++day;
+}
+
+string DateString::GetDay(string str)
+{
+    string day = str + " In Date Day: " + toString(GetDay());
+    return day;
+}
+