Controlling LED brightness without using PWM directly

Here is my test circuit