11-07-2020, 02:03 PM
Can someone please tell me how I can set the brightness of my screen (Official 7" display), based on day/night mode?
I came from crankshaft, and this feature was built into the UI.
Currently I have GPIO 17 go high to trigger night mode when I turn on headlights. I would like the brightness to go to...say...20.
Then back to day mode...brightness 100.
Does anyone know how to script this? I imagine it would just involve reading the GPIO state and setting backlight accordingly.
Perhaps a suggestion for incorporation into future releases?
I came from crankshaft, and this feature was built into the UI.
Currently I have GPIO 17 go high to trigger night mode when I turn on headlights. I would like the brightness to go to...say...20.
Then back to day mode...brightness 100.
Does anyone know how to script this? I imagine it would just involve reading the GPIO state and setting backlight accordingly.
Perhaps a suggestion for incorporation into future releases?