![](/media/cache/group/Thundersoft-new.png.50x50_q85.png)
Creating a project about PriSensor for TT_Mxx
Diff: PirSensor/PirSensor.h
- Revision:
- 0:8f7f050af5a8
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PirSensor/PirSensor.h Thu Mar 21 10:01:07 2019 +0000 @@ -0,0 +1,34 @@ +#ifndef PIRSENSOR_H +#define PIRSENSOR_H + +#include "mbed.h" + + + +class PirSensor { + + +public: + /** + * @brief + */ + PirSensor(PinName pin); + + PirSensor(); + + /** + * @brief Handle the event about door status. + * @param func handle of function. + */ + void handleCallback(Callback<void()> func); +private: + InterruptIn *interruptPin; + +}; + + + + + + +#endif