Creating a project for TT_Mxx

main.cpp

Committer:
ThunderSoft
Date:
2019-04-26
Revision:
1:c55bc0872920
Parent:
0:a0f5041497e4

File content as of revision 1:c55bc0872920:

#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)
    {

    }
}