Summary of the invention
The main purpose of the present invention is to provide a kind of standby lamp brightness adjusting method, terminal device and storage medium, purports
In the debugging efficiency for improving standby lamp brightness, current demand is timely responded to, makes that user easily to standby lamp and makes by oneself
Justice is adjusted, and reduces customer complaint risk, ensures brand public praise.
To achieve the above object, the present invention provides a kind of standby lamp brightness adjusting method, the standby lamp brightness regulation side
Method the following steps are included:
The setting parameter for obtaining the standby lamp of user interface determines the brightness value of the standby lamp according to the setting parameter;
The corresponding duty cycle signals of the standby lamp are determined according to the brightness value and default mapping relations;
The corresponding control circuit of the standby lamp is driven based on the duty cycle signals, to adjust the bright of the standby lamp
Degree.
Preferably, the standby lamp brightness adjusting method further include:
The brightness value of the standby lamp is shown in the user interface.
Preferably, the setting parameter for obtaining the standby lamp of user interface, determines described standby according to the setting parameter
Before the brightness value of lamp, the standby lamp brightness adjusting method further include:
Parameter and corresponding sample brightness value is arranged in the sample for acquiring standby lamp brightness in advance;
The corresponding relationship of sample setting parameter and the sample brightness value is stored into presetting database.
Preferably, the setting parameter for obtaining the standby lamp of user interface, determines described standby according to the setting parameter
The brightness value of lamp, specifically includes:
In response to the adjustment instruction of user's input, the current of the standby lamp of the user interface is obtained from the adjustment instruction
Parameter is set, searches the present intensity value of the standby lamp in the presetting database according to the current setting parameter.
Preferably, described to determine that the corresponding duty ratio of the standby lamp is believed according to the brightness value and default mapping relations
Number, it specifically includes:
The present intensity value is mapped to the corresponding duty ratio of the standby lamp by the default mapping relations, with defeated
Corresponding duty cycle signals out.
Preferably, described to drive the corresponding control circuit of the standby lamp based on the duty cycle signals, described in adjusting
The brightness of standby lamp, specifically includes:
Based on the duty cycle signals, the corresponding control circuit of the standby lamp is controlled, periodically with corresponding adjusting
The brightness of the standby lamp.
Preferably, described to be based on the duty cycle signals, the corresponding control circuit of the standby lamp is periodically controlled, with
After the corresponding brightness for adjusting the standby lamp, the standby lamp brightness adjusting method further include:
The present intensity is compared by the present intensity for obtaining the standby lamp with predetermined luminance;
When the present intensity and predetermined luminance mismatch, the current of the acquisition standby lamp of user interface is returned
The step of parameter is set.
Preferably, the present intensity for obtaining the standby lamp, the present intensity is compared with predetermined luminance
Later, the standby lamp brightness adjusting method further include:
When the present intensity is matched with predetermined luminance, the current of the standby lamp is shown in the user interface
Brightness value.
In addition, to achieve the above object, the present invention also proposes a kind of terminal device, the terminal device include: memory,
Processor and the standby lamp brightness regulation program that is stored on the memory and can run on the processor, it is described standby
The step of standby lamp brightness adjusting method as described above is realized when lamp brightness regulation program is executed by the processor.
In addition, to achieve the above object, the present invention also proposes a kind of storage medium, it is stored on the storage medium standby
Lamp brightness regulation program realizes standby lamp brightness as described above when the standby lamp brightness regulation program is executed by processor
The step of adjusting method.
In the present invention, by obtain the standby lamp of user interface setting parameter, according to the setting parameter determine described in
The brightness value of machine lamp;The corresponding duty cycle signals of the standby lamp are determined according to the brightness value and default mapping relations;It is based on
The duty cycle signals drive the corresponding control circuit of the standby lamp, to adjust the brightness of the standby lamp.To improve to
The debugging efficiency of machine lamp brightness, timely responds to current demand, and user is allow easily to make customized adjusting to standby lamp, drop
Low customer complaint risk ensures brand public praise.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Referring to Fig.1, Fig. 1 is the terminal device structural schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
As shown in Figure 1, the terminal device may include: processor 1001, such as central processing unit (Central
Processing Unit, CPU), communication bus 1002, user interface 1003, network interface 1004, memory 1005.Wherein,
Communication bus 1002 is for realizing the connection communication between these components.User interface 1003 may include display screen
(Display), optional user interface 1003 can also include standard wireline interface and wireless interface, for user interface 1003
Wireline interface in the present invention can be USB interface.Network interface 1004 optionally may include the wireline interface, wireless of standard
Interface (such as Wireless Fidelity (WIreless-FIdelity, WI-FI) interface).Memory 1005 can be the arbitrary access of high speed
Memory (Random Access Memory, RAM) memory, is also possible to stable memory (Non-volatile
Memory, NVM), such as magnetic disk storage.Memory 1005 optionally can also be the storage independently of aforementioned processor 1001
Device.
It will be understood by those skilled in the art that structure shown in Fig. 1 does not constitute the restriction to terminal device, can wrap
It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium
Believe module, Subscriber Interface Module SIM and standby lamp brightness regulation program.
In terminal device shown in Fig. 1, network interface 1004 is mainly used for connecting background server, takes with the backstage
Business device carries out data communication;User interface 1003 is mainly used for connecting peripheral hardware, carries out data communication with the peripheral hardware;The terminal
Equipment calls the standby lamp brightness regulation program stored in memory 1005 by processor 1001, and executes the embodiment of the present invention
The standby lamp brightness adjusting method provided.
The terminal device calls the standby lamp brightness regulation program stored in memory 1005 by processor 1001, and
Execute following operation:
The setting parameter for obtaining the standby lamp of user interface determines the brightness value of the standby lamp according to the setting parameter;
The corresponding duty cycle signals of the standby lamp are determined according to the brightness value and default mapping relations;
The corresponding control circuit of the standby lamp is driven based on the duty cycle signals, to adjust the bright of the standby lamp
Degree.
Further, processor 1001 can call the standby lamp brightness regulation program stored in memory 1005, also hold
The following operation of row:
The brightness value of the standby lamp is shown in the user interface.
Further, processor 1001 can call the standby lamp brightness regulation program stored in memory 1005, also hold
The following operation of row:
Parameter and corresponding sample brightness value is arranged in the sample for acquiring standby lamp brightness in advance;
The corresponding relationship of sample setting parameter and the sample brightness value is stored into presetting database.
Further, processor 1001 can call the standby lamp brightness regulation program stored in memory 1005, also hold
The following operation of row:
In response to the adjustment instruction of user's input, the current of the standby lamp of the user interface is obtained from the adjustment instruction
Parameter is set, searches the present intensity value of the standby lamp in the presetting database according to the current setting parameter.
Further, processor 1001 can call the standby lamp brightness regulation program stored in memory 1005, also hold
The following operation of row:
The present intensity value is mapped to the corresponding duty ratio of the standby lamp by the default mapping relations, with defeated
Corresponding duty cycle signals out.
Further, processor 1001 can call the standby lamp brightness regulation program stored in memory 1005, also hold
The following operation of row:
Based on the duty cycle signals, the corresponding control circuit of the standby lamp is controlled, periodically with corresponding adjusting
The brightness of the standby lamp.
Further, processor 1001 can call the standby lamp brightness regulation program stored in memory 1005, also hold
The following operation of row:
The present intensity is compared by the present intensity for obtaining the standby lamp with predetermined luminance;
When the present intensity and predetermined luminance mismatch, the current of the acquisition standby lamp of user interface is returned
The step of parameter is set.
Further, processor 1001 can call the standby lamp brightness regulation program stored in memory 1005, also hold
The following operation of row:
When the present intensity is matched with predetermined luminance, the user interface presentation goes out the current bright of the standby lamp
Degree.
In the present embodiment, by obtaining the setting parameter of the standby lamp of user interface, institute is determined according to the setting parameter
State the brightness value of standby lamp;The corresponding duty cycle signals of the standby lamp are determined according to the brightness value and default mapping relations;
The corresponding control circuit of the standby lamp is driven based on the duty cycle signals, to adjust the brightness of the standby lamp.To mention
The debugging efficiency of high standby lamp brightness, timely responds to current demand, user is allow easily to make customized tune to standby lamp
Section reduces customer complaint risk, ensures brand public praise.
Based on above-mentioned hardware configuration, the embodiment of the standby lamp brightness adjusting method of the present invention is proposed.
Referring to Fig. 2, Fig. 2 is the flow diagram of the standby lamp brightness adjusting method first embodiment of the present invention, proposes this hair
Bright standby lamp brightness adjusting method first embodiment.
In the first embodiment, the standby lamp brightness adjusting method the following steps are included:
Step S10: the setting parameter of the standby lamp of user interface is obtained, the standby lamp is determined according to the setting parameter
Brightness value.
It should be noted that the executing subject of the present embodiment is terminal device, the terminal device can be multimedia equipment
Or electronic equipment with display screen etc., the application scenarios of the present embodiment are, when user's using terminal equipment inputs adjustment instruction
When, the terminal device obtains the current setting parameter of the standby lamp of the user interface from the adjustment instruction, according to described
Current setting parameter searches the present intensity value of the standby lamp in the presetting database.It can be readily appreciated that the tune
Whole instruction can be the adjustment instruction issued by remote controler, be also possible to the adjustment instruction of user interface touch screen input, this
Place no longer repeats one by one.
It is worth noting that in advance the LED Light shown such as Fig. 4 can be added by interface in the user interface
Mark, when the current setting parameter changes, the LED Light identifies corresponding scale strip and also changes correspondingly, with correspondence
To current brightness value, standby lamp shows current brightness, and LED Light mark can be very intuitively in user circle
Face shows present intensity value, corresponds to current brightness with this.
In the concrete realization, when using remote controler input adjustment instruction, the setting parameter of the standby lamp also changes therewith
Become, so that the terminal device gets current setting parameter, while the LED Light of the user interface identifies corresponding quarter
Degree item also changes correspondingly and corresponds to present intensity value and can be identified by naked eyes, and the terminal device is worked as according to
Preceding setting parameter searches the present intensity value of the standby lamp in the presetting database.
Step S20: the corresponding duty cycle signals of the standby lamp are determined according to the brightness value and default mapping relations.
It is understood that when getting the present intensity value of the standby lamp, it can be according to the default mapping relations
The present intensity value is mapped to the corresponding duty ratio of the standby lamp, the duty ratio is passed through hardware by the terminal device
Driving is arranged into machine core control circuit, to export corresponding duty cycle signals.
Step S30: driving the corresponding control circuit of the standby lamp based on the duty cycle signals, described standby to adjust
The brightness of lamp.
It can be readily appreciated that duty ratio refers in a pulse cycle, conduction time is relative to ratio shared by total time
Example;When the terminal device gets corresponding duty cycle signals, the energization period of the standby lamp can be periodically controlled.
In the concrete realization, the duty cycle signals are based on, the terminal device periodically controls the standby lamp pair
The control circuit answered controls the energization period of the standby lamp, with the corresponding brightness for adjusting the standby lamp;The terminal
Equipment gets the present intensity of the standby lamp, goes out the present intensity of the standby lamp in the user interface presentation with this
Value.
In the first embodiment, it by obtaining the setting parameter of the standby lamp of user interface, is determined according to the setting parameter
The brightness value of the standby lamp;The corresponding duty ratio letter of the standby lamp is determined according to the brightness value and default mapping relations
Number;The corresponding control circuit of the standby lamp is driven based on the duty cycle signals, to adjust the brightness of the standby lamp.To
The debugging efficiency for improving standby lamp brightness, timely responds to current demand, makes that user easily to standby lamp customized
It adjusts, reduces customer complaint risk, ensure brand public praise.
Referring to Fig. 3, Fig. 3 is the flow diagram of the standby lamp brightness adjusting method second embodiment of the present invention, based on above-mentioned
First embodiment shown in Fig. 2 proposes the second embodiment of the standby lamp brightness adjusting method of the present invention.
In a second embodiment, before the step S10, the standby lamp brightness adjusting method further include:
Step S010: parameter and corresponding sample brightness value is arranged in the sample for acquiring standby lamp brightness in advance;By the sample
The corresponding relationship of this setting parameter and the sample brightness value is stored into presetting database.
It should be noted that also coming from the sample by data needed for the mark of LED Light described in interface
The corresponding relationship of this setting parameter and the sample brightness value, when the setting parameter change of standby lamp, user interface can be very straight
That sees shows that the LED Light identifies corresponding scale strip and changes.
In the concrete realization, parameter and corresponding sample brightness value is arranged in the sample for acquiring standby lamp brightness in advance, wherein
The sample setting parameter can correspond standby lamp brightness;By pair of sample setting parameter and the sample brightness value
Should be related to and store into presetting database, so as to subsequent standby lamp setting parameter change when, can be in the presetting database
The middle brightness value for searching corresponding standby lamp, shows standby lamp brightness with corresponding.
Further, the step S10, specifically includes:
Step S11: in response to the adjustment instruction of user's input, it is standby that the user interface is obtained from the adjustment instruction
The current setting parameter of lamp searches the current bright of the standby lamp according to the current setting parameter in the presetting database
Angle value.
In the concrete realization, when using remote controler input adjustment instruction, the setting parameter of the standby lamp also changes therewith
Become, so that the terminal device gets current setting parameter, while the LED Light of the user interface identifies corresponding quarter
Degree item also changes correspondingly and corresponds to present intensity value and can be identified by naked eyes, and the terminal device is worked as according to
Preceding setting parameter searches the present intensity value of the standby lamp in the presetting database.
Further, the step S20, specifically includes:
Step S21: the present intensity value is mapped to by the default mapping relations to the standby lamp is corresponding to be accounted for
Empty ratio, to export corresponding duty cycle signals.
It is understood that when getting the present intensity value of the standby lamp, it can be according to the default mapping relations
The present intensity value is mapped to the corresponding duty ratio of the standby lamp, the duty ratio is passed through hardware by the terminal device
Driving is arranged into machine core control circuit, to export corresponding duty cycle signals.
Further, the step S30, specifically includes:
Step S31: the duty cycle signals are based on, control the corresponding control circuit of the standby lamp, periodically with right
The brightness for the adjusting standby lamp answered.
It can be readily appreciated that duty ratio refers in a pulse cycle, conduction time is relative to ratio shared by total time
Example;When the terminal device gets corresponding duty cycle signals, the energization period of the standby lamp can be periodically controlled,
With the corresponding brightness for adjusting the standby lamp.
Further, after the step S31, the standby lamp brightness adjusting method further include:
Step S310: the present intensity of the standby lamp is obtained, the present intensity is compared with predetermined luminance.
Further, after the step S310, the standby lamp brightness adjusting method further include:
Step S311: it when the present intensity and predetermined luminance mismatch, returns to the acquisition user interface and waits for
The step of current setting parameter of machine lamp.
Step S312: when the present intensity is matched with predetermined luminance, shown in the user interface it is described to
The present intensity value of machine lamp.
It should be noted that in the present embodiment, when the present intensity that the user interface presentation goes out the standby lamp can not
When timely responding to current demand, i.e., execution above step S311 is timely responded to realizing the debugging efficiency for improving standby lamp brightness
Current demand allows user easily to make the purpose of customized adjusting to standby lamp;When the user interface presentation goes out institute
When stating the present intensity response current demand of standby lamp, i.e. execution above step S312, while being shown in the user interface
The picture of the present intensity value of the standby lamp can refer to Fig. 4.
In a second embodiment, it by obtaining the setting parameter of the standby lamp of user interface, is determined according to the setting parameter
The brightness value of the standby lamp;The corresponding duty ratio letter of the standby lamp is determined according to the brightness value and default mapping relations
Number;The corresponding control circuit of the standby lamp is driven to obtain to adjust the brightness of the standby lamp based on the duty cycle signals
The present intensity is compared by the present intensity of the standby lamp with predetermined luminance, when the present intensity with preset it is bright
When degree mismatches, the step of returning to the current setting parameter for obtaining the standby lamp of user interface;When the present intensity
When matching with predetermined luminance, the brightness value of the standby lamp is shown in the user interface.To improve standby lamp brightness
Debugging efficiency timely responds to current demand, and user is allow easily to make customized adjusting to standby lamp, reduces customer complaint wind
Danger ensures brand public praise.
In addition, the embodiment of the present invention also proposes a kind of storage medium, standby lamp brightness tune is stored on the storage medium
Program is saved, following operation is realized when the standby lamp brightness regulation program is executed by processor:
The setting parameter for obtaining the standby lamp of user interface determines the brightness value of the standby lamp according to the setting parameter;
The corresponding duty cycle signals of the standby lamp are determined according to the brightness value and default mapping relations;
The corresponding control circuit of the standby lamp is driven based on the duty cycle signals, to adjust the bright of the standby lamp
Degree.
Further, following operation is also realized when the standby lamp brightness regulation program is executed by processor:
The brightness value of the standby lamp is shown in the user interface.
Further, following operation is also realized when the standby lamp brightness regulation program is executed by processor:
Parameter and corresponding sample brightness value is arranged in the sample for acquiring standby lamp brightness in advance;
The corresponding relationship of sample setting parameter and the sample brightness value is stored into presetting database.
Further, following operation is also realized when the standby lamp brightness regulation program is executed by processor:
In response to the adjustment instruction of user's input, the current of the standby lamp of the user interface is obtained from the adjustment instruction
Parameter is set, searches the present intensity value of the standby lamp in the presetting database according to the current setting parameter.
Further, following operation is also realized when the standby lamp brightness regulation program is executed by processor:
The present intensity value is mapped to the corresponding duty ratio of the standby lamp by the default mapping relations, with defeated
Corresponding duty cycle signals out.
Further, following operation is also realized when the standby lamp brightness regulation program is executed by processor:
Based on the duty cycle signals, the corresponding control circuit of the standby lamp is controlled, periodically with corresponding adjusting
The brightness of the standby lamp.
Further, following operation is also realized when the standby lamp brightness regulation program is executed by processor:
The present intensity is compared by the present intensity for obtaining the standby lamp with predetermined luminance;
When the present intensity and predetermined luminance mismatch, the current of the acquisition standby lamp of user interface is returned
The step of parameter is set.
Further, following operation is also realized when the standby lamp brightness regulation program is executed by processor:
When the present intensity is matched with predetermined luminance, the current of the standby lamp is shown in the user interface
Brightness value.
In the present embodiment, by obtaining the setting parameter of the standby lamp of user interface, institute is determined according to the setting parameter
State the brightness value of standby lamp;The corresponding duty cycle signals of the standby lamp are determined according to the brightness value and default mapping relations;
The corresponding control circuit of the standby lamp is driven based on the duty cycle signals, to adjust the brightness of the standby lamp.To mention
The debugging efficiency of high standby lamp brightness, timely responds to current demand, user is allow easily to make customized tune to standby lamp
Section reduces customer complaint risk, ensures brand public praise.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.If listing equipment for drying
Unit claim in, several in these devices, which can be, to be embodied by the same item of hardware.Word first,
Second and the use of third etc. do not indicate any sequence, can be title by these word explanations.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
(such as read-only memory mirror image (Read Only Memory image, ROM)/random access memory (Random Access
Memory, RAM), magnetic disk, CD) in, including some instructions are used so that terminal device (can be mobile phone, computer,
Server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.