Thundersoft
/
ReedSwitch_for_TT_Mxx
Creating a project for TT_Mxx
main.cpp
- Committer:
- ThunderSoft
- Date:
- 2019-03-21
- Revision:
- 0:a0f5041497e4
File content as of revision 0:a0f5041497e4:
#include "mbed.h" #include "DoorStatus.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 doorStatusFunc() { testLed = 1; wait_ms(5000); testLed = 0; } int main() { printf("%s\r\n",DISPLAY_TMPM_STRING); DoorStatus door; door.handleCallback(&doorStatusFunc); while(1) { } }