Rtc class

Dependencies:   RTC8563 mbed

Fork of rtc_class by HIMBED_3AHELI

Revision:
6:a52551f2f398
Parent:
5:fc8c66a7c87a
diff -r fc8c66a7c87a -r a52551f2f398 main.cpp
--- 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