just test only

Dependencies:   mbed

main.cpp

Committer:
joshchen
Date:
2014-11-24
Revision:
1:9bdf91a6bf64
Parent:
0:b0921be5eb9d

File content as of revision 1:9bdf91a6bf64:

#include "mbed.h"

//------------------------------------
// Hyperterminal configuration
// 9600 bauds, 8-bit data, no parity
//------------------------------------

Serial pc(SERIAL_TX, SERIAL_RX);
 
DigitalOut myled(LED4);
 
int main() {
  int i = 1;
  pc.printf("Hello World !\n");
  while(1) { 
      pc.printf("This program runs since %d seconds.\n", i++);
      wait(1);
      myled = !myled;
  }
}