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
Datestr.cpp
- Committer:
- fpucher
- Date:
- 2018-11-15
- Revision:
- 0:397b5462e6d7
File content as of revision 0:397b5462e6d7:
#include "Datestr.h" #include "string" string Datestr::toString(uint8_t value) { //return std::to_string(value); // C++ version 11 char buffer[2]; sprintf (buffer, "%d", value); // ToString() return buffer; } string Datestr::GetDay(uint8_t value) { day = "Datestr " + toString(value); return day; }