For Contest

Dependencies:   BLE_API HCSR04 X_NUCLEO_IDB0XA1 mbed

Fork of contest_IOT6 by Contest IOT GSE5

Revision:
0:028fac66239d
Child:
1:e9d1c42a73ae
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Feb 21 10:34:55 2014 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+ 
+Serial pc(SERIAL_TX, SERIAL_RX);
+ 
+DigitalOut myled(LED1);
+ 
+int main() {
+  int i = 1;
+  pc.printf("Hello World !\n");
+  while(1) { 
+      wait(1);
+      pc.printf("This program runs since %d seconds.\n", i++);
+      myled = !myled;
+  }
+}
+ 
\ No newline at end of file