A small library that's provide helpers for programmers
Diff: MyBlinker.cpp
- Revision:
- 2:6cc4c56940af
- Parent:
- 1:ee7a5f05513d
--- a/MyBlinker.cpp Tue Feb 17 11:55:34 2015 +0000 +++ b/MyBlinker.cpp Fri Mar 27 16:48:12 2015 +0000 @@ -1,7 +1,9 @@ #include "MyBlinker.h" -MyBlinker::MyBlinker(PwmOut *o, int32_t d, float hState, float lState): MyThread("MyBlinker") { +#define BLINKER_THREAD_STACK_SIZE 128 + +MyBlinker::MyBlinker(PwmOut *o, int32_t d, float hState, float lState): MyThread("MyBlinker",BLINKER_THREAD_STACK_SIZE) { led = o; delay = d; highState = hState; @@ -27,4 +29,4 @@ led->write(lowState); Wait(delay); } -} \ No newline at end of file +}