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 HelloWorld by
main.cpp@3:2f34ca53e195, 2013-09-26 (annotated)
- Committer:
- Irappa
- Date:
- Thu Sep 26 05:23:29 2013 +0000
- Revision:
- 3:2f34ca53e195
- Parent:
- 2:f9695f5ad808
tenet tech
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
simon | 0:fb6bbc10ffa0 | 1 | #include "mbed.h" |
simon | 0:fb6bbc10ffa0 | 2 | |
simon | 0:fb6bbc10ffa0 | 3 | DigitalOut myled(LED1); |
Irappa | 2:f9695f5ad808 | 4 | DigitalOut myled2(LED2); |
simon | 0:fb6bbc10ffa0 | 5 | |
simon | 0:fb6bbc10ffa0 | 6 | int main() { |
simon | 0:fb6bbc10ffa0 | 7 | while(1) { |
simon | 0:fb6bbc10ffa0 | 8 | myled = 1; |
Irappa | 2:f9695f5ad808 | 9 | myled2 = 0; |
Irappa | 3:2f34ca53e195 | 10 | wait(0.1); |
simon | 0:fb6bbc10ffa0 | 11 | myled = 0; |
Irappa | 2:f9695f5ad808 | 12 | myled2 = 1; |
Irappa | 3:2f34ca53e195 | 13 | wait(0.1); |
simon | 0:fb6bbc10ffa0 | 14 | } |
simon | 0:fb6bbc10ffa0 | 15 | } |