![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
RTC Lib & Output
Dependencies: LM75B RTC8563 mbed
Diff: Date.cpp
- Revision:
- 2:101ad0c50fe1
- Child:
- 3:08812f743fea
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Date.cpp Thu Apr 16 11:24:40 2015 +0000 @@ -0,0 +1,31 @@ +#include "Date.h" +#include "const.h" +#include "mbed.h" + +// Date +uint8_t Date::getDay() +{ + return read(DAYS); +} +uint8_t Date::getMonth() +{ + return read(MONTHS); +} +uint8_t Date::getYear() +{ + return read(YEARS); +} + +// Time +uint8_t Date::getHours() +{ + return read(HOURS); +} +uint8_t Date::getMinutes() +{ + return read(MINUTES); +} +uint8_t Date::getSeconds() +{ + return read(SECONDS); +} \ No newline at end of file