[summary of the invention]
It is an object of the invention to provide a kind of methods of screen intensity in adjusting electronic equipment, it is intended to which user is due to operating needsThe backlight illumination of screen can also be adjusted to and the matched journey of current outside light intensity in the case that light sensor is coveredDegree.
To achieve the goals above, the present invention provides a kind of screen backlight regulating device, including processor, screen, lightSensor, aspect sensor and range sensor, the range sensor are wholely set or adjacent with the light sensorIt is arranged and is embedded in one end of the screen;The processor is connected between the light sensor and the screen simultaneously built-inThere are automatic backlight adjustment module, the ambient obtained when the automatic backlight adjustment module works according to the light sensorIntensity adjusts the backlight value of the screen and sends activation signal to aspect sensor;The aspect sensor receives described sharpThe spatial attitude of screen is detected after signal living and posture information is sent to the processor, and the processor connects the distanceSensor, and start range sensor when judging that the spatial attitude of the screen meets preset posture according to the posture informationWhether to detect the light sensor by neighbouring object masks, and the processor is persistently covered in the light sensorTime reach first time threshold after close the automatic backlight adjustment module and the backlight value of the screen be set as instituteState the shielded preceding backlight statistical value of light sensor.
In a preferred embodiment, the aspect sensor is gravity sensor, and the preset posture is transverse screen shapeState detects whether screen is transverse screen state by gravity sensor.
In a preferred embodiment, the processor is equipped with distance threshold and obtains object nearby by range sensorThe actual range of body, and the actual range that will acquire of the processor be compared with distance threshold and be less than in actual range orPerson is equal to distance threshold and then judges the light sensor by neighbouring object masks.
In a preferred embodiment, when the practical masking that the processor record light sensor is persistently coveredBetween, and the practical masking time is compared with first time threshold.
In a preferred embodiment, the first time threshold is 2s.
In a preferred embodiment, the backlight statistical value is screen in light sensor shielded preceding second timeBacklight average value in threshold value.
In a preferred embodiment, the second time threshold is 30s.
The present invention also provides a kind of electronic equipments including above-mentioned screen backlight regulating device.
Screen backlight regulating device provided by the invention enables electronic equipment after opening automatic backlight adjustment module, leads toIt crosses aspect sensor and detects that screen meets preset condition and detects that light sensor is persistently hidden further through range sensorWhen covering, automatic backlight adjustment module is closed, to prevent the brightness of screen dimmed under the adjusting of automatic backlight adjustment module, thusElectronic equipment is not influenced to use on a preset condition based, can increase the intelligence degree of electronic equipment.
For enable invention above objects, features, and advantages be clearer and more comprehensible, present pre-ferred embodiments are cited below particularly, andCooperate appended attached drawing, is described in detail below.
[specific embodiment]
It is clear in order to be more clear the purpose of the present invention, technical solution and advantageous effects, below in conjunction with attached drawing andSpecific embodiment, the present invention will be described in further detail.It should be understood that specific implementation described in this specificationMode is not intended to limit the present invention just for the sake of explaining the present invention.
Term " includes " and " having " and their any deformations in the application, it is intended that cover non-exclusive packetContain.Such as it contains the process, method, system, product or equipment of a series of steps or units and is not limited to listed stepRapid or unit, but optionally further comprising the step of not listing or unit, or optionally further comprising for these processes, sideThe intrinsic other step or units of method, product or equipment.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodimentsIt is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identicalEmbodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly andImplicitly understand, embodiment described herein can be combined with other embodiments.
Referring to Fig. 1, the present invention provides a kind of screen backlight regulating device 100 and the electronic equipment using the device, it is mainBe used to solve electronic equipment transverse screen using when cause electronic equipment screen brightness dimmed because light sensor 30 is shieldedThe problem of.
In an embodiment of the present invention, screen backlight regulating device 100 includes processor 10, screen 20, light sensor30, aspect sensor 40 and range sensor 50, range sensor 50 are wholely set or are disposed adjacent with light sensor 30And be embedded in one end of screen 20, also that is, range sensor 50 and light sensor 30 be two-in-one setting component orThe component that is disposed adjacent for two and the one end for being embedded in screen 20.
Specifically, processor 10, which is connected between light sensor 30 and screen 20 and is built-in with automatic backlight, adjusts mouldBlock adjusts the backlight of screen 20 according to the ambient intensity that light sensor 30 obtains when automatic backlight adjustment module worksIt is worth and sends activation signal to aspect sensor 40, in present embodiment, automatic backlight adjustment module is in form of software programsIn storage and processor, and executed by processor.Then, aspect sensor 40 receives the space of detection screen 20 after activation signalPosture information is simultaneously sent to processor 10 by posture, and processor 10 connects range sensor 50, and judges according to posture informationStart range sensor 50 when the spatial attitude of screen 20 meets preset posture whether to detect light sensor 30 by neighbouring objectBody masking, it should be noted that, range sensor 50 and light sensor 30 are the component of two-in-one setting or are two hereinA component being disposed adjacent makes range sensor 50 arrive the distance between neighbouring object and light sensor 30 to neighbouring objectThe distance of body is consistent, then range sensor 50 detects that the distance of neighbouring object is zero or when close to zero, that is, be can determine that attachedNearly object covers sensor and light sensor 30 simultaneously.Then, processor 10 is persistently covered in light sensor 30Time, which reaches, closes automatic backlight adjustment module after first time threshold and the backlight value of screen 20 is set as light sensor30 it is shielded before backlight statistical values, can prevent light sensor 30 by after lasting masking yet by automatic backlight adjustment moduleThe backlight value of screen 20 is turned down, avoids the brightness of screen 20 that from cannot matching with current light environment.
According to an embodiment of the invention, it is understood that electronic equipment by automatic backlight adjustment module open after, if screenThe use state of curtain meets preset condition, then light sensor 30 occurs by the case where lasting masking, the backlight of screen 20Value also can be automatically arranged according to the shielded preceding light intensity of light sensor 30, so that the brightness of screen 20 remains to and works asThe light intensity in the preceding external world matches, and can increase the intelligence degree of electronic equipment.For example, setting default item for transverse screen statePart, then user is after light sensor 30 is covered in the operation of progress game Shi Yinxu transverse screen, the brightness of screen 20 at this time is notMeeting is dimmed under the adjusting of automatic backlight adjustment module but still can be set as the shielded preceding brightness of light sensor 30, fromAnd the brightness of screen will not influence the viewing effect of interface, so that user has good game experiencing.
Referring to Fig. 2, in an embodiment of the present invention, screen backlight regulating device 100 follows the steps below backlightIt adjusts:
Step S01: whether detection automatic backlight adjustment module opens.
Specifically, after automatic backlight adjustment module is opened, light sensor 30 starts to work and by extraneous light intensityInformation is sent to processor 10, and automatic backlight adjustment module is then according to the light intensity information come the backlight value of setting screen 20.It is understood that the unlatching of automatic backlight adjustment module could make the backlight value of screen 20 with the variation of ambient intensityAnd change, it just can be carried out the operation of step S02 in this way;If automatic backlight adjustment module is closed, then electronic equipment screen 20Backlight value will not generate variation with the variation of light environment, then keep current state at this time.
Step S02: whether the spatial attitude of detection screen 20 meets preset posture.
Specifically, aspect sensor 40 is gravity sensor, and preset posture is transverse screen state, also that is, passing through gravity sensitiveDevice detects whether screen 20 is transverse screen state, the operation of step S03 is carried out if screen 20 is transverse screen state, if screen 20 is notIt is that transverse screen state then keeps current state.
Step S03: whether detection light sensor 30 is shielded.
Specifically, processor 10 is equipped with distance threshold and obtains the actual range of neighbouring object by range sensor 50,And actual range is compared with distance threshold, judge that light sensor 30 is not attached if actual range is greater than distance thresholdNearly object masks, keep current state at this time, judge light sensor 30 if actual range is less than or equal to distance thresholdBy neighbouring object masks, step S04 is carried out at this time.In the present embodiment, range sensor 50 is low-power consumption standby mode, i.e.,Range sensor 50 only starts in the case where screen 20 is in transverse screen state, can reduce the power consumption of electronic equipment, and then improve electricityThe cruising ability of sub- equipment.
Step S04: judge whether light sensor 30 is shielded because operating needs.
Specifically, processor 10 records the practical masking time persistently covered of light sensor 30, and by practical maskingTime is compared with first time threshold, if the practical masking time is equal to or more than first time threshold, judges lightSensor 30 is shielded because operating needs, carries out step S05 at this time, if the practical masking time is less than first time threshold,Judge that light sensor 30 is shielded because of maloperation or other incidents, keeps current state at this time.For example, user needsThe both ends of hands grasping electronic equipment are wanted to carry out game operation, then being located at the range sensor 50 and light biography of 20 one end of screenSensor 30 will persistently be covered by the finger of user until user stops game.In the present embodiment, first time threshold is2s。
Step S05: it closes automatic backlight adjustment module and sets light sensor 30 for the backlight value of screen 20 and hiddenBacklight statistical value before covering.
Specifically, processor 10 is according to the back in preset algorithm preceding second time threshold shielded to light sensor 30Light value is counted, then sets backlight statistical value to the current backlight value of screen 20, so that the backlight illumination energy of screen 20Match with extraneous light intensity.In the present embodiment, second time threshold 30s, backlight system, evaluation are that screen 20 existsBacklight average value in corresponding second time threshold.
The present invention is not only in the description and the implementation described, therefore for the personnel of familiar fieldOther advantage and modification is easily implemented, therefore in the essence without departing substantially from universal defined by claim and equivalency rangeIn the case where mind and range, the present invention is not limited to specific details, representative equipment and diagrams shown and described hereinExample.