A blue button is always a nice toy ...

Dependencies:   BLE_API X_NUCLEO_IDB0XA1 mbed

Fork of BLE_HeartRate_IDB0XA1 by ST

Committer:
hux
Date:
Sun Oct 01 12:48:58 2017 +0000
Revision:
28:307f58df778a
A blue button is always a nice toy ...

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hux 28:307f58df778a 1 // stop.h - stop button functionality
hux 28:307f58df778a 2
hux 28:307f58df778a 3 #ifndef _STOP_H_
hux 28:307f58df778a 4 #define _STOP_H_
hux 28:307f58df778a 5
hux 28:307f58df778a 6 #include <mbed.h>
hux 28:307f58df778a 7
hux 28:307f58df778a 8 class StopButton : private InterruptIn
hux 28:307f58df778a 9 {
hux 28:307f58df778a 10 public:
hux 28:307f58df778a 11 void set(); // set stop request
hux 28:307f58df778a 12 void clear(); // clear stop request
hux 28:307f58df778a 13 bool request(); // stop requested?
hux 28:307f58df778a 14
hux 28:307f58df778a 15 public: // construction
hux 28:307f58df778a 16 StopButton(PinName pin = USER_BUTTON);
hux 28:307f58df778a 17 };
hux 28:307f58df778a 18
hux 28:307f58df778a 19 #endif // _STOP_H_