Controlling LED brightness without using PWM directly

R1 C1 will have to be picked, probably by experimentation.

A resistor across C1 may be needed to discharge C1 for the response you need.

Suggest you use 24VDC.