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.
Revision 1:2822dea4758f, committed 2019-05-24
- Comitter:
- seviii
- Date:
- Fri May 24 08:56:30 2019 +0000
- Parent:
- 0:28d15d9583a9
- Commit message:
- new blinking pattern
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri May 24 08:52:33 2019 +0000
+++ b/main.cpp Fri May 24 08:56:30 2019 +0000
@@ -4,12 +4,11 @@
DigitalOut myled2(LED2);
int main() {
+ int i = 0;
while(1) {
- myled = 1;
- myled2 = 0;
- wait(0.5);
- myled = 0;
- myled2 = 0;
- wait(0.5);
+ myled = i & 1;
+ myled2 = i & 2;
+ wait(0.25);
+ i++;
}
}