Re: Correct way to manage LCD backlight brightness

2024-01-04 Thread Tim Hardisty
Thanks Alan, As per usual, the obvious escaped me - a character driver makes sense of course. I will implement this, for now, as a board-specific driver and when its working, and I have time, I will look at transitioning it to be a generic NuttX driver. On 03/01/2024 20:17, Alan C. Assis

Re: Correct way to manage LCD backlight brightness

2024-01-03 Thread Alan C. Assis
Hi Tim, AFAIK NuttX doesn't have a standard way to do it. It is normally done at board level (do a "git grep backlight" inside boards/ to see some examples). A proper way to do that should be implementing a backlight subsystem, like a subset of Linux backlight subsystem:

Correct way to manage LCD backlight brightness

2024-01-03 Thread Tim Hardisty
My SAMA5 board has an LCD with variable brightness (pwm controlled). arch/arm/src/chip/sam_lcd.c has a function called "sam_backlight) that takes a level value, but it appears to be local to that file, and the only call to it is in the LCD init functions in that file, complete with a comment