Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
PirSensor.h
00001 #ifndef PIRSENSOR_H 00002 #define PIRSENSOR_H 00003 00004 #include "mbed.h" 00005 00006 00007 00008 class PirSensor { 00009 00010 00011 public: 00012 /** 00013 * @brief 00014 */ 00015 PirSensor(PinName pin); 00016 00017 PirSensor(); 00018 00019 /** 00020 * @brief Handle the event about door status. 00021 * @param func handle of function. 00022 */ 00023 void handleCallback(Callback<void()> func); 00024 private: 00025 InterruptIn *interruptPin; 00026 00027 }; 00028 00029 00030 00031 00032 00033 00034 #endif
Generated on Thu Jul 21 2022 09:30:48 by
1.7.2