I want to manage an LCD HD44780 display connected trought my Raspberry Pi B+.
The backlight pin (on Hd44780 display) need a resistor and I have 2 different display version, so the resistor value are little different.
To avoid changing resistor value every time I change display, I heard that is possible to control GPIO pin output voltage. So I'll adjust the voltage output according to the display connected.
Is there a python script or something else to do that? Maybe like this:
As mentioned in answers and comments, the problem is to control the LCD backlight using GPIO pin, without resistor, maybe doing it with PWM pin.