From 9b83c6c4bddca41411d31b8aab17ecc577b37eb4 Mon Sep 17 00:00:00 2001 From: Hristo Kovachev Date: Thu, 22 Dec 2005 10:43:36 +0000 Subject: Patch No 1387627 by Peter D'Hoye: Backlight Brightness setting for H300 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8280 a1c6a512-1295-4272-9138-f99709370657 --- apps/settings.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'apps/settings.h') diff --git a/apps/settings.h b/apps/settings.h index 7378f1daeb..870d9efdd7 100644 --- a/apps/settings.h +++ b/apps/settings.h @@ -381,6 +381,10 @@ struct user_settings #ifdef HAVE_REMOTE_LCD unsigned char rwps_file[MAX_FILENAME+1]; /* last remote-wps */ #endif +#ifdef HAVE_BACKLIGHT_BRIGHTNESS + int brightness; /* iriver h300: backlight PWM value: 2..15 + (0 and 1 are black) */ +#endif }; enum optiontype { INT, BOOL }; @@ -442,6 +446,11 @@ extern const char rec_base_directory[]; #endif #define MIN_CONTRAST_SETTING 5 +#ifdef HAVE_BACKLIGHT_BRIGHTNESS +#define MIN_BRIGHTNESS_SETTING 2 +#define MAX_BRIGHTNESS_SETTING 15 +#endif + /* argument bits for settings_load() */ #define SETTINGS_RTC 1 /* only the settings from the RTC nonvolatile RAM */ #define SETTINGS_HD 2 /* only the settings fron the disk sector */ -- cgit v1.2.3