![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
.
Fork of rtc_func by
main.cpp
- Committer:
- Deixi
- Date:
- 2015-04-22
- Revision:
- 4:357c5386a78c
- Parent:
- 3:f75062350241
File content as of revision 4:357c5386a78c:
/*********************************** 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" Serial pc(USBTX, USBRX); uint8_t year, month, day; int main() { Date rtc; // instanziieren des Objektes rtc while(1) { pc.printf("%x.%x.20%x\n", rtc.GetDay(), rtc.GetMonth(), rtc.GetYear()); pc.printf("%x:%x:%x\n", rtc.GetHour(), rtc.GetMinute(), rtc.GetSecond()); wait(1); } }