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:f37ec9490923, 2015-10-22 (annotated)
- Committer:
- Toary
- Date:
- Thu Oct 22 10:46:46 2015 +0000
- Revision:
- 0:f37ec9490923
created my library
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Toary | 0:f37ec9490923 | 1 | #include "mbed.h" |
| Toary | 0:f37ec9490923 | 2 | #include "Led.h" |
| Toary | 0:f37ec9490923 | 3 | |
| Toary | 0:f37ec9490923 | 4 | Led red("red"); |
| Toary | 0:f37ec9490923 | 5 | |
| Toary | 0:f37ec9490923 | 6 | int main() |
| Toary | 0:f37ec9490923 | 7 | { |
| Toary | 0:f37ec9490923 | 8 | while(1) |
| Toary | 0:f37ec9490923 | 9 | { |
| Toary | 0:f37ec9490923 | 10 | red.On(); |
| Toary | 0:f37ec9490923 | 11 | wait(0.5); |
| Toary | 0:f37ec9490923 | 12 | red.Off(); |
| Toary | 0:f37ec9490923 | 13 | wait(0.5); |
| Toary | 0:f37ec9490923 | 14 | } |
| Toary | 0:f37ec9490923 | 15 | } |