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.
Dependencies: mbed
main.cpp@0:79b0bfe9e996, 2019-02-25 (annotated)
- Committer:
- kanicolaus
- Date:
- Mon Feb 25 20:38:28 2019 +0000
- Revision:
- 0:79b0bfe9e996
(Karl): Initial commit
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| kanicolaus | 0:79b0bfe9e996 | 1 | #include "mbed.h" |
| kanicolaus | 0:79b0bfe9e996 | 2 | |
| kanicolaus | 0:79b0bfe9e996 | 3 | DigitalOut myled(LED1); |
| kanicolaus | 0:79b0bfe9e996 | 4 | |
| kanicolaus | 0:79b0bfe9e996 | 5 | int main() { |
| kanicolaus | 0:79b0bfe9e996 | 6 | while(1) { |
| kanicolaus | 0:79b0bfe9e996 | 7 | myled = 1; |
| kanicolaus | 0:79b0bfe9e996 | 8 | wait(0.2); |
| kanicolaus | 0:79b0bfe9e996 | 9 | myled = 0; |
| kanicolaus | 0:79b0bfe9e996 | 10 | wait(0.2); |
| kanicolaus | 0:79b0bfe9e996 | 11 | } |
| kanicolaus | 0:79b0bfe9e996 | 12 | } |

