CN105825833B - A kind of luminance regulating method and terminal - Google Patents
A kind of luminance regulating method and terminal Download PDFInfo
- Publication number
- CN105825833B CN105825833B CN201510381237.3A CN201510381237A CN105825833B CN 105825833 B CN105825833 B CN 105825833B CN 201510381237 A CN201510381237 A CN 201510381237A CN 105825833 B CN105825833 B CN 105825833B
- Authority
- CN
- China
- Prior art keywords
- current value
- brightness
- environment
- value
- breathing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Circuit Arrangement For Electric Light Sources In General (AREA)
- Telephone Function (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
本发明提供一种亮度调整方法及终端,用以解决现有技术中存在的,当前的呼吸灯在不同的环境光亮度下不能都起到很好的提示效果的问题,所述亮度调整方法,包括:通过环境光传感器获取终端所处的环境的光亮度值;根据所述环境的光亮度值,生成控制指令;根据所述控制指令,对输入至终端的呼吸灯的电流值进行调整,使得所述呼吸灯的亮度与环境光亮度相适应。通过本发明的方案,能够使得终端的呼吸灯的亮度跟随环境光亮度的变化而变化,环境光亮度小时不会刺眼,环境光亮度大时容易看到,提高用户体验。
The present invention provides a brightness adjustment method and a terminal to solve the problem existing in the prior art that current breathing lamps cannot all have good prompting effects under different ambient light brightnesses. The brightness adjustment method, The method includes: obtaining the luminance value of the environment where the terminal is located through the ambient light sensor; generating a control instruction according to the luminance value of the environment; adjusting the current value of the breathing lamp input to the terminal according to the control instruction, so that The brightness of the breathing lamp is adapted to the ambient light brightness. Through the solution of the present invention, the brightness of the breathing light of the terminal can be changed according to the change of the ambient light brightness, so that the brightness of the ambient light is small, it is not dazzling, and it is easy to see when the ambient light brightness is high, thereby improving user experience.
Description
技术领域technical field
本发明涉及信息处理技术领域,特别是涉及一种亮度调整方法及终端。The present invention relates to the technical field of information processing, in particular to a brightness adjustment method and a terminal.
背景技术Background technique
目前,手机在进行整机充电时,会有一个指示灯来显示当前充电状态,该指示灯常被称为“呼吸灯”。所述呼吸灯可以在充电过程中提示手机是否在充电,以及是否充电完成,甚至有的手机的呼吸灯还能用来提示有未接消息或未接来电。At present, when the mobile phone is charging the whole machine, there will be an indicator light to display the current charging status, which is often called a "breathing light". The breathing light can prompt whether the mobile phone is charging and whether the charging is completed during the charging process, and even the breathing light of some mobile phones can also be used to prompt that there are missed messages or calls.
通常情况下,在不同时间、天气情况下,手机所处环境的光亮度值之间有着很大的区别。但目前,手机上的呼吸灯的亮度却是一直不变的,这会给用户带来不好的体验。例如,如果将呼吸灯的亮度设置得高,那么在阴天、晚上等环境光亮度小的时候,所述呼吸灯就显得十分刺眼;而如果将呼吸灯的亮度设置得低,那么在白天环境光亮度大的时候,所述呼吸灯就不容易被看到,起不到提示的效果。Usually, under different time and weather conditions, there is a big difference between the luminance values of the environment where the mobile phone is located. But at present, the brightness of the breathing light on the mobile phone is always constant, which will bring a bad experience to the user. For example, if the brightness of the breathing light is set high, the breathing light will appear very dazzling when the ambient light brightness is low such as cloudy days and nights; and if the brightness of the breathing light is set low, then the breathing light will When the brightness is high, the breathing light is not easy to be seen, and the effect of prompting cannot be achieved.
发明内容Contents of the invention
本发明的目的在于提供一种亮度调整方法及终端,使得所述呼吸灯的亮度能够跟随环境光亮度的变化而变化。The purpose of the present invention is to provide a brightness adjustment method and terminal, so that the brightness of the breathing lamp can be changed following the change of ambient light brightness.
为了实现上述的目的,本发明提供一种亮度调整方法,包括:In order to achieve the above object, the present invention provides a brightness adjustment method, comprising:
通过终端的环境光传感器获取终端所处的环境的光亮度值;Obtain the luminance value of the environment where the terminal is located through the ambient light sensor of the terminal;
根据所述环境的光亮度值,生成控制指令;generating a control instruction according to the brightness value of the environment;
根据所述控制指令,对输入至终端的呼吸灯的电流值进行调整,使得所述呼吸灯的亮度与环境光亮度相适应,其中,所述调整的方式为:随着所述环境的光亮度值的变大而增大所述呼吸灯的电流值,随着所述环境的光亮度值的变小而减小所述呼吸灯的电流值。According to the control instruction, the current value of the breathing light input to the terminal is adjusted so that the brightness of the breathing light adapts to the brightness of the ambient light, wherein the adjustment method is: with the brightness of the environment As the value becomes larger, the current value of the breathing lamp is increased, and as the brightness value of the environment becomes smaller, the current value of the breathing lamp is decreased.
本发明还提供一种终端,包括一呼吸灯,还包括:The present invention also provides a terminal, including a breathing light, and also includes:
环境光传感器,用于获取所述终端所处的环境的光亮度值;An ambient light sensor, configured to obtain a brightness value of the environment where the terminal is located;
控制器,与所述环境光传感器连接,用于根据所述环境的光亮度值,生成控制指令;a controller, connected to the ambient light sensor, for generating a control instruction according to the brightness value of the environment;
电源管理单元,与所述控制器和所述呼吸灯连接,用于根据所述控制指令,对输入至所述呼吸灯的电流值进行调整,使得所述呼吸灯的亮度与环境光亮度相适应,其中,所述调整的方式为:随着所述环境的光亮度值的变大而增大所述呼吸灯的电流值,随着所述环境的光亮度值的变小而减小所述呼吸灯的电流值。A power management unit, connected to the controller and the breathing light, configured to adjust the current value input to the breathing light according to the control instruction, so that the brightness of the breathing light adapts to the brightness of the ambient light , wherein the adjustment method is: increase the current value of the breathing lamp as the brightness value of the environment becomes larger, and decrease the current value of the breathing lamp as the brightness value of the environment becomes smaller. The current value of the breathing light.
通过本发明的上述技术方案,本发明的有益效果在于:Through the above-mentioned technical scheme of the present invention, the beneficial effect of the present invention is:
本发明的亮度调整方法及终端,能够通过环境光传感器获取终端所处的环境的光亮度值,根据所述环境的光亮度值,生成控制指令,并根据所述控制指令,对输入至终端的呼吸灯的电流值进行调整,使得所述呼吸灯的亮度与环境光亮度相适应,从而使得所述呼吸灯的亮度能够跟随环境光亮度的变化而变化,环境光亮度小时不会刺眼,环境光亮度大时容易看到,提高用户体验。The brightness adjustment method and the terminal of the present invention can obtain the brightness value of the environment where the terminal is located through the ambient light sensor, generate a control instruction according to the brightness value of the environment, and control the brightness input to the terminal according to the control instruction. The current value of the breathing lamp is adjusted so that the brightness of the breathing lamp adapts to the brightness of the ambient light, so that the brightness of the breathing lamp can follow the change of the ambient light brightness. It is easy to see when the brightness is high, which improves the user experience.
附图说明Description of drawings
图1表示本发明实施例的亮度调整方法的流程图。FIG. 1 shows a flowchart of a brightness adjustment method according to an embodiment of the present invention.
图2表示本发明实施例的终端的结构示意图。FIG. 2 shows a schematic structural diagram of a terminal according to an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合附图对具体实施例进行详细描述。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, specific embodiments will be described in detail below with reference to the accompanying drawings.
第一实施例first embodiment
参见图1所示,本发明实施例提供一种亮度调整方法,用于一具有呼吸灯的终端,所述亮度调整方法包括:Referring to FIG. 1 , an embodiment of the present invention provides a brightness adjustment method for a terminal with a breathing light, and the brightness adjustment method includes:
S101:通过终端的环境光传感器获取终端所处的环境的光亮度值;S101: Obtain the luminance value of the environment where the terminal is located through the ambient light sensor of the terminal;
S102:根据所述环境的光亮度值,生成控制指令;S102: Generate a control instruction according to the brightness value of the environment;
S103:根据所述控制指令,对输入至终端的呼吸灯的电流值进行调整,使得所述呼吸灯的亮度与环境光亮度相适应,其中,所述调整的方式为:随着所述环境的光亮度值的变大而增大所述呼吸灯的电流值,随着所述环境的光亮度值的变小而减小所述呼吸灯的电流值。S103: According to the control instruction, adjust the current value of the breathing light input to the terminal, so that the brightness of the breathing light adapts to the brightness of the ambient light, wherein the adjustment method is as follows: The current value of the breathing lamp increases as the luminance value increases, and decreases the current value of the breathing lamp as the luminance value of the environment decreases.
本发明实施例的亮度调整方法,能够通过环境光传感器获取终端所处的环境的光亮度值,根据所述环境的光亮度值,生成控制指令,并根据所述控制指令,对输入至终端的呼吸灯的电流值进行调整,使得所述呼吸灯的亮度与环境光亮度相适应,从而使得所述呼吸灯的亮度能够跟随环境光亮度的变化而变化,环境光亮度小时不会刺眼,环境光亮度大时容易看到,提高用户体验。The brightness adjustment method in the embodiment of the present invention can obtain the brightness value of the environment where the terminal is located through the ambient light sensor, generate a control instruction according to the brightness value of the environment, and control the brightness input to the terminal according to the control instruction. The current value of the breathing lamp is adjusted so that the brightness of the breathing lamp adapts to the brightness of the ambient light, so that the brightness of the breathing lamp can follow the change of the ambient light brightness. It is easy to see when the brightness is high, which improves the user experience.
举例来说,当终端A在晚上进行充电时,终端A的呼吸灯会亮起。在要对呼吸灯的亮度进行调整时,首先终端A的环境光传感器会检测得到终端A所处的环境的光亮度值,一般比较小,并根据所述环境的光亮度值,生成调整输入至终端的呼吸灯的电流值的控制指令,以减小输入至终端的呼吸灯的电流值,使呼吸灯的亮度较暗,这样,呼吸灯的亮度会由于终端A所处环境的环境光亮度小而降低,不会刺眼,提高用户体验。For example, when terminal A is charging at night, the breathing light of terminal A will be on. When adjusting the brightness of the breathing lamp, the ambient light sensor of terminal A will first detect the brightness value of the environment where terminal A is located, which is generally relatively small, and generate an adjustment input to the terminal A according to the brightness value of the environment The control command of the current value of the breathing light of the terminal is to reduce the current value input to the breathing light of the terminal, so that the brightness of the breathing light is darker, so that the brightness of the breathing light will be due to the low brightness of the ambient light of the environment where terminal A is located. While lowered, it will not be dazzling and improve the user experience.
第二实施例second embodiment
现实生活中,终端所处环境的光亮度值是一个不断变化的值。如果根据环境的光亮度值的不同对呼吸灯的亮度进行调整,就要不断的改变呼吸灯的电流值,影响呼吸灯的寿命。In real life, the brightness value of the environment where the terminal is located is a constantly changing value. If the brightness of the breathing lamp is adjusted according to the brightness value of the environment, the current value of the breathing lamp must be constantly changed, which will affect the life of the breathing lamp.
基于上述内容,本发明实施例还提供一种亮度调整方法,包括:Based on the above content, an embodiment of the present invention also provides a brightness adjustment method, including:
S101:通过终端的环境光传感器获取终端所处的环境的光亮度值;S101: Obtain the luminance value of the environment where the terminal is located through the ambient light sensor of the terminal;
S201:确定所述环境的光亮度值所处的环境光水平;S201: Determine the ambient light level at which the brightness value of the environment is located;
S202:根据预设的环境光水平与电流值的对应关系,确定与所述环境光水平对应的第一电流值;S202: Determine a first current value corresponding to the ambient light level according to the preset correspondence between the ambient light level and the current value;
S203:生成将输入至呼吸灯的电流值调整为所述第一电流值的控制指令;S203: Generate a control instruction for adjusting the current value input to the breathing lamp to the first current value;
S103:根据所述控制指令,对输入至终端的呼吸灯的电流值进行调整,使得所述呼吸灯的亮度与环境光亮度相适应,其中,所述调整的方式为:随着所述环境的光亮度值的变大而增大所述呼吸灯的电流值,随着所述环境的光亮度值的变小而减小所述呼吸灯的电流值。S103: According to the control instruction, adjust the current value of the breathing light input to the terminal, so that the brightness of the breathing light adapts to the brightness of the ambient light, wherein the adjustment method is as follows: The current value of the breathing lamp increases as the luminance value increases, and decreases the current value of the breathing lamp as the luminance value of the environment decreases.
其中,所述环境光水平是根据环境的光亮度值进行划分的,即将一定范围内的环境的光亮度值划分为处于同一环境光水平。Wherein, the ambient light level is divided according to the brightness value of the environment, that is, the brightness values of the environment within a certain range are divided into the same ambient light level.
这样,根据预设的环境光水平与电流值的对应关系,对呼吸灯的电流值进行调整,不仅避免不断的改变呼吸灯的电流值,还达到提示的效果,满足用户的需求。In this way, the current value of the breathing light is adjusted according to the preset corresponding relationship between the ambient light level and the current value, which not only avoids constantly changing the current value of the breathing light, but also achieves the effect of prompting and meets the needs of users.
例如,在一具体实施例中,预设的环境光水平与电流值的对应关系如表1所示:For example, in a specific embodiment, the corresponding relationship between the preset ambient light level and the current value is shown in Table 1:
表1Table 1
又例如,要对终端A的呼吸灯的亮度进行调整。For another example, it is necessary to adjust the brightness of the breathing light of terminal A.
当终端A所处的环境的光亮度值处于环境光水平C1时,根据表1,会生成将输入至呼吸灯的电流值调整为I1的控制指令,以调整呼吸灯的亮度;而当终端A所处的环境的光亮度值处于环境光水平C2时,根据表1,又会生成将输入至呼吸灯的电流值调整为I2的控制指令,以调整呼吸灯的亮度;以此类推。When the brightness value of the environment where the terminal A is located is at the ambient light level C1 , according to Table 1, a control instruction to adjust the current value input to the breathing lamp to I1 will be generated to adjust the brightness of the breathing lamp; and when When the brightness value of the environment where the terminal A is located is at the ambient light level C2 , according to Table 1, a control instruction for adjusting the current value input to the breathing lamp to I2 will be generated to adjust the brightness of the breathing lamp; analogy.
第三实施例third embodiment
简单来说,终端所处于的环境不是白天就是晚上,而白天又分为光线弱(阴天)时和光线强(晴天)时。在要求不高时,可根据应用场景的不同,对呼吸灯的亮度进行调整,以减少调整次数。To put it simply, the environment in which the terminal is located is either daytime or nighttime, and the daytime is divided into weak light (cloudy) and strong light (sunny). When the requirements are not high, the brightness of the breathing light can be adjusted according to different application scenarios to reduce the number of adjustments.
基于上述内容,本发明实施例还提供一种亮度调整方法,包括:Based on the above content, an embodiment of the present invention also provides a brightness adjustment method, including:
S101:通过终端的环境光传感器获取终端所处的环境的光亮度值;S101: Obtain the luminance value of the environment where the terminal is located through the ambient light sensor of the terminal;
S301:判断所述环境的光亮度值是否小于第一阈值;S301: Determine whether the brightness value of the environment is less than a first threshold;
S302:在所述环境的光亮度值小于所述第一阈值时,生成将输入至呼吸灯的电流值调整为第一预设电流值的控制指令,否则,生成将输入至呼吸灯的电流值调整为预设电流值的控制指令,其中,所述第一预设电流值比预设电流值小;S302: When the luminance value of the environment is less than the first threshold, generate a control instruction to adjust the current value input to the breathing lamp to a first preset current value; otherwise, generate a current value to be input to the breathing lamp A control command adjusted to a preset current value, wherein the first preset current value is smaller than the preset current value;
S103:根据所述控制指令,对输入至终端的呼吸灯的电流值进行调整,使得所述呼吸灯的亮度与环境光亮度相适应,其中,所述调整的方式为:随着所述环境的光亮度值的变大而增大所述呼吸灯的电流值,随着所述环境的光亮度值的变小而减小所述呼吸灯的电流值。S103: According to the control instruction, adjust the current value of the breathing light input to the terminal, so that the brightness of the breathing light adapts to the brightness of the ambient light, wherein the adjustment method is as follows: The current value of the breathing lamp increases as the luminance value increases, and decreases the current value of the breathing lamp as the luminance value of the environment decreases.
其中,所述第一阈值例如是白天或晚上的环境的光亮度值的分界点;当环境的光亮度值小于第一阈值时,表示是晚上,要将呼吸灯的亮度调暗,即将呼吸灯的电流值调整为第一预设电流值;而当环境的光亮度值大于等于第一阈值时,表示是白天,要让呼吸灯的电流值保持为预设电流值,即正常显示。Wherein, the first threshold is, for example, the dividing point of the brightness value of the environment during the day or at night; when the brightness value of the environment is less than the first threshold, it means that it is night, and the brightness of the breathing lamp should be dimmed, that is, the breathing lamp The current value of the breathing light is adjusted to the first preset current value; and when the brightness value of the environment is greater than or equal to the first threshold value, it means that it is daytime, and the current value of the breathing lamp should be kept at the preset current value, that is, it is displayed normally.
此外,本发明实施例还提供一种亮度调整方法,包括:In addition, an embodiment of the present invention also provides a brightness adjustment method, including:
S101:通过环境光传感器获取终端所处环境的光亮度值;S101: Obtain the brightness value of the environment where the terminal is located by using the ambient light sensor;
S301:判断所述环境的光亮度值是否小于第一阈值;S301: Determine whether the brightness value of the environment is less than a first threshold;
S302:在所述环境的光亮度值小于所述第一阈值时,生成将输入至呼吸灯的电流值调整为第一预设电流值的控制指令,其中,所述第一预设电流值比预设电流值小;S302: When the luminance value of the environment is less than the first threshold, generate a control instruction for adjusting the current value input to the breathing lamp to a first preset current value, wherein the first preset current value is higher than the first preset current value The preset current value is small;
S303:在所述环境的光亮度值大于等于所述第一阈值时,判断所述环境的光亮度值是否大于第二阈值;S303: When the luminance value of the environment is greater than or equal to the first threshold, determine whether the luminance value of the environment is greater than a second threshold;
S304:在所述环境的光亮度值大于所述第二阈值时,生成将输入至呼吸灯的电流值调整为第二预设电流值的控制指令,而在所述环境的光亮度值小于等于所述第二阈值时,生成将输入至呼吸灯的电流值调整为预设电流值的控制指令,其中,所述第二预设电流值比预设电流值大;S304: When the brightness value of the environment is greater than the second threshold, generate a control instruction for adjusting the current value input to the breathing lamp to a second preset current value, and when the brightness value of the environment is less than or equal to When the second threshold is reached, a control command is generated to adjust the current value input to the breathing lamp to a preset current value, wherein the second preset current value is greater than the preset current value;
S103:根据所述控制指令,对输入至终端的呼吸灯的电流值进行调整,使得所述呼吸灯的亮度与环境光亮度相适应,其中,所述调整的方式为:随着所述环境的光亮度值的变大而增大所述呼吸灯的电流值,随着所述环境的光亮度值的变小而减小所述呼吸灯的电流值。S103: According to the control instruction, adjust the current value of the breathing light input to the terminal, so that the brightness of the breathing light adapts to the brightness of the ambient light, wherein the adjustment method is as follows: The current value of the breathing lamp increases as the luminance value increases, and decreases the current value of the breathing lamp as the luminance value of the environment decreases.
其中,所述第一阈值例如是白天或晚上的环境的光亮度值的分界点,而所述第二阈值例如是白天光线弱或强时的环境的光亮度值的分界点。Wherein, the first threshold is, for example, the cut-off point of the brightness value of the environment during the day or night, and the second threshold is, for example, the cut-off point of the brightness value of the environment when the light is weak or strong during the day.
当环境的光亮度值小于第一阈值时,表示是晚上,将呼吸灯的亮度调暗,即将呼吸灯的电流值调整为第一预设电流值;而当环境的光亮度值大于第二阈值时,表示是光线强的白天,将呼吸灯的亮度调亮,即将呼吸灯的电流值调整为第二预设电流值;而当环境的光亮度值大于等于第一阈值且小于等于第二阈值时,表示是光线弱的白天,将呼吸灯的电流值保持为预设电流值,即正常显示,以提高用户体验。When the brightness value of the environment is less than the first threshold value, it means that it is night, dim the brightness of the breathing lamp, that is, adjust the current value of the breathing lamp to the first preset current value; and when the brightness value of the environment is greater than the second threshold value When , it means that it is a daytime with strong light, adjust the brightness of the breathing lamp, that is, adjust the current value of the breathing lamp to the second preset current value; and when the brightness value of the environment is greater than or equal to the first threshold and less than or equal to the second threshold When , it means that it is a daytime when the light is weak, and the current value of the breathing light is kept at the preset current value, that is, it is displayed normally, so as to improve the user experience.
值得注意的是,上述的第一阈值、第二阈值、第一预设电流值、第二预设电流值和预设电流值都是根据实际情况预设的,可进行不同的选择。It should be noted that the above-mentioned first threshold, second threshold, first preset current value, second preset current value and preset current value are all preset according to actual conditions and can be selected differently.
这样,在满足用户需求的前提下,减少了对呼吸灯的调整次数,对呼吸灯形成保护。In this way, on the premise of meeting the user's needs, the number of adjustments to the breathing light is reduced, and the breathing light is protected.
第四实施例Fourth embodiment
通常情况下,终端的呼吸灯所处的提示状态至少包括充电提示状态和未接消息或来电提示状态。根据要求的不同,可以在不同的提示状态下,对呼吸灯的亮度进行不同的调整。Usually, the notification state of the breathing light of the terminal includes at least a charging notification state and a missed message or incoming call notification state. According to different requirements, the brightness of the breathing light can be adjusted differently in different prompt states.
基于上述内容,本发明实施例还提供一种亮度调整方法,包括:Based on the above content, an embodiment of the present invention also provides a brightness adjustment method, including:
S101:通过终端的环境光传感器获取终端所处的环境的光亮度值;S101: Obtain the luminance value of the environment where the terminal is located through the ambient light sensor of the terminal;
S401:确定终端的呼吸灯所处的提示状态;S401: Determine the prompt state of the breathing light of the terminal;
S402:根据所述环境的光亮度值及所述呼吸灯所处的提示状态,生成控制指令,其中,所述呼吸灯所处的提示状态为充电提示状态或未接消息或来电提示状态,且在相同的所述环境的光亮度值下,充电提示状态下的呼吸灯的电流值比未接消息或来电提示状态下的呼吸灯的电流值小;S402: Generate a control instruction according to the brightness value of the environment and the prompt state of the breathing light, wherein the prompt state of the breathing light is a charging prompt state or a missed message or incoming call prompt state, and Under the same brightness value of the environment, the current value of the breathing light in the state of charging reminder is smaller than the current value of the breathing light in the state of reminder of missed message or incoming call;
S103:根据所述控制指令,对输入至终端的呼吸灯的电流值进行调整,使得所述呼吸灯的亮度与环境光亮度相适应,其中,所述调整的方式为:随着所述环境的光亮度值的变大而增大所述呼吸灯的电流值,随着所述环境的光亮度值的变小而减小所述呼吸灯的电流值。S103: According to the control instruction, adjust the current value of the breathing light input to the terminal, so that the brightness of the breathing light adapts to the brightness of the ambient light, wherein the adjustment method is as follows: The current value of the breathing lamp increases as the luminance value increases, and decreases the current value of the breathing lamp as the luminance value of the environment decreases.
本发明实施例中,S402中的生成控制指令的实现方式可以采用第二、三实施例中的生成控制指令的实现方式来实现。In the embodiment of the present invention, the implementation manner of generating the control instruction in S402 may be implemented by using the implementation manner of generating the control instruction in the second and third embodiments.
在本发明具体实施例中,可以首先确认呼吸灯所处的提示状态,在呼吸灯所处的提示状态确定后,再根据所述环境的光亮度值的不同,对呼吸灯的亮度进行调整,使得当前提示状态下的呼吸灯的亮度与环境光亮度相适应。In a specific embodiment of the present invention, the prompting state of the breathing light can be confirmed first, and after the prompting state of the breathing light is determined, the brightness of the breathing light can be adjusted according to the brightness value of the environment. Make the brightness of the breathing light in the current reminder state adapt to the brightness of the ambient light.
而不同的提示状态下,所述呼吸灯的第一预设电流值、第二预设电流值及预设电流值都是不同的,是用户根据实际情况预设的。In different prompting states, the first preset current value, the second preset current value and the preset current value of the breathing light are all different, which are preset by the user according to the actual situation.
例如,在相同的所述环境的光亮度值下,可以将充电提示状态下的呼吸灯的电流值设置为比未接消息或来电提示状态下的呼吸灯的电流值小,能够在存在未接消息或来电时,更利于提醒用户。For example, under the same brightness value of the environment, the current value of the breathing light in the charging reminder state can be set to be smaller than the current value of the breathing light in the missed message or incoming call reminder state, which can be used when there is a missed call. It is more helpful to remind the user when there is a message or an incoming call.
这样,根据不同的提示状态,对呼吸灯的亮度进行不同的调整,更能满足用户的需求,提高用户体验。In this way, the brightness of the breathing light is adjusted differently according to different prompting states, which can better meet the needs of users and improve user experience.
参见图2所示,本发明实施例还提供一种终端10,包括一呼吸灯14。所述终端10还包括:Referring to FIG. 2 , the embodiment of the present invention also provides a terminal 10 including a breathing light 14 . The terminal 10 also includes:
环境光传感器11,用于获取所述终端10所处的环境的光亮度值;Ambient light sensor 11, configured to acquire the luminance value of the environment where the terminal 10 is located;
控制器12,与所述环境光传感器11连接,用于根据所述环境的光亮度值,生成控制指令;A controller 12, connected to the ambient light sensor 11, for generating a control instruction according to the brightness value of the environment;
电源管理单元13,与所述控制器12和所述呼吸灯14连接,用于根据所述控制指令,对输入至所述呼吸灯14的电流值进行调整,使得所述呼吸灯14的亮度与环境光亮度相适应,其中,所述调整的方式为:随着所述环境的光亮度值的变大而增大所述呼吸灯14的电流值,随着所述环境的光亮度值的变小而减小所述呼吸灯14的电流值。The power management unit 13 is connected with the controller 12 and the breathing light 14, and is used to adjust the current value input to the breathing light 14 according to the control instruction, so that the brightness of the breathing light 14 is the same as that of the breathing light 14. The adjustment method is: increase the current value of the breathing lamp 14 as the brightness value of the environment increases, and increase the current value of the breathing lamp 14 as the brightness value of the environment increases. Small and reduce the current value of the breathing lamp 14 .
其中,所述环境光传感器11例如选择光敏传感器,而所述控制器12例如是终端内置的中央处理器CPU或呼吸灯内增加的处理器MCU,本发明不对其进行限制,可根据具体的情况进行选择。Wherein, the ambient light sensor 11 is, for example, a photosensitive sensor, and the controller 12 is, for example, a built-in central processing unit CPU in the terminal or an added processor MCU in the breathing light. Make a selection.
本发明实施例的终端,能够通过环境光传感器获取终端所处的环境的光亮度值,根据所述环境的光亮度值,生成控制指令,并根据所述控制指令,对输入至终端的呼吸灯的电流值进行调整,使得所述呼吸灯的亮度与环境光亮度相适应,从而使得所述呼吸灯的亮度能够跟随环境光亮度的变化而变化,环境光亮度小时不会刺眼,环境光亮度大时容易看到,提高用户体验。The terminal in the embodiment of the present invention can obtain the brightness value of the environment where the terminal is located through the ambient light sensor, generate a control instruction according to the brightness value of the environment, and control the breathing light input to the terminal according to the control instruction. The current value is adjusted so that the brightness of the breathing lamp adapts to the brightness of the ambient light, so that the brightness of the breathing lamp can follow the change of the ambient light brightness. The ambient light brightness is small and the ambient light brightness is large. Easy to see from time to time, improving user experience.
在本发明具体实施例中,所述控制器12包括:In a specific embodiment of the present invention, the controller 12 includes:
第一确定单元,用于确定所述环境的光亮度值所处的环境光水平;a first determining unit, configured to determine the ambient light level at which the brightness value of the environment is located;
第二确定单元,用于根据预设的环境光水平与电流值的对应关系,确定与所述环境光水平对应的第一电流值;The second determining unit is configured to determine a first current value corresponding to the ambient light level according to a preset correspondence between the ambient light level and the current value;
第一生成单元,用于生成将输入至所述呼吸灯14的电流值调整为所述第一电流值的控制指令。The first generating unit is configured to generate a control instruction for adjusting the current value input to the breathing lamp 14 to the first current value.
这样,根据预设的环境光水平与电流值的对应关系,对呼吸灯的电流值进行调整,不仅避免不断的改变呼吸灯的电流值,还达到提示的效果,满足用户的需求。In this way, the current value of the breathing light is adjusted according to the preset corresponding relationship between the ambient light level and the current value, which not only avoids constantly changing the current value of the breathing light, but also achieves the effect of prompting and meets the needs of users.
在本发明具体实施例中,所述控制器12包括:In a specific embodiment of the present invention, the controller 12 includes:
第一判断单元,用于判断所述环境的光亮度值是否小于第一阈值;a first judging unit, configured to judge whether the brightness value of the environment is less than a first threshold;
第二生成单元,用于在所述环境的光亮度值小于所述第一阈值时,生成将输入至所述呼吸灯14的电流值调整为第一预设电流值的控制指令,否则,生成将输入至所述呼吸灯14的电流值调整为预设电流值的控制指令,其中,所述第一预设电流值比预设电流值小。The second generating unit is configured to generate a control instruction for adjusting the current value input to the breathing lamp 14 to a first preset current value when the luminance value of the environment is less than the first threshold; otherwise, generate A control instruction for adjusting the current value input to the breathing lamp 14 to a preset current value, wherein the first preset current value is smaller than the preset current value.
所述控制器12还包括:The controller 12 also includes:
第二判断单元,用于在所述环境的光亮度值大于等于所述第一阈值时,判断所述环境的光亮度值是否大于第二阈值;A second judging unit, configured to judge whether the brightness value of the environment is greater than a second threshold when the brightness value of the environment is greater than or equal to the first threshold;
所述第二生成单元具体用于在所述环境的光亮度值大于所述第二阈值时,生成将输入至所述呼吸灯14的电流值调整为第二预设电流值的控制指令,而在所述环境的光亮度值小于等于所述第二阈值时,生成将输入至所述呼吸灯14的电流值调整为预设电流值的控制指令,其中,所述第二预设电流值比预设电流值大。The second generation unit is specifically configured to generate a control instruction for adjusting the current value input to the breathing lamp 14 to a second preset current value when the brightness value of the environment is greater than the second threshold value, and When the luminance value of the environment is less than or equal to the second threshold value, a control instruction for adjusting the current value input to the breathing lamp 14 to a preset current value is generated, wherein the second preset current value is higher than the second threshold value. The preset current value is large.
在本发明具体实施例中,所述控制器12具体用于确定所述终端10的呼吸灯14所处的提示状态,并根据所述环境的光亮度值及所述呼吸灯14所处的提示状态,生成控制指令;In a specific embodiment of the present invention, the controller 12 is specifically configured to determine the reminder state of the breathing light 14 of the terminal 10, and to status, generate control instructions;
其中,所述呼吸灯14所处的提示状态为充电提示状态或未接消息或来电提示状态,且在相同的所述环境的光亮度值下,充电提示状态下的所述呼吸灯14的电流值比未接消息或来电提示状态下的所述呼吸灯14的电流值小。Wherein, the prompting state of the breathing light 14 is the charging prompting state or the missed message or incoming call prompting state, and under the same brightness value of the environment, the current of the breathing lamp 14 in the charging prompting state The value is smaller than the current value of the breathing light 14 in the missed message or incoming call prompt state.
这样,根据不同的提示状态,对所述呼吸灯14的亮度进行不同的调整,更能满足用户的需求,提高用户体验。In this way, the brightness of the breathing light 14 is adjusted differently according to different prompting states, which can better meet the needs of users and improve user experience.
本发明实施例的终端例如是具有呼吸灯的手机等,能够通过环境光传感器获取终端所处的环境的光亮度值,根据所述环境的光亮度值,生成控制指令,并根据所述控制指令,对输入至终端的呼吸灯的电流值进行调整,使得所述呼吸灯的亮度与环境光亮度相适应,从而使得所述呼吸灯的亮度能够跟随环境光亮度的变化而变化,环境光亮度小时不会刺眼,环境光亮度大时容易看到,提高用户体验。The terminal in the embodiment of the present invention is, for example, a mobile phone with a breathing light, which can obtain the brightness value of the environment where the terminal is located through an ambient light sensor, generate a control instruction according to the brightness value of the environment, and generate a control instruction according to the control instruction. , adjust the current value of the breathing light input to the terminal, so that the brightness of the breathing light adapts to the brightness of the ambient light, so that the brightness of the breathing light can follow the change of the ambient light brightness, and the ambient light brightness is small It will not be dazzling, and it is easy to see when the ambient light is high, which improves the user experience.
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above is only a preferred embodiment of the present invention, it should be pointed out that, for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510381237.3A CN105825833B (en) | 2015-06-30 | 2015-06-30 | A kind of luminance regulating method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510381237.3A CN105825833B (en) | 2015-06-30 | 2015-06-30 | A kind of luminance regulating method and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105825833A CN105825833A (en) | 2016-08-03 |
CN105825833B true CN105825833B (en) | 2018-08-17 |
Family
ID=56514439
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510381237.3A Active CN105825833B (en) | 2015-06-30 | 2015-06-30 | A kind of luminance regulating method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105825833B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106791105B (en) * | 2016-12-22 | 2020-08-07 | 北京小米松果电子有限公司 | Method for controlling prompt lamp and mobile terminal |
CN106851005A (en) * | 2017-02-27 | 2017-06-13 | 北京小米移动软件有限公司 | Configure method, device and the terminal of breath light running parameter |
CN106888534B (en) * | 2017-03-15 | 2020-01-24 | 珠海市魅族科技有限公司 | Illumination control method and device |
CN106840121B (en) * | 2017-03-27 | 2023-07-28 | 青岛镭创光电技术有限公司 | Line projector and control method |
CN107885260B (en) * | 2017-11-06 | 2021-01-01 | 深圳市中孚能电气设备有限公司 | Automatic adjustment method and system |
CN109361751A (en) * | 2018-10-25 | 2019-02-19 | 安徽独角仙信息科技有限公司 | A kind of public restroom management method based on Internet of Things |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11109936A (en) * | 1997-09-29 | 1999-04-23 | Fuji Electric Co Ltd | Display control device and display method |
CN1617551A (en) * | 2004-11-29 | 2005-05-18 | 时仁帅 | Control method and system for cell phone indication lamp |
CN101754523A (en) * | 2008-10-27 | 2010-06-23 | 华为终端有限公司 | Indicator lamp status controlling method and the device and terminal thereof |
CN102469656A (en) * | 2010-11-16 | 2012-05-23 | 联想(北京)有限公司 | Indicator lamp control method and device and terminal |
EP2495962A1 (en) * | 2009-10-27 | 2012-09-05 | Sharp Kabushiki Kaisha | Display device, control method for said display device, program, and computer-readable recording medium having program stored thereon |
CN103200733A (en) * | 2013-02-19 | 2013-07-10 | 中兴通讯股份有限公司 | Method and device used for automatically controlling state indicator lamp of terminal equipment |
CN104052876A (en) * | 2014-06-18 | 2014-09-17 | 深圳市欧珀通信软件有限公司 | A breathing light reminding method applied to a mobile terminal and the mobile terminal |
-
2015
- 2015-06-30 CN CN201510381237.3A patent/CN105825833B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11109936A (en) * | 1997-09-29 | 1999-04-23 | Fuji Electric Co Ltd | Display control device and display method |
CN1617551A (en) * | 2004-11-29 | 2005-05-18 | 时仁帅 | Control method and system for cell phone indication lamp |
CN101754523A (en) * | 2008-10-27 | 2010-06-23 | 华为终端有限公司 | Indicator lamp status controlling method and the device and terminal thereof |
EP2495962A1 (en) * | 2009-10-27 | 2012-09-05 | Sharp Kabushiki Kaisha | Display device, control method for said display device, program, and computer-readable recording medium having program stored thereon |
CN102469656A (en) * | 2010-11-16 | 2012-05-23 | 联想(北京)有限公司 | Indicator lamp control method and device and terminal |
CN103200733A (en) * | 2013-02-19 | 2013-07-10 | 中兴通讯股份有限公司 | Method and device used for automatically controlling state indicator lamp of terminal equipment |
CN104052876A (en) * | 2014-06-18 | 2014-09-17 | 深圳市欧珀通信软件有限公司 | A breathing light reminding method applied to a mobile terminal and the mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN105825833A (en) | 2016-08-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105825833B (en) | A kind of luminance regulating method and terminal | |
CN103327148B (en) | Based on implementation method and the mobile terminal of the brightness of mobile terminal adjustment screen backlight | |
CN103996392B (en) | A kind of method, circuit and display device adjusting screen intensity | |
US8797372B2 (en) | Device and method for controlling screen brightness | |
CN109036296B (en) | Screen backlight brightness adjustment method, device, terminal and storage medium | |
CN102857630B (en) | Method for periodically and automatically controlling screen brightness of smart phone | |
CN102790824B (en) | Mobile terminal and adjusting method of screen brightness in calling state of mobile terminal | |
CN103176339B (en) | A kind of projection brightness varitrol and method | |
TW201120853A (en) | Electronic apparatus and backlight brightness control method thereof | |
CN105679252B (en) | The quick method and system that backlight illumination is set | |
CN103051760A (en) | A screen brightness adjustment method based on a touch screen mobile phone | |
CN106205554A (en) | A kind of regulate the method and device that screen shows | |
CN103325355A (en) | Method for dynamically adjusting backlight brightness based on image content | |
EP3046003B1 (en) | Screen brightness regulation method and apparatus, and storage medium | |
CN104464686A (en) | Display brilliance control method and electronic device | |
CN105050246A (en) | Method for adjusting light brightness by using mobile terminal and mobile terminal | |
CN105007429A (en) | Method and system for elimination scintillation, and mobile terminal | |
CN102736723A (en) | Method for automatically regulating screen backlight duration of mobile terminal | |
CN105262900A (en) | Screen brightness adjusting method and screen brightness adjusting device | |
CN103616995A (en) | Switching method and system of mobile terminal screen backlight regulating modes | |
CN108766367A (en) | Backlight brightness control method, television terminal and computer readable storage medium | |
CN106657676A (en) | Screen brightness adjusting method and device | |
US8537102B2 (en) | Backlight control apparatus and control method thereof | |
CN105304061B (en) | The adjusting method and terminal of the display picture of terminal | |
CN112888116B (en) | Dimming method, dimming device and computer storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |