How control the TFT Backlight?

Hi all,
I have an ESP8266 Nodemcu, with an 1,8" TFT.
I want to control the bright of the screen with one pin. I test with a transistor and work soso because the Vcc to the TFT is 3.3V, and with the transistor I lost 0,7 from Vbe, so the bright on the TFT never reach maximum. Now I have connected to a 2N2222, wired:

tft gnd to Collector
Control pin to Base, with a RLim.
Emisor to general GND

But this is like a switch.
Is there a way to control the TFT in order to modify bright?

Pepeillo:
...and with the transistor I lost 0,7 from Vbe, so the bright on the TFT never reach maximum.

Is there a way to control the TFT in order to modify bright?

That doesn't make sense.
Collector-emitter voltage of a bjt transistor used as a switch can get much lower than base-emitter voltage.
Typical ~0,2volt. A mosfet could do better than that.
Make sure you have enough base current to fully saturate the transistor (typ. 10% of the collector current).

Use a PWM pin, with analogWrite.
Leo..

Thank you very much!
Can you show me how to connect it?

Pepeillo:
Can you show me how to connect it?

Post a link to "it".
Leo..