1
0
Fork 0
forked from len0rd/rockbox

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>
This commit is contained in:
Hayden Pearce 2013-01-29 20:45:14 +13:00 committed by Jonathan Gordon
parent 3c9d738ab6
commit 93fb11683e

View file

@ -61,10 +61,17 @@ static const struct button_mapping *plugin_contexts[] = { pla_main_ctx };
#ifdef HAVE_LCD_COLOR
/* RGB color sets */
#define NUM_COLORSETS 2
#define NUM_COLORSETS 9
static unsigned colorset[NUM_COLORSETS] = {
LCD_RGBPACK(255, 255, 255), /* white */
LCD_RGBPACK(255, 0, 0), /* red */
LCD_RGBPACK(255, 165, 0), /* orange */
LCD_RGBPACK(255, 255, 0), /* yellow */
LCD_RGBPACK( 0, 255, 0), /* green */
LCD_RGBPACK( 0, 0, 255), /* blue */
LCD_RGBPACK( 75, 0, 130), /* indigo */
LCD_RGBPACK(238, 130, 238), /* violet */
LCD_RGBPACK( 0, 0, 0), /* black */
};
#endif /* HAVE_LCD_COLOR */