Library thread Blink Led or other processes use RTOS

Dependents:   LedsThreading

Fork of BlinkLed by Satoshi Togawa

Example

https://developer.mbed.org/users/AVELARDEV/code/LedsThreading/

Files at this revision

API Documentation at this revision

Comitter:
togayan
Date:
Mon Dec 24 06:38:42 2012 +0000
Parent:
1:54071e781f77
Child:
3:f317d057edde
Commit message:
Add "isBlinking()" method.

Changed in this revision

BlinkLed.cpp Show annotated file Show diff for this revision Revisions of this file
BlinkLed.h Show annotated file Show diff for this revision Revisions of this file
--- a/BlinkLed.cpp	Sat Sep 01 11:08:44 2012 +0000
+++ b/BlinkLed.cpp	Mon Dec 24 06:38:42 2012 +0000
@@ -27,6 +27,11 @@
     pause = true;
 }
 
+bool BlinkLed::isBlinking()
+{
+    return !pause;
+}
+
 void BlinkLed::blink(void const *argument)
 {
     BlinkLed* self = (BlinkLed*)argument;
--- a/BlinkLed.h	Sat Sep 01 11:08:44 2012 +0000
+++ b/BlinkLed.h	Mon Dec 24 06:38:42 2012 +0000
@@ -25,6 +25,10 @@
     /** Finish biinking
      */
     void finishBlink();
+    
+    /** Check biinking
+     */
+    bool isBlinking();
       
 private:
     /** Copy constructor