diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/backlight.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/firmware/export/backlight.h b/firmware/export/backlight.h index c1a7ade38f..09960b7537 100644 --- a/firmware/export/backlight.h +++ b/firmware/export/backlight.h | |||
@@ -53,7 +53,16 @@ void sim_remote_backlight(int value); | |||
53 | #endif | 53 | #endif |
54 | 54 | ||
55 | #ifdef HAVE_BACKLIGHT_BRIGHTNESS | 55 | #ifdef HAVE_BACKLIGHT_BRIGHTNESS |
56 | #define MIN_BRIGHTNESS_SETTING 2 | 56 | #ifdef IAUDIO_X5 |
57 | #define MAX_BRIGHTNESS_SETTING 15 | 57 | /* PFC50506 can output 0%-100% duty cycle but D305A expects %15-100%. */ |
58 | #define MIN_BRIGHTNESS_SETTING 1 /* 15/16 (93.75%) */ | ||
59 | #define MAX_BRIGHTNESS_SETTING 13 /* 3/16 (18.75%) */ | ||
60 | #define DEFAULT_BRIGHTNESS_SETTING 8 /* 8/16 (50.00%) = x5 boot default */ | ||
61 | #else | ||
62 | #define MIN_BRIGHTNESS_SETTING 2 /* 2/16 (12.50%) */ | ||
63 | #define MAX_BRIGHTNESS_SETTING 15 /* 15/16 (93.75%) */ | ||
64 | #define DEFAULT_BRIGHTNESS_SETTING 9 /* 9/16 (56.25%) */ | ||
65 | #endif /* HAVE_BACKLIGHT_BRIGHTNESS */ | ||
66 | |||
58 | void backlight_set_brightness(int val); | 67 | void backlight_set_brightness(int val); |
59 | #endif | 68 | #endif |