![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
A blue button is always a nice toy ...
Dependencies: BLE_API X_NUCLEO_IDB0XA1 mbed
Fork of BLE_HeartRate_IDB0XA1 by
Diff: bricks/stop.h
- Revision:
- 28:307f58df778a
diff -r 32267cee7cb8 -r 307f58df778a bricks/stop.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bricks/stop.h Sun Oct 01 12:48:58 2017 +0000 @@ -0,0 +1,19 @@ +// stop.h - stop button functionality + +#ifndef _STOP_H_ +#define _STOP_H_ + +#include <mbed.h> + + class StopButton : private InterruptIn + { + public: + void set(); // set stop request + void clear(); // clear stop request + bool request(); // stop requested? + + public: // construction + StopButton(PinName pin = USER_BUTTON); + }; + +#endif // _STOP_H_ \ No newline at end of file