From b5cb99a7bf3486ce7347dc06451f209b193d516c Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Thu, 1 Oct 2020 22:43:54 -0400 Subject: For backlights that have a wide control, support skipping steps. the rocker, x3ii, and x20 now take advantage of this, and fades are far faster now. Change-Id: Iceb1a5a6c1d1389c3fdb859b32016b5114a80a22 --- firmware/export/config/agptekrocker.h | 3 ++- firmware/export/config/xduoox20.h | 3 ++- firmware/export/config/xduoox3ii.h | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'firmware/export/config') diff --git a/firmware/export/config/agptekrocker.h b/firmware/export/config/agptekrocker.h index 90fd2267fe..c688513137 100644 --- a/firmware/export/config/agptekrocker.h +++ b/firmware/export/config/agptekrocker.h @@ -51,10 +51,11 @@ #define HAVE_BACKLIGHT_BRIGHTNESS /* Main LCD backlight brightness range and defaults: the backlight driver - * has levels from 0 to 2555. But 0 is off so start at 1. + * has levels from 0 to 255. But 0 is off so start at 1. */ #define MIN_BRIGHTNESS_SETTING 1 #define MAX_BRIGHTNESS_SETTING 255 +#define BRIGHTNESS_STEP 5 #define DEFAULT_BRIGHTNESS_SETTING 70 /* Which backlight fading type? */ diff --git a/firmware/export/config/xduoox20.h b/firmware/export/config/xduoox20.h index b90ebceb04..4a5b63bf38 100644 --- a/firmware/export/config/xduoox20.h +++ b/firmware/export/config/xduoox20.h @@ -48,10 +48,11 @@ #define HAVE_BACKLIGHT_BRIGHTNESS /* Main LCD backlight brightness range and defaults: the backlight driver - * has levels from 0 to 2555. But 0 is off so start at 1. + * has levels from 0 to 255. But 0 is off so start at 1. */ #define MIN_BRIGHTNESS_SETTING 1 #define MAX_BRIGHTNESS_SETTING 255 +#define BRIGHTNESS_STEP 5 #define DEFAULT_BRIGHTNESS_SETTING 70 /* Which backlight fading type? */ diff --git a/firmware/export/config/xduoox3ii.h b/firmware/export/config/xduoox3ii.h index 9ad7b5884b..e2066e453c 100644 --- a/firmware/export/config/xduoox3ii.h +++ b/firmware/export/config/xduoox3ii.h @@ -48,10 +48,11 @@ #define HAVE_BACKLIGHT_BRIGHTNESS /* Main LCD backlight brightness range and defaults: the backlight driver - * has levels from 0 to 2555. But 0 is off so start at 1. + * has levels from 0 to 255. But 0 is off so start at 1. */ #define MIN_BRIGHTNESS_SETTING 1 #define MAX_BRIGHTNESS_SETTING 255 +#define BRIGHTNESS_STEP 5 #define DEFAULT_BRIGHTNESS_SETTING 70 /* Which backlight fading type? */ -- cgit