A cute tiny piece of code implementing an IoT NAND device, demonstrating how to setup and advertise a cute GATT (NAND) service. The code has been tested on a Nordic nRF51822-DK.
Dependencies: BLE_API mbed nRF51822
Fork of BLE_HeartRate_IDB0XA1 by
bricks/stop.h
- Committer:
- hux
- Date:
- 2018-05-19
- Revision:
- 26:dce30a5341bb
- Parent:
- 25:339931243be4
File content as of revision 26:dce30a5341bb:
// 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_