diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-08-17 15:46:34 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-08-17 15:46:34 +0200 |
commit | 64145252d4133b6df36229f548d02a692c3ec6fb (patch) | |
tree | 6e10d332ce58c6b0026dabc4f9bf05fe84ecdb48 /src/drivers/rgbled/rgbled.cpp | |
parent | b71c0c1f491fc91561393c1ff1c1646b251fd96e (diff) | |
download | px4-firmware-64145252d4133b6df36229f548d02a692c3ec6fb.tar.gz px4-firmware-64145252d4133b6df36229f548d02a692c3ec6fb.tar.bz2 px4-firmware-64145252d4133b6df36229f548d02a692c3ec6fb.zip |
Added dim RGB implementation
Diffstat (limited to 'src/drivers/rgbled/rgbled.cpp')
-rw-r--r-- | src/drivers/rgbled/rgbled.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/drivers/rgbled/rgbled.cpp b/src/drivers/rgbled/rgbled.cpp index 858be8058..f2543a33c 100644 --- a/src/drivers/rgbled/rgbled.cpp +++ b/src/drivers/rgbled/rgbled.cpp @@ -294,6 +294,27 @@ RGBLED::set_color(rgbled_color_t color) { case RGBLED_COLOR_AMBER: // amber set_rgb(255,20,0); break; + case RGBLED_COLOR_DIM_RED: // red + set_rgb(90,0,0); + break; + case RGBLED_COLOR_DIM_YELLOW: // yellow + set_rgb(80,30,0); + break; + case RGBLED_COLOR_DIM_PURPLE: // purple + set_rgb(45,0,45); + break; + case RGBLED_COLOR_DIM_GREEN: // green + set_rgb(0,90,0); + break; + case RGBLED_COLOR_DIM_BLUE: // blue + set_rgb(0,0,90); + break; + case RGBLED_COLOR_DIM_WHITE: // white + set_rgb(30,30,30); + break; + case RGBLED_COLOR_DIM_AMBER: // amber + set_rgb(80,20,0); + break; default: warnx("color unknown"); break; |