Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp@0:f1ef33a82ddb, 2014-10-07 (annotated)
- 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?
User | Revision | Line number | New 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 | } |