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

Files at this revision

API Documentation at this revision

Comitter:
togayan
Date:
Sat Mar 01 00:18:23 2014 +0000
Parent:
5:e374481e7554
Commit message:
Add indicator LED.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r e374481e7554 -r e7073adacdc8 main.cpp
--- a/main.cpp	Fri Feb 28 14:04:16 2014 +0000
+++ b/main.cpp	Sat Mar 01 00:18:23 2014 +0000
@@ -21,6 +21,7 @@
 {
     set_new_handler(no_memory);
 
+    DigitalOut led(LED1);
     I2C i2c(dp5, dp27); //sda scl
     I2cLCD lcd(i2c, dp26); //i2c reset
     Rtc8564 rtc(i2c, dp25, PullUp);
@@ -36,5 +37,10 @@
     clockVm.initialize();
     rtc.initialize();
 
-    while(1);
+    while(1) {
+        led = 1;
+        wait(0.5);
+        led = 0;
+        wait(0.5);
+    }
 }