From 6f95ab7de7370bc8d5c803d22984908f6174a0e3 Mon Sep 17 00:00:00 2001 From: Karl Kurbjun Date: Tue, 8 May 2007 06:45:38 +0000 Subject: 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 --- firmware/export/backlight.h | 4 ++++ firmware/export/config-gigabeat.h | 2 ++ 2 files changed, 6 insertions(+) (limited to 'firmware/export') 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' */ -- cgit v1.2.3