output impedance of led?

Is there a way to dynamically control the gain of an opamp digitally? I don't believe digipots go up that high, and I think I need gain adjustment from .5x to maybe 100x
hopefully to adjust to sense a light across the room to sense a light right in front