Clock with Real-Time Clock (RTC-8564) and I2C LCD module(SB1062B).

Dependencies:   DebouncedEdgeIn I2cLCD_cursor Rtc8564 mbed beep

/media/uploads/togayan/imgp0004s.jpg /media/uploads/togayan/lcdclock_circuit_rev4.png

Revision:
0:86ab67787717
Child:
1:f8713c387a68
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Feb 09 09:05:25 2014 +0000
@@ -0,0 +1,22 @@
+#include "mbed.h"
+#include "I2cLCD/I2cLCD.h"
+#include "EventMechanism/EventHandler.h"
+#include "I2cRTC/I2cRTC.h"
+#include "ViewModel/ClockViewModel.h"
+
+int main()
+{
+    InterruptIn clockIn(dp1);
+    I2C i2c(dp5, dp27); //sda scl
+    I2cLCD lcd(i2c, dp4); //i2c reset
+    EventMechanism::EventHandler evHandler;
+    ViewModel::ClockViewModel clockVM(lcd);
+    I2cRTC rtc(clockIn, dp2, i2c, &evHandler, &clockVM);
+
+    clockVM.initialize();
+    evHandler.start();
+    wait(0.25);
+    rtc.start();
+
+    while(1);
+}