![](/media/cache/profiles/4cd5a0b6bc293f1e306e0d23170d649c.jpg.50x50_q85.jpg)
rtc class
Fork of rtc_class by
Diff: DateString.cpp
- Revision:
- 6:ebe2350041f1
- Child:
- 7:1e1e0af5d32e
diff -r fc8c66a7c87a -r ebe2350041f1 DateString.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DateString.cpp Thu Apr 23 10:12:17 2015 +0000 @@ -0,0 +1,14 @@ +#include "DateString.h" +#include "RTC8563.h" + +// 2. Methode ueberschreiben +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-Operator + // 3. Erweitern von Methoden der Basisklasse + day = day-5; + return day; +} \ No newline at end of file