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: mbed ros_lib_kinetic
Diff: RGBA_LED.cpp
- Revision:
- 2:984eb2c5e8ee
- Parent:
- 1:40bdbe1a93b7
diff -r 40bdbe1a93b7 -r 984eb2c5e8ee RGBA_LED.cpp --- a/RGBA_LED.cpp Fri Jun 22 02:09:50 2018 +0000 +++ b/RGBA_LED.cpp Fri Jun 22 03:13:40 2018 +0000 @@ -150,16 +150,16 @@ case 'y': return RGBA<float>(255, 255, 0, 0); // Yellow case 'c': return RGBA<float>( 0, 255, 255, 0); // Cyan case 'm': return RGBA<float>(255, 0, 255, 0); // Magenta - case default: return RGBA<float>(0, 0, 0, 0); + default: return RGBA<float>(0, 0, 0, 0); // TODO: Add orange, purple } } vector<RGBA<float> > RGBA_LED::getPresetColorProgram(int programID) { - switch (colorID) { + /*switch (colorID) { case 0: return RGBA<vector<float> >(getPresetColor('r'), getPresetColor('g'), getPresetColor('b')); default: return RGBA<vector<float> >(getPresetColor('w')); - } + }*/ }