Light sensor controlling light brightness

Is it possible To use the light sensor on the Bolt or RVR to control the brightness of the main LED?

Got it to work but with the back led

SPHERO Email Marketing -