diff options
author | Hayden Pearce <saint.lascivious@gmail.com> | 2013-01-29 20:45:14 +1300 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2013-02-04 09:08:16 +0100 |
commit | 93fb11683e26f7bbd3765a27fc099840fdb65cd8 (patch) | |
tree | fa2e62b29d4bbabf185d378da4f87c3b77b2325a /apps/plugins/lamp.c | |
parent | 3c9d738ab6f17655ec10a95855221cb4c7bec8cd (diff) | |
download | rockbox-93fb11683e26f7bbd3765a27fc099840fdb65cd8.tar.gz rockbox-93fb11683e26f7bbd3765a27fc099840fdb65cd8.zip |
Additional colors for lamp.rock
- Available colors (in order of display):
white - default
red
orange
yellow
green
blue
indigo
violet
black
- More colors combined with the existing brightness control (also added by myself)
allow for a much wider range of light to suit the user's current mood or
environment
- ToDo(?):
* add a color picker for custom colors
* allow custom colors to be saved for later user
Change-Id: I0b2f6376a408acaa9b2459b2fa56b43f5427b965
Reviewed-on: http://gerrit.rockbox.org/390
Tested-by: Hayden Pearce <saint.lascivious@gmail.com>
Reviewed-by: benjamin brown <foolshperson@gmail.com>
Tested-by: benjamin brown <foolshperson@gmail.com>
Reviewed-by: Jonathan Gordon <rockbox@jdgordon.info>
Diffstat (limited to 'apps/plugins/lamp.c')
-rw-r--r-- | apps/plugins/lamp.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/plugins/lamp.c b/apps/plugins/lamp.c index 4d4205a093..fa7027ece7 100644 --- a/apps/plugins/lamp.c +++ b/apps/plugins/lamp.c | |||
@@ -61,10 +61,17 @@ static const struct button_mapping *plugin_contexts[] = { pla_main_ctx }; | |||
61 | 61 | ||
62 | #ifdef HAVE_LCD_COLOR | 62 | #ifdef HAVE_LCD_COLOR |
63 | /* RGB color sets */ | 63 | /* RGB color sets */ |
64 | #define NUM_COLORSETS 2 | 64 | #define NUM_COLORSETS 9 |
65 | static unsigned colorset[NUM_COLORSETS] = { | 65 | static unsigned colorset[NUM_COLORSETS] = { |
66 | LCD_RGBPACK(255, 255, 255), /* white */ | 66 | LCD_RGBPACK(255, 255, 255), /* white */ |
67 | LCD_RGBPACK(255, 0, 0), /* red */ | 67 | LCD_RGBPACK(255, 0, 0), /* red */ |
68 | LCD_RGBPACK(255, 165, 0), /* orange */ | ||
69 | LCD_RGBPACK(255, 255, 0), /* yellow */ | ||
70 | LCD_RGBPACK( 0, 255, 0), /* green */ | ||
71 | LCD_RGBPACK( 0, 0, 255), /* blue */ | ||
72 | LCD_RGBPACK( 75, 0, 130), /* indigo */ | ||
73 | LCD_RGBPACK(238, 130, 238), /* violet */ | ||
74 | LCD_RGBPACK( 0, 0, 0), /* black */ | ||
68 | }; | 75 | }; |
69 | #endif /* HAVE_LCD_COLOR */ | 76 | #endif /* HAVE_LCD_COLOR */ |
70 | 77 | ||