diff options
author | Karl Kurbjun <kkurbjun@gmail.com> | 2007-05-08 06:45:38 +0000 |
---|---|---|
committer | Karl Kurbjun <kkurbjun@gmail.com> | 2007-05-08 06:45:38 +0000 |
commit | 6f95ab7de7370bc8d5c803d22984908f6174a0e3 (patch) | |
tree | b69ab3bb886ca4ad5d17cd3283ee21aa19751533 /firmware/export | |
parent | 830576bb0b08dca0f5e9a90bf0526505b1c34a0a (diff) |
Add in buttonlight brightness setting for the Gigabeat, and setup the framework for future players that have adjustable button light brightness settings. Also fixed a bug in the backlight code when the brightness was set to 0.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13356 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/backlight.h | 4 | ||||
-rw-r--r-- | firmware/export/config-gigabeat.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/firmware/export/backlight.h b/firmware/export/backlight.h index 9bcb6e9d1d..15dfbf1ddf 100644 --- a/firmware/export/backlight.h +++ b/firmware/export/backlight.h @@ -80,6 +80,10 @@ void sim_remote_backlight(int value); void backlight_set_brightness(int val); #endif /* HAVE_BACKLIGHT_BRIGHTNESS */ +#ifdef HAVE_BUTTONLIGHT_BRIGHTNESS +void buttonlight_set_brightness(int val); +#endif /* HAVE_BUTTONLIGHT_BRIGHTNESS */ + #ifdef HAVE_BUTTON_LIGHT void button_backlight_on(void); void button_backlight_off(void); diff --git a/firmware/export/config-gigabeat.h b/firmware/export/config-gigabeat.h index a83dc55fd8..5f45bdbff0 100644 --- a/firmware/export/config-gigabeat.h +++ b/firmware/export/config-gigabeat.h @@ -49,6 +49,8 @@ #define HAVE_BACKLIGHT_BRIGHTNESS +#define HAVE_BUTTONLIGHT_BRIGHTNESS + /* Main LCD backlight brightness range and defaults */ #define MIN_BRIGHTNESS_SETTING 0 /* 0.5 mA */ #define MAX_DIM_BRIGHTNESS_SETTING 15 /* highest 'dimness' */ |