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: Encoder HIDScope MODSERIAL mbed QEI biquadFilter
Revision 35:3a10a5c9b8e5, committed 2015-10-15
- Comitter:
- bscheltinga
- Date:
- Thu Oct 15 14:25:41 2015 +0000
- Parent:
- 34:7c51b08f1aa2
- Commit message:
- Voids kleuren kort in script;
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Oct 15 14:16:29 2015 +0000
+++ b/main.cpp Thu Oct 15 14:25:41 2015 +0000
@@ -7,58 +7,11 @@
const double on = 0;
-void red()
-{
- debug_led_red=on;
- debug_led_blue=off;
- debug_led_green=off;
-}
-
-void blue()
-{
- debug_led_red=off;
- debug_led_blue=on;
- debug_led_green=off;
-}
-
-void green()
-{
- debug_led_red=off;
- debug_led_blue=off;
- debug_led_green=on;
-}
-
-void white()
-{
- debug_led_red=on;
- debug_led_blue=on;
- debug_led_green=on;
-}
-
-void yellow()
-{
- debug_led_red=on;
- debug_led_blue=off;
- debug_led_green=on;
-}
-
-void cyan()
-{
- debug_led_red=off;
- debug_led_blue=on;
- debug_led_green=on;
-}
-
-void purple()
-{
- debug_led_red=on;
- debug_led_blue=on;
- debug_led_green=off;
-}
-
-void black()
-{
- debug_led_red=off;
- debug_led_blue=off;
- debug_led_green=off;
-}
\ No newline at end of file
+void red() { debug_led_red=on; debug_led_blue=off; debug_led_green=off; }
+void blue() { debug_led_red=off; debug_led_blue=on; debug_led_green=off; }
+void green() { debug_led_red=off; debug_led_blue=off; debug_led_green=on; }
+void white() { debug_led_red=on; debug_led_blue=on; debug_led_green=on; }
+void yellow() { debug_led_red=on; debug_led_blue=off; debug_led_green=on; }
+void cyan() { debug_led_red=off; debug_led_blue=on; debug_led_green=on; }
+void purple() { debug_led_red=on; debug_led_blue=on; debug_led_green=off; }
+void black() { debug_led_red=off; debug_led_blue=off; debug_led_green=off; }
