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@1:039688a53fff, 2014-11-24 (annotated)
- 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?
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 | 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 | } |