Modified hello world - usb debug message only

Dependencies:   mbed

Fork of mDot_helloworld by MultiTech

Revision:
2:9682d754c902
Parent:
1:34c1fcb8ea5a
diff -r 34c1fcb8ea5a -r 9682d754c902 main.cpp
--- a/main.cpp	Tue Jul 07 14:09:33 2015 +0000
+++ b/main.cpp	Sat Aug 05 13:12:56 2017 +0000
@@ -1,34 +1,16 @@
 /*************************************
- * This simple example program blinks
- * a LED and prints a message out the
- * USB debug port.
+ * This simple example program prints 
+ * a message on the USB debug port.
  ************************************/
 
 #include "mbed.h"
 
-// Uncomment this line if using a full sized UDK2.0 instead of a Micro UDK
-// #define UDK2 1
-
-#ifdef UDK2
-DigitalOut led(LED1);
-#else
-DigitalOut led(XBEE_RSSI);
-#endif
-
-Ticker tick;
-
-// callback function to change LED state
-void blink() {
-    led = !led;
-}
-
 int main() {
-    // configure the Ticker to blink the LED on 500ms interval
-    tick.attach(&blink, 0.5);
-    
-    // print the message on 2s interval
+    int count = 0;
+    // print the message on 3s interval
     while (true) {
-        printf("Hello world!\r\n");
-        wait(2);
+        count++;
+        printf("Hello world! I am an mDot and I count %d\r\n", count);
+        wait(3);
     }
 }
\ No newline at end of file