nwze370: improve lcd & backlight

Added lcd inversion
Fix issue where backlight would turn on before first frame rendered
Fix issue where backlight would shortly appear at 100% before PWM is
ready during fade in
Turn off backlight before booting/RoLo/shutdown to avoid it being
enabled on next boot
Fix issue where fade in isn't smooth because brightness levels below 13 were
basically equalivent to off, by removing these brightness levels

Change-Id: I868eae2cbeea52c6af7d09c886958ff46167fe26
This commit is contained in:
nift4 2025-10-21 19:39:11 +02:00 committed by William Wilgus
parent 9722cad478
commit b1511738f7
5 changed files with 47 additions and 15 deletions

View file

@ -108,8 +108,8 @@
/* Main LCD backlight brightness range and defaults */
#define MIN_BRIGHTNESS_SETTING 0
#define MAX_BRIGHTNESS_SETTING 100
#define DEFAULT_BRIGHTNESS_SETTING 50
#define MAX_BRIGHTNESS_SETTING 88
#define DEFAULT_BRIGHTNESS_SETTING 44
/* Which backlight fading type? */
#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING

View file

@ -22,6 +22,12 @@
/* define this if you have a colour LCD */
#define HAVE_LCD_COLOR
/* define this if you have LCD enable function */
#define HAVE_LCD_ENABLE
/* Define this if the LCD can shut down */
#define HAVE_LCD_SHUTDOWN
#ifndef BOOTLOADER
#define HAVE_ALBUMART
@ -42,9 +48,6 @@
/* define this if you would like tagcache to build on this target */
#define HAVE_TAGCACHE
/* define this if you have LCD enable function */
#define HAVE_LCD_ENABLE
/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
should be defined as well.
#define HAVE_LCD_SLEEP
@ -55,9 +58,8 @@
#define HAVE_LCD_FLIP
*/
/* define this if you can invert the colours on your LCD
/* define this if you can invert the colours on your LCD */
#define HAVE_LCD_INVERT
*/
/* define this if you have a real-time clock */
#define CONFIG_RTC RTC_IMX233
@ -108,8 +110,8 @@
/* Main LCD backlight brightness range and defaults */
#define MIN_BRIGHTNESS_SETTING 0
#define MAX_BRIGHTNESS_SETTING 100
#define DEFAULT_BRIGHTNESS_SETTING 50
#define MAX_BRIGHTNESS_SETTING 88
#define DEFAULT_BRIGHTNESS_SETTING 44
/* Which backlight fading type? */
#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING