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: C12832 MMA7660 mbed
Diff: color.cpp
- Revision:
- 5:614e3ac042df
- Parent:
- 4:d61f6d186db0
- Child:
- 7:8b0019dd26d3
diff -r d61f6d186db0 -r 614e3ac042df color.cpp
--- a/color.cpp Wed Mar 07 10:57:16 2018 +0000
+++ b/color.cpp Wed Mar 14 11:15:31 2018 +0000
@@ -8,11 +8,11 @@
static void _Finalize(void) {
r = 1.0;
g = 1.0;
- b = 1.0;
+ b = 1.0;
+ r.period(0.000);
}
static void _Initialize(void) {
- r.period(0.001);
_Finalize();
}
@@ -35,13 +35,6 @@
_ColorRange += 0.001;
}
-static void _Process(void) {
- _ProcessInitialize();
- while ( _ProcessIsContinue() ) {
- _ProcessRunning();
- }
-}
-
-COMMAND_DEFINE Command_color = {"color", 0x04, _Initialize, _Finalize, _Process,
+COMMAND_DEFINE Command_color = {"color", 0x04, _Initialize, _Finalize,
_ProcessInitialize, _ProcessIsContinue, _ProcessRunning
};