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:b1c9240ca79d, 2016-10-04 (annotated)
- Committer:
- andrewfelch
- Date:
- Tue Oct 04 22:19:54 2016 +0000
- Revision:
- 0:b1c9240ca79d
First commit - blinks LED on pin p17. Fails to export from online mbed compiler.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| andrewfelch | 0:b1c9240ca79d | 1 | #include "mbed.h" |
| andrewfelch | 0:b1c9240ca79d | 2 | |
| andrewfelch | 0:b1c9240ca79d | 3 | DigitalOut myLED(p17); |
| andrewfelch | 0:b1c9240ca79d | 4 | |
| andrewfelch | 0:b1c9240ca79d | 5 | int main( void ) |
| andrewfelch | 0:b1c9240ca79d | 6 | { |
| andrewfelch | 0:b1c9240ca79d | 7 | while(1) |
| andrewfelch | 0:b1c9240ca79d | 8 | { |
| andrewfelch | 0:b1c9240ca79d | 9 | myLED = 1; |
| andrewfelch | 0:b1c9240ca79d | 10 | wait(0.5); |
| andrewfelch | 0:b1c9240ca79d | 11 | myLED = 0; |
| andrewfelch | 0:b1c9240ca79d | 12 | wait(0.5); |
| andrewfelch | 0:b1c9240ca79d | 13 | } |
| andrewfelch | 0:b1c9240ca79d | 14 | } |