At block S1341, a difference value between the ambient light intensity value and the preset adjustment value of ambient light intensity is calculated.
Controlling the display screen to respond according to the adjusted ambient light intensity value at block S135 may include follows.
At block S1351, the display screen is controlled to respond according to the difference value.
After the electronic device obtains the preset adjustment value of ambient light intensity, the electronic device calculates the difference value between the ambient light intensity value detected by the ambient light sensor and the preset adjustment value of ambient light intensity, and controls the display screen to respond according to the difference value.
For example, the ambient light intensity value detected by the ambient light sensor is 80, the preset adjustment value of ambient light intensity obtained by the electronic device is 10, and the difference value calculated is 70. The electronic device determines the ambient light intensity according to the difference value 70. For example, the electronic device determines the ambient light intensity as 70. Then the electronic device controls the display screen to respond according to the difference value, such as reducing brightness of the display screen.
In detail implementation, the present disclosure is not limited by the order of execution of the various steps described, and in the event that no conflict occurs, certain steps may be performed in other sequences or simultaneously.