![](/media/cache/profiles/c74a9582fa5f0724139a27f258f2ef22.jpg.50x50_q85.png)
class
Fork of rtc_class by
Diff: main.cpp
- Revision:
- 3:0de441ee46ce
- Parent:
- 2:c3120898fc96
--- a/main.cpp Thu Apr 16 10:25:35 2015 +0000 +++ b/main.cpp Thu Apr 30 10:49:12 2015 +0000 @@ -13,6 +13,7 @@ #include "const.h" #include "RTC8563.h" #include "string" +#include "date.h" Serial pc(USBTX, USBRX); //I2C i2c(p28, p27); @@ -23,12 +24,14 @@ int main() { - RTC8563 rtc; // instanziieren des Objektes rtc + Date rtc; // instanziieren des Objektes rtc pc.printf("Setting up RTC\n"); //rtc.rtc_init(); while(1) { + + pc.printf("_____Date: %i",rtc.GetDay()); //printTime(); year = rtc.rtc_read(YEARS); // Aufruf der Methode rtc_read der Instanz (Objekt) rtc month = rtc.rtc_read(MONTHS);