Rtc class

Dependencies:   RTC8563 mbed

Fork of rtc_class by HIMBED_3AHELI

main.cpp

Committer:
Andi104
Date:
2015-04-30
Revision:
6:a52551f2f398
Parent:
5:fc8c66a7c87a

File content as of revision 6:a52551f2f398:

/***********************************
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;  // instanziieren des Objektes ds
    Date d;         //Instanziieren des Objektes d
    pBoth = &d;      //
 
    while(1) {
        //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);
    }
}