Creating a project about PriSensor for TT_Mxx

PirSensor/PirSensor.h

Committer:
ThunderSoft
Date:
2019-05-15
Revision:
3:65b6e5b2be31
Parent:
0:8f7f050af5a8

File content as of revision 3:65b6e5b2be31:

#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