Simple Debug LED or indicator class, runs in background for minimal code disruption. 5 Modes with some special functions

Dependents:   Flasher_HelloWorld

Revision:
1:e94a73b015cc
Parent:
0:5c6eb2d20a5a
--- a/Flasher.cpp	Sat Feb 19 14:27:21 2011 +0000
+++ b/Flasher.cpp	Sat Feb 26 13:17:23 2011 +0000
@@ -137,3 +137,14 @@
         return statein;
     }
 }
+
+Flasher& Flasher::operator= (int statein)
+{
+    updateFlash(statein);
+    return *this;
+}
+
+Flasher::operator int()
+{
+    return state;
+}