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

Committer:
togayan
Date:
Sun Feb 09 09:05:25 2014 +0000
Revision:
0:86ab67787717
Child:
1:f8713c387a68
Working to change to the clock

Who changed what in which revision?

UserRevisionLine numberNew contents of line
togayan 0:86ab67787717 1 #ifndef CLOCK_VIEW_MODEL_H
togayan 0:86ab67787717 2 #define CLOCK_VIEW_MODEL_H
togayan 0:86ab67787717 3
togayan 0:86ab67787717 4 #include "mbed.h"
togayan 0:86ab67787717 5 #include "I2cLCD/I2cLCD.h"
togayan 0:86ab67787717 6
togayan 0:86ab67787717 7 namespace ViewModel
togayan 0:86ab67787717 8 {
togayan 0:86ab67787717 9 class ClockViewModel
togayan 0:86ab67787717 10 {
togayan 0:86ab67787717 11 public:
togayan 0:86ab67787717 12 ClockViewModel(I2cLCD& i2clcd);
togayan 0:86ab67787717 13
togayan 0:86ab67787717 14 void initialize();
togayan 0:86ab67787717 15 void renew();
togayan 0:86ab67787717 16 void informHalfSec();
togayan 0:86ab67787717 17
togayan 0:86ab67787717 18 private:
togayan 0:86ab67787717 19 I2cLCD& m_i2clcd;
togayan 0:86ab67787717 20 unsigned int m_sec;
togayan 0:86ab67787717 21 };
togayan 0:86ab67787717 22 }
togayan 0:86ab67787717 23
togayan 0:86ab67787717 24 #endif // CLOCK_VIEW_MODEL_H