Modified hello world - usb debug message only

Dependencies:   mbed

Fork of mDot_helloworld by MultiTech

Committer:
kellybs1
Date:
Mon Aug 21 05:02:12 2017 +0000
Revision:
3:f68c206a52db
Parent:
2:9682d754c902
First commit.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mfiore 0:fdc94d24e54a 1 /*************************************
kellybs1 2:9682d754c902 2 * This simple example program prints
kellybs1 2:9682d754c902 3 * a message on the USB debug port.
mfiore 0:fdc94d24e54a 4 ************************************/
mfiore 0:fdc94d24e54a 5
mfiore 0:fdc94d24e54a 6 #include "mbed.h"
mfiore 0:fdc94d24e54a 7
mfiore 0:fdc94d24e54a 8 int main() {
kellybs1 2:9682d754c902 9 int count = 0;
kellybs1 2:9682d754c902 10 // print the message on 3s interval
mfiore 0:fdc94d24e54a 11 while (true) {
kellybs1 2:9682d754c902 12 count++;
kellybs1 2:9682d754c902 13 printf("Hello world! I am an mDot and I count %d\r\n", count);
kellybs1 2:9682d754c902 14 wait(3);
mfiore 0:fdc94d24e54a 15 }
mfiore 0:fdc94d24e54a 16 }