The processor 301 is a control center of the electronic device 300, which connects various parts of the entire electronic device using various interfaces and lines, executes various functions of the electronic and processes data by running or calling a computer program stored in the memory 302, and calling data stored in the memory 302, so as to realize overall monitoring of the electronic device.
In an embodiment, the processor 301 of the electronic device 300 may load an instruction corresponding to a process of one or more computer program to the memory 302, and run the computer program stored in the memory 302, so as to realize various functions as follows.
A preset region of the display screen is controlled to display a predetermined picture. The preset region is a region facing the ambient light sensor in the display screen, and the predetermined picture is a pure color picture.
An ambient light intensity value detected by the ambient light sensor is obtained.
The display screen is controlled to respond according to the ambient light intensity value.
In some embodiments, the number of the ambient light sensor is at least two. The at least two ambient light sensors may be spaced apart from each other. When obtaining the ambient light intensity value detected by the ambient light sensor, the processor 301 is configured to perform follows.
An ambient light intensity value detected by each ambient light sensor is obtained.
When controlling the display screen to respond according to the ambient light intensity value, the processor 301 is configured to perform follows.