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.
Diff: main.cpp
- Revision:
- 2:cf14d4fb9e33
- Parent:
- 1:d2cce2700a45
diff -r d2cce2700a45 -r cf14d4fb9e33 main.cpp
--- a/main.cpp Mon Dec 16 18:22:18 2019 +0000
+++ b/main.cpp Mon Dec 16 18:30:19 2019 +0000
@@ -17,7 +17,12 @@
void shiftled()
{
- leds = leds | leds << 1;
+ leds = leds << 1;
+ leds = leds | 0b0010;
+ if ( leds == 0b1111)
+ {
+ leds = leds ^ 0b1111;
+ }
}
void turn_led2_on()