Library thread Blink Led or other processes use RTOS
Fork of BlinkLed by
Example
https://developer.mbed.org/users/AVELARDEV/code/LedsThreading/
Revision 2:1d0c09c1a8b4, committed 2012-12-24
- 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