A driver circuit for driving a light source of an optical pointing device
includes a first transistor coupled to the light source. The driver
circuit includes a controller coupled to the first transistor for
monitoring a first current through the light source, comparing the first
current to a reference current, and generating a control signal based on
a result of the comparison, wherein the control signal causes the first
transistor to change the first current.