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.
Fork of frdm_gpio by
main.cpp@2:f37d74a0e3e2, 2012-10-24 (annotated)
- Committer:
- emilmont
- Date:
- Wed Oct 24 13:02:53 2012 +0000
- Revision:
- 2:f37d74a0e3e2
- Parent:
- 1:4f62fc36c30d
- Child:
- 5:a03b579ee48d
update mbed library
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| chris | 0:0024ab6b9624 | 1 | #include "mbed.h" |
| chris | 0:0024ab6b9624 | 2 | |
| emilmont | 1:4f62fc36c30d | 3 | int main() { |
| chris | 0:0024ab6b9624 | 4 | DigitalOut gpo(PTB8); |
| chris | 0:0024ab6b9624 | 5 | DigitalOut led(LED_RED); |
| chris | 0:0024ab6b9624 | 6 | |
| emilmont | 2:f37d74a0e3e2 | 7 | while (true) { |
| chris | 0:0024ab6b9624 | 8 | gpo = 1; |
| emilmont | 1:4f62fc36c30d | 9 | led = 1; // Off |
| chris | 0:0024ab6b9624 | 10 | wait(2); |
| chris | 0:0024ab6b9624 | 11 | gpo = 0; |
| emilmont | 1:4f62fc36c30d | 12 | led = 0; // on |
| chris | 0:0024ab6b9624 | 13 | wait(2); |
| chris | 0:0024ab6b9624 | 14 | } |
| chris | 0:0024ab6b9624 | 15 | } |
