audiophonics / RaspDacMinilcd

4 stars 1 forks source link

LCD brightness #4

Open Phaet opened 1 year ago

Phaet commented 1 year ago

My wife is complaining that the LCD display is too bright in our living room.

So I tried to find out, whether it is possible to dim the display and how.

Looking at your code, I found out that the display is an ILI9341, right?

I found this spec for it : ILI9341 spec

There, on page 141 and 142, I found commands to write and read display brightness.

Write Display Brightness

Therefore, for a quick attempt, I added the line

 this.command(0x51,0x88);

to the init function in ili9341.js.

But unfortunately this does not have any effect. Now I am rather clueless.

Is it at all possible to dim the display?

If so, I would like to write a function to either set the brightness with the RC or, alternatively, turn on full brightness when a new cover is displayed and then dim it after a few seconds.

Phaet commented 1 year ago

Now I understand that ILI9341 is just the controller chip and it depends how it is integrated on this particular LCD module. The chip has a back-light voltage pin with PWM. This pin is probably controlled by the backlight brightness command. But it depends whether this pin is connected to the LCD on the particular module or whether the backlight LEDs are simply connected to power.