hello added to test

source/main.cpp

Committer:
malavikasaji
Date:
2019-05-21
Revision:
2:b5e7d3054ea2
Parent:
1:0c3d41de500f

File content as of revision 2:b5e7d3054ea2:

#include "mbed.h"

Serial pc(USBTX, USBRX); // tx, rx
DigitalOut awakeSignal(LED4);
DigitalOut led1(LED1);

#define SLEEP_TIME                  500 // (msec)

// main() runs in its own thread in the OS
int main()
{
   awakeSignal = 1;
   pc.printf("Hello World!");
   while (true) {
      // Blink LED and wait 0.5 seconds
      led1 = !led1;
      wait_ms(SLEEP_TIME);
   }
}
// testing code release process.