Set LCD brightness from code?

Why not just add a push button switch and code for toggle
On/Toggle Off control of the transistor ?