TOF based Presence Detector

Dependencies:   BLE_API X_NUCLEO_6180XA1 X_NUCLEO_IDB0XA1 mbed

Fork of BLE_HeartRate_IDB0XA1 by ST

Revision:
28:a23b16555909
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bricks/stop.h	Mon Aug 20 16:42:59 2018 +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