7 segment display library for mbed This routine support 2,4 and 8 digit anode-common or cathode-common LED.

Dependents:   7segMbed

Revision:
9:6d3229c8dc0f
Parent:
7:a19431131213
Child:
10:1b8dbe52e5a8
--- a/Sseg.cpp	Sun Sep 21 08:32:50 2014 +0000
+++ b/Sseg.cpp	Mon Jan 12 08:18:59 2015 +0000
@@ -291,6 +291,7 @@
 }
 
 void Sseg::updateWithDelay(int ms) {
+    timer.reset();  // to avoid overflow 32bit counter  (~=30min)
     int start = timer.read_ms();
     do {
         bool sync = update();