![](/media/cache/group/Thundersoft-new.png.50x50_q85.png)
Creating a project about PriSensor for TT_Mxx
PirSensor/PirSensor.h
- Committer:
- ThunderSoft
- Date:
- 2019-03-21
- Revision:
- 0:8f7f050af5a8
File content as of revision 0:8f7f050af5a8:
#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