A blue button is always a nice toy ...
Dependencies: BLE_API X_NUCLEO_IDB0XA1 mbed
Fork of BLE_HeartRate_IDB0XA1 by
stop.h
00001 // stop.h - stop button functionality 00002 00003 #ifndef _STOP_H_ 00004 #define _STOP_H_ 00005 00006 #include <mbed.h> 00007 00008 class StopButton : private InterruptIn 00009 { 00010 public: 00011 void set(); // set stop request 00012 void clear(); // clear stop request 00013 bool request(); // stop requested? 00014 00015 public: // construction 00016 StopButton(PinName pin = USER_BUTTON); 00017 }; 00018 00019 #endif // _STOP_H_
Generated on Wed Jul 20 2022 11:41:13 by 1.7.2