RTC Lib & Output

Dependencies:   LM75B RTC8563 mbed

Revision:
2:101ad0c50fe1
Child:
3:08812f743fea
diff -r 9d545a2abf32 -r 101ad0c50fe1 Date.cpp
--- /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