4 errors

Dependencies:   KS0108_PCF8574 mbed

Revision:
3:ec80bb6ff5da
Parent:
0:936f1c020120
diff -r 66e4ebaba5df -r ec80bb6ff5da menbed/menbedRefresher.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/menbed/menbedRefresher.cpp	Tue Sep 11 10:21:10 2012 +0000
@@ -0,0 +1,22 @@
+#include "mbed.h"
+#include "include/menbedRefresher.h"
+#include "include/menbedNavigator.h"
+
+MenbedRefresher::MenbedRefresher (MenbedNavigator *navigator) :
+    navigator(navigator), refreshPeriod_us(50000)
+{
+    ticker.attach_us (navigator, &MenbedNavigator::updateDisplay, refreshPeriod_us);
+}
+
+MenbedRefresher::MenbedRefresher (MenbedNavigator *navigator, uint32_t refreshPeriod_us) :
+    navigator(navigator), refreshPeriod_us(refreshPeriod_us)
+{
+    ticker.attach_us (navigator, &MenbedNavigator::updateDisplay, refreshPeriod_us);
+}
+
+void MenbedRefresher::refreshed (void)
+{
+    // Detatch and then re-attached the ticker to reset it
+    ticker.detach();
+    ticker.attach_us (navigator, &MenbedNavigator::updateDisplay, refreshPeriod_us);
+}
\ No newline at end of file