Library thread Blink Led or other processes use RTOS
Fork of BlinkLed by
Example
https://developer.mbed.org/users/AVELARDEV/code/LedsThreading/
Diff: BlinkLed.cpp
- Revision:
- 2:1d0c09c1a8b4
- Parent:
- 1:54071e781f77
- Child:
- 3:f317d057edde
diff -r 54071e781f77 -r 1d0c09c1a8b4 BlinkLed.cpp --- 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;