RTC on M0 and class design without rtc and target

Quote:

Example for training purposes only!!!

RTC/I2C data for target LPC11U24 Humer M0-Board and no data for others!!!

See RTC WIKI

RTC Class Hierarchy

RTC Example Main Program

Datestr.h

Committer:
fpucher
Date:
2018-11-15
Revision:
0:397b5462e6d7

File content as of revision 0:397b5462e6d7:

#include "mbed.h"
#include "const.h"
#include "rtc.h"
#include "string"
#include "Date.h"

#ifndef DATESTR_H
#define DATESTR_H

class A
{
protected:
    string test;
public:
    void Print(int anzahl, string r);
    void Print(string r);
};
class B : public A
{
private:
    int anzahl;
public:
    void Print(string nr);
    using A::Print;
};




class Datestr : public Date
{
    private:
    string day, month, year;
    string toString(uint8_t value);
    
    public:
//    string day, month, year;
    Datestr()
    {}
    virtual string GetDay(uint8_t value);
    using Date::GetDay;     // ermöglicht den Aufruf der Methode in Basisklasse Date, sonst Error 165
};
#endif