![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Rtc class
Fork of rtc_class by
Diff: main.cpp
- Revision:
- 6:a52551f2f398
- Parent:
- 5:fc8c66a7c87a
--- a/main.cpp Thu Apr 23 09:02:20 2015 +0000 +++ b/main.cpp Thu Apr 30 10:48:30 2015 +0000 @@ -15,6 +15,7 @@ #include "RTC8563.h" #include "string" #include "Date.h" +#include "DateString.h" Serial pc(USBTX, USBRX); @@ -22,10 +23,17 @@ int main() { - Date rtc; // instanziieren des Objektes rtc + Date *pBoth; + DateString ds; // instanziieren des Objektes ds + Date d; //Instanziieren des Objektes d + pBoth = &d; // while(1) { - pc.printf("Date.Day: %i\n", rtc.GetDay()); + //pc.printf("DateString.Day: %i\n", pBoth->GetDay()); + pBoth = &d + pc.printf("Ueberladen GetDay: %s\n",pBoth->GetDay("Where am I?")); + pBoth = &ds; + pc.printf("Ueberladen GetDay: %s\n",pBoth->GetDay("Where am I?")); wait(1); } } \ No newline at end of file