Austin Blackstone / Mbed 2 deprecated Example_printf_FixForSomething

Dependencies:   mbed

Fork of Example_printf by -deleted-

Committer:
mbedAustin
Date:
Mon Nov 24 18:58:05 2014 +0000
Revision:
2:b0ec6da021f0
Parent:
1:039688a53fff
have a commit message that makes sense. This commit added a space for demonstration purposes.

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 2:b0ec6da021f0 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 }