| CPC G06F 1/1616 (2013.01) [G01D 11/24 (2013.01); G06F 1/1677 (2013.01); G09G 3/035 (2020.08); H01L 31/125 (2013.01); H01L 31/143 (2013.01); G09G 2320/0693 (2013.01); G09G 2360/144 (2013.01); G09G 2360/16 (2013.01)] | 15 Claims |

|
1. A portable electronic device comprising:
a foldable housing comprising a first housing and a second housing coupled to the first housing so as to be rotatable relative to the first housing;
a display comprising a first display area disposed in a space formed inside the first housing and a second display area disposed in a space formed inside the second housing, the second display area facing the first display area when the portable electronic device is in a folded state;
a first illuminance sensor disposed under the first display area and having a field of view facing the first display area;
a state detection sensor configured to detect a state of the foldable housing;
a memory; and
a processor connected to the display, the first illuminance sensor, the state detection sensor, and the memory,
wherein the processor is configured to:
store a reference value used for calibration of the first illuminance sensor in the memory,
recognize that the portable electronic device is in the folded state based on data received from the state detection sensor,
display a first image in a sensor area of the first display area positioned above the first illuminance sensor and display a second image in an area of the second display area facing the sensor area responsive to the portable electronic device being in a calibration trigger state comprising the folded state,
calculate an illuminance value based on data received from the first illuminance sensor while the first image and the second image are being displayed,
calculate a calibration value for calibrating measured illuminance values of the first illuminance sensor, based on a comparison of the calculated illuminance value with the reference value stored in the memory, and
store the calibration value in the memory.
|