UTFT 3.2 Turn on/off backlight and dimming

Hi! I just wanted to share some progress I did based on this thread: Can the Sainsmart 3.2" TFT be turned on & off? - Displays - Arduino Forum

With this you will be able to: switch on/off the backligt, adjust the brightness, or make some dimmer stuff

1- Remove the 10k trimpot
2- Get a NPN transitor (I am testing with the very common 2N3904, but you can try with other)
3- Solder the transistor emitter to the trimpot pin 2 (the center)
4- Solder the transistor collector to the trimpot pin 3 (the nearest to the 3,3v arduino pin, on the right)
5- Solder the transistor base to a 460ohm resitor
6- Solder the resistor to a PWM pin, I used the pin 44 as it seems to not be used by the UTFT

Attached pic with the transistor.

Code:
At setup:
pinMode(44, OUTPUT);

To use it
analogWrite(44, dutyCicle);

If you don't know the DutyCicle would be like the light intensity in this case (0-255)

Btw it is for the screen SSD1289
Note: It is working fine for me but I did not test a lot yet, maybe it does not work in all versions or bigger ones.