/ Mbed 2 deprecated Example_printf

Dependencies:   mbed

Committer:
mbedAustin
Date:
Mon Nov 24 18:53:35 2014 +0000
Revision:
1:039688a53fff
Parent:
0:f1ef33a82ddb
Child:
2:b0ec6da021f0
change message

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 1:039688a53fff 6 DigitalOut led(LED1);
mbedAustin 1:039688a53fff 7
mbedAustin 0:f1ef33a82ddb 8 int main() {
mbedAustin 0:f1ef33a82ddb 9 printf("Hello World!\n\r");
mbedAustin 1:039688a53fff 10 while(1){
mbedAustin 1:039688a53fff 11 led = 1;
mbedAustin 1:039688a53fff 12 wait(1);
mbedAustin 1:039688a53fff 13 led = 0;
mbedAustin 1:039688a53fff 14 wait(1);
mbedAustin 1:039688a53fff 15 }
mbedAustin 0:f1ef33a82ddb 16 // Do nothing
mbedAustin 0:f1ef33a82ddb 17 }