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:53eb520b0dd0, committed 2013-05-30
- Comitter:
- ogata_lab
- Date:
- Thu May 30 04:18:21 2013 +0000
- Parent:
- 0:5b7f7c162ffd
- Commit message:
- update logic
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 5b7f7c162ffd -r 53eb520b0dd0 main.cpp
--- a/main.cpp Wed May 29 02:07:54 2013 +0000
+++ b/main.cpp Thu May 30 04:18:21 2013 +0000
@@ -7,15 +7,15 @@
for (int i = 0;i < 4;i++) {
leds[i] = 1;
if (i-1 >= 0) {
- leds[i] = 0;
+ leds[i-1] = 0;
}
wait(0.5);
}
for (int i = 0;i < 4;i++) {
leds[3-i] = 1;
- if (i+1 <= 3) {
- leds[i] = 0;
+ if (3-i+1 <= 3) {
+ leds[3-i+1] = 0;
}
wait(0.5);
}