/ Mbed 2 deprecated Example_printf

Dependencies:   mbed

Committer:
mbedAustin
Date:
Tue Oct 07 02:15:37 2014 +0000
Revision:
0:f1ef33a82ddb
Child:
1:039688a53fff
Example printf program. Demonstrates the use of printf to print hello world.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbedAustin 0:f1ef33a82ddb 1 //
mbedAustin 0:f1ef33a82ddb 2 // This program prints "Hello World" to the terminal
mbedAustin 0:f1ef33a82ddb 3 //
mbedAustin 0:f1ef33a82ddb 4 #include "mbed.h"
mbedAustin 0:f1ef33a82ddb 5
mbedAustin 0:f1ef33a82ddb 6 int main() {
mbedAustin 0:f1ef33a82ddb 7 printf("Hello World!\n\r");
mbedAustin 0:f1ef33a82ddb 8 while(1);
mbedAustin 0:f1ef33a82ddb 9 // Do nothing
mbedAustin 0:f1ef33a82ddb 10 }