I too would like to know the answer to this question. Seems reasonably done with PWM, but probably already available via one of the libraries that is in control of the display.
Blindly searching through all the code I found a promising function you may want to check out. I'm in the middle of some deeply involved troubleshooting otherwise I'd explore this. See if the setBrightness function is what you're looking for.
Comments
I too would like to know the answer to this question. Seems reasonably done with PWM, but probably already available via one of the libraries that is in control of the display.
Blindly searching through all the code I found a promising function you may want to check out. I'm in the middle of some deeply involved troubleshooting otherwise I'd explore this. See if the
setBrightness
function is what you're looking for.lcd.setBrightness(128);
The range appears to be 0~255.
See documentation comments here: