vererbung

Dependencies:   RTC8563 mbed

Revision:
0:b65c5f2413b0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Apr 30 10:13:44 2015 +0000
@@ -0,0 +1,49 @@
+/***********************************
+name:   main.cpp    Version: 0.1
+author: PE HTL BULME
+email:  pe@bulme.at
+description:
+    Real Time Clock (RTC8563) 
+    on HIMBED M0 - LPC11U24 
+    class Date inherited from class RTC8563
+    Example methode GetDay implemented 
+ToDo: 
+    implement year, month;
+***********************************/
+#include "mbed.h"
+#include "const.h"
+#include "RTC8563.h"
+#include "string"
+#include "Date.h"
+#include "DateString.h"
+ 
+Serial pc(USBTX, USBRX);
+ 
+uint8_t year, month, day;
+ 
+int main()
+{
+    Date *pBoth;
+    DateString ds;
+    
+    
+    
+    Date rtc;  // instanziieren des Objektes rtc
+ 
+    while(1) {
+        pc.printf("DateString.Day: %i\n", rtc.GetDay());
+        pc.printf("DateString.GetDay: %s\n", rtc.GetDay("Where am I?"));
+                wait(1);
+    }
+}
+            
+
+/*Ask a question Start a discussion
+Repository toolbox
+
+Embed:
+Import this program
+Export to desktop IDE
+Build repository
+Send Pull Request from here
+*/
\ No newline at end of file