Thundersoft
/
ReedSwitch_for_TT_Mxx
Creating a project for TT_Mxx
Diff: main.cpp
- Revision:
- 0:a0f5041497e4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Mar 21 10:08:02 2019 +0000 @@ -0,0 +1,33 @@ +#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) + { + + } +}