![](/media/cache/group/HIMBED0.jpg.50x50_q85.jpg)
functions from rtc_func transferred to class RTC8563
Fork of rtc_func by
Goto Inhalt
Diff: DateString.cpp
- Revision:
- 11:83c6939656e5
- Parent:
- 8:54a6f83a2339
diff -r 83be0e4edb52 -r 83c6939656e5 DateString.cpp --- a/DateString.cpp Thu Apr 23 10:44:24 2015 +0000 +++ b/DateString.cpp Thu Apr 30 10:54:02 2015 +0000 @@ -1,20 +1,11 @@ #include "DateString.h" #include "RTC8563.h" -// https://developer.mbed.org/teams/HIMBED_3AHELI/code/rtc_func/wiki/Klasse-DateString-von-Date-ableiten - -// 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 + uint8_t day = Date::GetDay(); day = day-5; return day; } - -// 4. Definieren neuer Methoden uint8_t DateString::GetNextDay() { uint8_t day = GetDay();