Patent ID: 7671320

Claim:
An electronic device comprising: a display panel; and an optical sensor operationally connected to the display panel, the optical sensor including: a first photodiode which detects light; a second photodiode; a light shielding film for shielding the second photodiode from light; a first circuit group including a voltage follower circuit to which an output from one terminal of the first photodiode is inputted; a second circuit group including a voltage regulator circuit for adjusting an output obtained from one terminal of the second photodiode to a voltage based on a voltage under a predetermined temperature; and a compensation circuit to which outputs from the first circuit group and the second circuit group are inputted, the compensation circuit adding or subtracting each of the outputs, wherein a reference potential is supplied to the other terminal of the first photodiode; and wherein a potential is supplied to the other terminal of the second photodiode so that a forward bias is applied to the second photodiode.