A gravity sensor-based flash lighting method and device, and mobile terminal
A technology of a gravity sensor and a lighting method, which is applied in the direction of lighting devices, lamp circuit layout, optics, etc., can solve the problems of mobile terminal unlocking, unfavorable user use, cumbersome and inconvenient operation, etc., and achieve simple operation, convenient one-handed operation, and fast lighting way effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0045] Embodiment 1 of the present invention provides a flashlight lighting method based on a gravity sensor, which is applied in a mobile terminal. The mobile terminal includes a gravity sensor G-sensor, a flashlight drive module, and a flashlight. The following describes this embodiment in detail with reference to the accompanying drawings. illustrate. figure 1 It is a flow chart of the method of Embodiment 1 of the present invention, please refer to figure 1 , the method of the embodiment of the present invention includes the following steps:
[0046] Step S101, obtaining the three-axis output value of the gravity sensor of the terminal, and judging the number of times the terminal shakes up and down according to the three-axis output value of the gravity sensor;
[0047] Among them, the gravity sensor can measure the acceleration caused by gravity. When the user shakes the terminal up and down, the output values of the x, y, and z axes of the gravity sensor will change....
Embodiment 2
[0052] Embodiment 2 of the present invention provides a flash lighting method based on a gravity sensor, which is an improvement on the basis of Embodiment 1. figure 2 It is the method flowchart of the second embodiment of the present invention, please refer to figure 2 , the method of the embodiment of the present invention includes the following steps:
[0053] Step S201, obtaining the three-axis output value of the gravity sensor of the terminal, and judging the number of times the terminal shakes up and down according to the three-axis output value of the gravity sensor;
[0054] Step S202, if the number of times the terminal shakes up and down reaches the preset first threshold, trigger the flashlight driving module electrically connected to the flashlight, so that the flashlight driving module controls the flashlight to illuminate according to the preset first lighting brightness;
[0055] Step S203, if the number of times the terminal shakes up and down reaches the p...
Embodiment 3
[0062] Embodiment 3 of the present invention provides a flashlight lighting method based on a gravity sensor, which is applied in a mobile terminal. The mobile terminal includes a light sensor, a gravity sensor G-sensor, a flashlight drive module, and a flashlight. Improvements made on the basis. image 3 It is the method flowchart of the third embodiment of the present invention, please refer to image 3 , the method of the embodiment of the present invention includes the following steps:
[0063] Step S301, obtaining the output value of the light sensor of the terminal, and judging whether the terminal is currently in a dark environment according to the output value of the light sensor;
[0064] Step S302, if the terminal is currently in a dark environment, automatically start the gravity sensor for measurement;
[0065] Step S303, obtaining the three-axis output value of the gravity sensor of the terminal, and judging the number of times the terminal shakes up and down ac...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


