
Creating a project about PriSensor for TT_Mxx
main.cpp
- Committer:
- ThunderSoft
- Date:
- 2019-05-15
- Revision:
- 3:65b6e5b2be31
- Parent:
- 0:8f7f050af5a8
File content as of revision 3:65b6e5b2be31:
#include "mbed.h" #include "PirSensor.h" #if __TT_M3HQ__ #define DISPLAY_TMPM_STRING "Welcome to Thundersoft TT_M3HQ" #endif #if __TT_M4G9__ #define DISPLAY_TMPM_STRING "Welcome to Thundersoft TT_M4G9" #endif DigitalOut testLed(LED1); static void pirHandle() { testLed = !testLed; } int main() { printf("%s\r\n",DISPLAY_TMPM_STRING); PirSensor pir; testLed = 1; pir.handleCallback(&pirHandle); while(1) { } }