WO2016131340A1 - 一种终端按键灯亮度控制方法和装置 - Google Patents
一种终端按键灯亮度控制方法和装置 Download PDFInfo
- Publication number
- WO2016131340A1 WO2016131340A1 PCT/CN2015/098736 CN2015098736W WO2016131340A1 WO 2016131340 A1 WO2016131340 A1 WO 2016131340A1 CN 2015098736 W CN2015098736 W CN 2015098736W WO 2016131340 A1 WO2016131340 A1 WO 2016131340A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- brightness
- touch screen
- attribute value
- terminal
- button
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
Definitions
- This document relates to, but is not limited to, the field of terminals, and more particularly to a method and apparatus for controlling brightness of a button light on a terminal including a touch screen.
- Touch screen terminal devices have been widely used in people's daily life, in line with the needs of terminal product design, or the changes in the supply of touch screen devices.
- touch screen colors For the bare devices produced by the same terminal, there are touch screen colors, touch screen suppliers or touch screens.
- the difference in light transmittance For example, a manufacturer's same mobile phone needs to be designed with black and white touch screens respectively.
- black and white touch screen buttons have different light transmittances, and black buttons have a light transmittance of only 10%.
- the light transmittance is 18%, and the black and white touch screens share the same motherboard and software. Therefore, when the brightness of the button lights is the same, the white button lights will appear brighter and even dazzling.
- the black and white touch screen uses the same hardware and software to accept the fact that the brightness of the button light is different; adjust the light transmittance of the button silk screen to make the two close to each other;
- the other is to use different software for the black and white touch screen mobile phones, each of which configures different currents for the button lights to achieve different brightness.
- Embodiments of the present invention provide a method and apparatus for controlling brightness of a button light to solve the technical problem of avoiding different terminal software versions for adapting to different touch screen attributes.
- Embodiments of the present invention provide a method for controlling brightness of a button light of a terminal, including:
- the obtaining the attribute value of the touch screen of the terminal includes:
- the attribute value of the touch screen of the terminal read from the register of the touch screen includes at least one of the following items:
- Touch screen transmittance, touch screen color and touch screen model
- controlling the brightness of the button light of the terminal according to the attribute value of the touch screen of the terminal including:
- the attribute value of the touch screen of the terminal searching for the preset relationship between the attribute value range and the brightness of the button light, and determining the brightness of the button light corresponding to the attribute value, controlling the brightness of the button light of the terminal.
- the corresponding relationship between the preset attribute value range and the brightness of the button light includes: a correspondence between the pin connection mode and the brightness of the button lamp.
- the brightness of the button light of the control terminal includes:
- the embodiment of the invention further provides a device for automatically controlling the brightness of a button light, which is applied to a terminal including a touch screen, comprising: a parameter acquisition module and a brightness control module;
- a parameter obtaining module configured to obtain an attribute value of the touch screen
- the brightness control module is configured to control the brightness of the button light according to the attribute value of the touch screen acquired by the parameter acquisition module.
- the parameter obtaining module is configured to obtain the attribute value of the touch screen by:
- the parameter obtaining module when configured to set an attribute value of the touch screen of the terminal from a register of the terminal, the attribute value includes at least one of the following items:
- Touch screen transmittance, touch screen color and touch screen model
- the brightness control module is configured to control the brightness of the button light according to the attribute value of the touch screen of the terminal by:
- the device further includes a parameter setting module configured to set a correspondence between the range of the touch screen attribute value and the brightness of the button light.
- the corresponding relationship between the preset attribute value range and the brightness of the button light includes: a correspondence between the pin connection mode and the brightness of the button lamp.
- the brightness control module includes: a current control sub-module, configured to control, according to the brightness of the button light corresponding to the attribute value, a current supplied to the button lamp; wherein the brightness of the corresponding button lamp is greater, and the button lamp is provided The current is larger.
- the brightness control module includes:
- a current duty control sub-module configured to control a duty ratio of a current supplied to the button lamp according to the brightness of the button lamp corresponding to the attribute value; wherein, the greater the brightness of the corresponding button lamp is, the current supplied to the button lamp The duty cycle is larger.
- An embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the foregoing method.
- the above technical solution avoids adopting different terminal software versions to adapt to the different touch screen attributes, and realizes adaptive control of the touch screen brightness according to the attributes of the touch screen, which not only brings a more perfect product experience to the end user, but also reduces the terminal manufacturer software. Version management and maintenance difficulty and cost.
- FIG. 1 is a flowchart of a method for controlling brightness of a button lamp according to Embodiment 1 of the present invention
- FIG. 2 is a structural diagram of a brightness control device for a button lamp according to a second embodiment of the present invention.
- Embodiment 1 is a diagrammatic representation of Embodiment 1:
- FIG. 1 is a flowchart of a method for controlling brightness of a button lamp according to an embodiment of the present invention. The method is applied to an apparatus for automatically controlling brightness of a button lamp, and the method includes:
- Step 101 Acquire an attribute value of a touch screen of the terminal.
- Step 102 Control the brightness of the button light of the terminal according to the attribute value of the touch screen of the terminal.
- Step 101 Obtain an attribute value of the touch screen, where the attribute value indicates that the brightness of the button light of the terminal that is equipped with the touch screen is determined according to the attribute value;
- the method for obtaining the attribute value of the touch screen can be read from a register of the terminal, and the register can be a register of the touch screen or a register at other positions in the terminal;
- the method for obtaining the attribute value of the touch screen can also be determined according to the pin connection mode of the touch screen, that is, the attribute value is a pin connection mode, and represents a touch screen type that needs to distinguish the brightness of the control button light.
- Different touch screens use different sensor ID (Sensor ID) pins to connect to the internal circuitry of the terminal.
- Sensor ID Sensor ID
- a touch screen IC chip is used in which two pins are used to identify the state of the touch screen.
- Each pin can be connected to a high voltage Vdd, a General Purpose Input Output GPIO interface, or a ground GND through two pins.
- Different interfaces are connected, so that a plurality of different touch screen states can be identified, and the connection manners of the two pins are correspondingly selected according to the touch screens of different colors or different transmittances selected by the terminal hardware.
- the black touch screen is connected to the high Vdd and the ground GND through two pins respectively, and the white touch screen is respectively connected to the high Vdd and GPIO interfaces through two pins.
- the touch screen of the terminal is connected by any of the above methods. Ok, can be correctly learned.
- the implementation of the solution of the present invention is not limited to the specific pins and the connection of the signal interfaces exemplified in the embodiment.
- the connection of the specific mode can be achieved under the premise of ensuring the function of the touch screen. The technical effects described in the present invention.
- the touch screen attribute value read from the terminal register includes at least one of the following:
- the touch screen transmittance is 80%, 90% or 95%.
- the color of the touch screen is black, white, pink, blue, etc.; or the commonly used red, green, and blue RGB color identification values; or other color identification values; the manner in which the present invention is expressed in color is not limited to the manner exemplified in the embodiment. .
- the touch screen model may be a model of the touch screen hardware or a touch screen supplier code; it may also be replaced and deformed into other numbers, and the meaning of the solution of the present invention to the touch screen model is not limited to the aspects exemplified in the embodiment.
- step 102 according to the attribute value of the touch screen of the terminal, the pressing of the terminal is controlled.
- Key lamp brightness including:
- the corresponding relationship between the preset attribute value range and the brightness of the button light includes: a correspondence between the pin connection mode and the brightness of the button lamp, as shown in Table 1. Shown as follows:
- Table 1 Correspondence table between pin connection method and button lamp brightness
- connection mode of the touch screen in the terminal is determined. Assuming that the white touch screen is connected by mode, the table 1 is searched to determine that the corresponding brightness is 5; the black touch screen is connected by mode 2, and the lookup table is used. 1, determine its corresponding brightness is 8.
- Pin 1 is connected to high Vdd, and pin 2 is connected to GPIO interface;
- pin 1 is connected to GPIO interface, pin 2 is connected to high Vdd;
- Pin 1 is connected to high Vdd, and pin 2 is connected to ground GND.
- the modes three, four, and the like can be extended according to the manner shown in the present embodiment.
- Those skilled in the art can easily change or replace or extend the definition of more connection modes within the scope of the example of the pin connection method exemplified in the embodiment.
- the transmittance stored in the register is determined. If the transmittance of the register stored in the terminal is 70, look up Table 2 and determine that the corresponding brightness is 8; If the rate is 88, look up Table 2 and determine that its corresponding brightness is 7; if the transmittance of the register stored in the terminal is 95, look up Table 2 and determine that its corresponding brightness is 6.
- the method for expressing the light transmittance is not limited to the manner exemplified in the embodiment, and those skilled in the art can use other representation methods to characterize the light transmittance.
- the touch screen color parameter saved in the register is determined. If the color of the touch screen saved in the register in the terminal is black, look up Table 3 and determine that the corresponding brightness is 8; suppose the color of the touch screen saved in the register in the terminal is For pink, look up Table 3 and determine that its corresponding brightness is 7; if the color of the touch screen saved in the register in the terminal is white, look up Table 3 and determine that its corresponding brightness is 5.
- Table 3 above may also be replaced by a red, green and blue RGB color identification value range corresponding to the brightness of the button light.
- the correspondence between the preset attribute value range and the brightness of the button light can be as shown in Table 4:
- the touch panel model parameters saved in the register are determined. If the touch screen model saved in the register in the terminal is IS2002, look up Table 4 and determine that the corresponding brightness is 8; IS2008, look up Table 4, determine its corresponding brightness is 8; assuming the touch screen model saved in the terminal is WE0009, look up Table 4, determine its corresponding brightness is 7; assuming that the touch screen model saved in the register in the terminal is WW0031, Then look up Table 4, if the corresponding brightness is not found, it is determined that the corresponding brightness is the default value of 7.
- Table 5 Correspondence between touch screen color, model and button light brightness
- the touch screen model indicates the touch screen supplier code, and the contents of Table 5 indicate the same black.
- the touch screen due to the difference of the supplier, requires different brightness of the button light.
- the touch screen color and model parameters saved in the register are determined. If the color of the touch screen saved in the register in the terminal is black and the model number is AAA1, then look up Table 5 and determine that the corresponding brightness is 8; The color of the touch screen saved in the register is black, and the model number is AAA2. Then look up Table 5 and determine that the corresponding brightness is 8; if the color of the touch screen saved in the register in the terminal is black and the model number is AAA3, look up Table 5 and determine the corresponding brightness. 9; assuming that the color of the touch screen saved in the register in the terminal is white and the model number is AAA1, look up Table 5 and determine that the corresponding brightness is 6.
- the definition of the model of the touch screen is not limited to the contents exemplified in the embodiment. Those skilled in the art can easily change or replace other touch screens according to the model examples exemplified in the embodiment. The meaning of the model definition, the different models, in some cases, there will be different requirements for the brightness of the button light.
- the numerical value indicates the brightness.
- the larger the value the greater the brightness of the button lamp that needs to be set.
- the smaller the value the greater the brightness of the button light that needs to be set.
- other methods may be used to indicate the brightness, which is well known to those skilled in the art according to the present embodiment.
- An example of the illuminance size exemplified can be easily thought of as a change or replacement to obtain more brightness representation.
- the current supplied to the button lamp can be controlled according to the brightness of the corresponding button lamp to achieve the purpose of controlling the brightness, and the corresponding brightness of the button lamp is greater. The greater the current supplied to the button light.
- the duty ratio of the current supplied to the button lamp may be controlled according to the brightness of the corresponding button lamp to achieve the purpose of controlling the brightness.
- the greater the brightness of the corresponding button lamp the greater the duty ratio of the current supplied to the button lamp.
- a computer storage medium having stored therein computer executable instructions for performing the methods described above.
- Embodiment 2 is a diagrammatic representation of Embodiment 1:
- the embodiment of the invention further provides a device for automatically controlling the brightness of the button light, which is applied to a terminal including a touch screen, as shown in FIG. 2, comprising: a parameter acquisition module and a brightness control module;
- a parameter obtaining module configured to acquire an attribute value of the touch screen
- the brightness control module is configured to control the brightness of the button light according to the attribute value of the touch screen acquired by the parameter acquisition module.
- the attribute value of the acquired touch screen indicates that the brightness of the button light of the terminal that is equipped with the touch screen is determined according to the attribute value
- the parameter obtaining module is configured to obtain the attribute value of the touch screen by:
- the attribute value of the terminal touch screen read in the register of the terminal including at least one of the following items:
- Touch screen transmittance, touch screen color and touch screen model
- the device further includes:
- the preset parameter setting module is configured to preset a correspondence relationship between the touch screen attribute value range and the brightness of the button light; and the corresponding relationship between the preset touch screen attribute value range and the brightness of the button light, refer to the example in the implementation example.
- the brightness control module is configured to control the brightness of the button light of the terminal according to the attribute value of the touch screen of the terminal by:
- the attribute value of the touch screen terminal is a pin connection mode, which represents a touch screen type that needs to distinguish the brightness of the control button light.
- Corresponding relationship between the preset attribute value range and the brightness of the button light includes: a correspondence between the pin connection mode and the brightness of the button lamp.
- the brightness control module includes a current control sub-module, configured to control the current supplied to the button lamp according to the brightness of the button lamp corresponding to the specific attribute value, so as to achieve the purpose of controlling the brightness of the button lamp, the corresponding brightness of the button lamp is greater The greater the current supplied to the button light;
- the brightness control module includes a current duty control sub-module configured to control the current duty ratio provided to the button lamp according to the brightness of the button lamp corresponding to the specific attribute value, so as to achieve the purpose of controlling the brightness of the button lamp, the corresponding button The greater the brightness of the lamp, the greater the duty cycle of the current supplied to the button lamp.
- the corresponding relationship between the touch screen attribute value and the brightness of the button light is pre-stored in the terminal, and after the production and assembly of the terminal hardware of the same model is completed, the same version of the software is uniformly installed, and after the terminal is started, the touch screen of the terminal is acquired.
- the attribute value is automatically matched according to the pre-configured correspondence, and the brightness corresponding to the button light of the terminal is obtained, and the brightness of the button light is controlled accordingly. It overcomes the shortcomings of the current button light brightness control scheme, which not only brings a more perfect product experience to the end user, but also reduces the difficulty and cost of the terminal manufacturer software version management and maintenance.
- each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function.
- the invention is not limited to any specific form of combination of hardware and software.
- the above technical solution avoids adopting different terminal software versions to adapt to the different touch screen attributes, and realizes adaptive control of the touch screen brightness according to the attributes of the touch screen, which not only brings a more perfect product experience to the end user, but also reduces the terminal manufacturer software. Version management and maintenance difficulty and cost.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
一种终端按键灯亮度控制方法和装置。其中,该方法包括:获取终端触摸屏的属性值;根据所述终端触摸屏的属性值,控制所述终端的按键灯亮度。
Description
本文涉及但不限于终端领域,尤其涉及一种在包括触摸屏的终端上进行按键灯亮度控制的方法和装置。
触摸屏类终端设备已在人们的日常生活中广泛使用,配合终端产品外观设计的需要,或触摸屏器件供货的变化,针对同一款终端生产出来的裸设备,存在触摸屏颜色,触摸屏供货商或触摸屏透光度方面的差别。例如,某厂家的同一款手机配合外观设计需要,分别采用了黑色和白色两种触摸屏,其中,黑色和白色触摸屏按键丝印的透光率不同,黑色的按键透光率只有10%,白色的按键透光率18%,黑色和白色触摸屏共用相同的主板和软件,因此,当按键灯的亮度相同的时候,白色的按键灯就会显得更亮,甚至刺眼。
针对这种情况,相关技术中常用的做法主要有以下两种:
一种是黑色和白色触摸屏采用相同的硬件和软件,接受按键灯亮度不同的事实;调整按键丝印透光率,尽量使两者接近;
另一种是给黑色和白色触摸屏的手机分别使用不同的软件,各自的软件中给按键灯配置不同的电流,实现不同的亮度。
但是,这两种方案都存在一定的问题:
第一种方案黑色和白色触摸屏手机如果按键灯亮度一样,但是由于触摸屏上按键丝印的透过率不同,可能导致白色触摸屏按键灯亮度高,使用时刺眼,如果调整按键丝印的透过率,会导致按键丝印的颜色选择受限;
第二种方案下,需要开发黑色和白色相对于的两种软件版本,如果发货国家比较多,每个国家由于语言不同,都需要开发两个版本,开发工作量大,软件版本维护工作量大,相应的版本多所引起的错误风险就大。
为克服上述相关技术存在的问题,本领域急需一种新的按键灯亮度控制
方法,为用户提供更加完美的使用体验。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本发明实施例提供一种按键灯亮度控制的方法和装置,以解决如何避免为适应触摸屏属性的不同分别采用不同的终端软件版本的技术问题。
本发明实施例提供一种终端按键灯亮度控制方法,包括:
获取终端触摸屏的属性值;
根据所述终端触摸屏的属性值,控制所述终端的按键灯亮度。
其中,获取终端触摸屏的属性值,包括:
从终端的寄存器中读取;
或者,根据触摸屏的管脚连接方式确定。
可选的,从触摸屏的寄存器中读取的所述终端触摸屏的属性值,包括以下项中的至少一个:
触摸屏透光率、触摸屏颜色和触摸屏型号。
可选的,根据终端触摸屏的属性值,控制终端的按键灯亮度,包括:
根据终端触摸屏的属性值,在预设的属性值范围与按键灯亮度的对应关系中查找,确定所述属性值对应的按键灯亮度后,控制终端按键灯亮度。
当所述属性值由触摸屏的管脚连接方式确定时,预设的属性值范围与按键灯亮度的对应关系,包括:管脚连接方式与按键灯亮度的对应关系。
可选的,控制终端的按键灯亮度,包括:
根据从预设的对应关系中查找到的属性值对应的按键灯亮度,控制提供给按键灯的电流;其中,对应的按键灯亮度越大,提供给按键灯的电流越大;
或者,根据从预设的对应关系中查找到的属性值对应的按键灯亮度,控
制提供给按键灯的电流的占空比;其中,对应的按键灯亮度越大,提供给按键灯的电流的占空比越大。
本发明实施例还提供一种自动控制按键灯亮度的装置,应用于包括触摸屏的终端,包括:参数获取模块和亮度控制模块;
参数获取模块,设置为获取触摸屏的属性值;
亮度控制模块,设置为根据参数获取模块所获取的触摸屏的属性值,控制按键灯亮度。
其中,参数获取模块是设置为通过如下方式实现获取触摸屏的属性值:
从终端的寄存器中读取;
或者,根据触摸屏的管脚连接方式确定。
可选的,当所述参数获取模块是设置为从所述终端的寄存器中读取的所述终端触摸屏的属性值时,所述属性值包括以下项中的至少一个:
触摸屏透光率、触摸屏颜色和触摸屏型号。
可选的,亮度控制模块是设置为通过如下方式实现根据终端触摸屏的属性值,控制按键灯亮度:
根据参数获取模块所获取的触摸屏的属性值,在预设的属性值范围与按键灯亮度的对应关系中查找,确定所述属性值对应的按键灯亮度后,控制所述终端的按键灯亮度;
所述装置还包括参数设置模块,设置为设定触摸屏属性值范围与按键灯亮度的对应关系。
当所述触摸屏终端的属性值由所述触摸屏的管脚连接方式确定时,所述预设的属性值范围与按键灯亮度的对应关系,包括:管脚连接方式与按键灯亮度的对应关系。
可选的,亮度控制模块包括:电流控制子模块,设置为根据所述属性值对应的按键灯亮度控制提供给按键灯的电流;其中,所述对应的按键灯亮度越大,提供给按键灯的电流越大。
或者,所述亮度控制模块包括:
电流占空比控制子模块,设置为根据所述属性值对应的按键灯亮度控制提供给按键灯的电流的占空比;其中,所述对应的按键灯亮度越大,提供给按键灯的电流的占空比越大。
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行上述的方法
上述技术方案避免为适应触摸屏属性的不同分别采用不同的终端软件版本,实现了根据触摸屏的属性自适应控制触摸屏亮度,既给最终用户带来了更完美的产品体验,又降低了终端生产厂商软件版本管理和维护难度和成本。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1为本发明实施例一提供的按键灯亮度控制方法流程图;
图2为本发明实施例二提供的按键灯亮度控制装置的结构图。
下面将结合附图及具体实施例对本发明作进一步的详细描述。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。
实施例一:
图1为本发明实施例提供的按键灯亮度控制方法流程图,该方法应用于自动控制按键灯亮度的装置,该方法包括:
步骤101,获取终端触摸屏的属性值;
步骤102,根据终端触摸屏的属性值,控制终端的按键灯亮度。
其中,步骤101,获取触摸屏的属性值,该属性值指示装配该触摸屏的终端的按键灯亮度要根据该属性值确定;
获取触摸屏的属性值的方法,可以从终端的寄存器中读取,该寄存器可以是触摸屏的寄存器,也可以是终端中其他位置的寄存器;
获取触摸屏的属性值的方法,还可以根据触摸屏的管脚连接方式确定,即该属性值是管脚连接方式,代表需要区别控制按键灯亮度的触摸屏类型。具体实施方式说明如下:
不同的触摸屏采用不同的传感器ID(Sensor ID)管脚与终端内部电路相连。例如,采用触摸屏IC芯片其中两个引脚用于识别触摸屏状态,每个引脚可以接高电压Vdd、通用输入/输出(General Purpose Input Output)GPIO接口、或者接地GND,通过两个引脚分别接不同的接口,这样即可识别多种不同的触摸屏状态,根据终端硬件所选定的不同颜色或不同透光率的触摸屏,对应选定该两个引脚的连接方式。如,黑色触摸屏通过两个引脚分别连接高Vdd和接地GND,白色触摸屏通过两个引脚分别连接高Vdd和GPIO接口,终端生产完成后,该终端的触摸屏具体通过上述哪种方式连接就已确定,能够被正确地获知。
本发明方案的实施不限于本实施例中所例举的具体几个管脚、连接何种信号接口,在触摸屏IC芯片许可的范围内,保证触摸屏功能的前提下选择具体的方式连接都可以达到本发明所述的技术效果。
可选的,从终端寄存器中所读取的触摸屏属性值,包括以下项中的至少一个:
触摸屏透光率、触摸屏颜色和触摸屏型号;
例如:触摸屏透光率为80%,90%或95%。
触摸屏颜色为黑色、白色、粉色、蓝色等;或者采用常用的红绿蓝RGB颜色标识值;或者,其他颜色标识值;本发明方案对颜色的表示方式不限于本实施例所例举的方式。
触摸屏型号,可以为触摸屏硬件的型号或触摸屏供货商代号;还可以替换和变形为其他编号,本发明方案对触摸屏型号的含义不限于本实施例所例举的方面。
可选的,步骤102中根据所述终端触摸屏的属性值,控制所述终端的按
键灯亮度,包括:
根据所述终端触摸屏的属性值,在预设的属性值范围与按键灯亮度的对应关系中查找,确定所述属性值对应的按键灯亮度后,控制终端按键灯亮度。具体举例说明如下:
当所述属性值由所述触摸屏的管脚连接方式确定时,所述预设的属性值范围与按键灯亮度的对应关系,包括:管脚连接方式与按键灯亮度的对应关系,如表1所示:
表1:管脚连接方式与按键灯亮度的对应关系表
管脚连接方式 | 亮度 |
方式一 | 5 |
方式二 | 8 |
终端完成装配后,其触摸屏在终端内的管脚连接方式就已确定,假设白色触摸屏采用方式一连接,则查找表1,确定其对应的亮度为5;黑色触摸屏采用方式二连接,则查找表1,确定其对应的亮度为8。
针对管脚连接方式,进一步举例说明如下:
方式一:管脚1连接高Vdd,管脚2连接GPIO接口;
方式二:管脚1连接高Vdd,管脚2连接接地GND;
或者,
方式一:管脚1连接GPIO接口,管脚2连接高Vdd;
方式二:管脚1连接高Vdd,管脚2连接接地GND。
如果有超过两种需要对应区别控制按键灯亮度的触摸屏,还可以根据本实施所示的方式,扩展出方式三、四等。本领域内技术人员在本实施例所例举的管脚连接方式示例范围内,可轻易想到变化或替换或扩展而得到更多连接方式的定义。
当从终端寄存器中读取的属性值为触摸屏透光率时,预设的属性值范围与按键灯亮度的对应关系可以如表2所示:
表2:透光率和按键灯亮度对应关系
透光率范围 | 亮度 |
<=80 | 8 |
>80且<=90 | 7 |
>90 | 6 |
终端完成装配后,其寄存器中保存的透光率就已确定,假设终端中寄存器保存的透光率为70,则查找表2,确定其对应的亮度为8;假设终端中寄存器保存的透光率为88,则查找表2,确定其对应的亮度为7;假设终端中寄存器保存的透光率为95,则查找表2,确定其对应的亮度为6。
其中,透光率的表示方法,不限于本实施例所例举的方式,本领域内技术人员可以采用其他表示方法表征透光率。
当从终端寄存器中读取的属性值为触摸屏颜色时,预设的属性值范围与按键灯亮度的对应关系可以如表3所示:
表3:触摸屏颜色和按键灯亮度对应关系
触摸屏颜色 | 亮度 |
黑色 | 8 |
粉色 | 7 |
白色 | 5 |
终端完成装配后,其寄存器中保存的触摸屏颜色参数就已确定,假设终端中寄存器保存的触摸屏颜色为黑色,则查找表3,确定其对应的亮度为8;假设终端中寄存器保存的触摸屏颜色为粉色,则查找表3,确定其对应的亮度为7;假设终端中寄存器保存的触摸屏颜色为白色,则查找表3,确定其对应的亮度为5。
上述表3,也可以替换为红绿蓝RGB颜色标识值范围与按键灯亮度对应关系。
当从终端寄存器中读取的属性值包括触摸屏型号时,预设的属性值范围与按键灯亮度的对应关系可以如表4所示:
表4:触摸屏型号和按键灯亮度对应关系
触摸屏型号 | 亮度 |
IS2002 | 8 |
IS2008 | 8 |
IS2009 | 5 |
WE0009 | 7 |
WE0007 | 7 |
终端完成装配后,其寄存器中保存的触摸屏型号参数就已确定,假设终端中寄存器保存的触摸屏型号为IS2002,则查找表4,确定其对应的亮度为8;假设终端中寄存器保存的触摸屏型号为IS2008,则查找表4,确定其对应的亮度为8;假设终端中寄存器保存的触摸屏型号为WE0009,则查找表4,确定其对应的亮度为7;假设终端中寄存器保存的触摸屏型号为WW0031,则查找表4,未找到对应亮度,则确定其对应的亮度为默认值7。
当从终端寄存器中读取的属性值为触摸屏颜色和触摸屏型号时,预设的属性值范围与按键灯亮度的对应关系可以如表5所示:
表5:触摸屏颜色、型号和按键灯亮度对应关系
触摸屏颜色 | 触摸屏型号 | 亮度 |
黑色 | AAA1 | 8 |
黑色 | AAA2 | 8 |
黑色 | AAA3 | 9 |
白色 | AAA1 | 6 |
白色 | AAA1 | 6 |
该表中,触摸屏型号表示触摸屏供货商代号,表5内容表示同为黑色的
的触摸屏,由于供货商的区别,其要求的按键灯亮度不同。终端完成装配后,其寄存器中保存的触摸屏颜色和型号参数就已确定,假设终端中寄存器保存的触摸屏颜色为黑色、型号为AAA1,则查找表5,确定其对应的亮度为8;假设终端中寄存器保存的触摸屏颜色为黑色、型号为AAA2,则查找表5,确定其对应的亮度为8;假设终端中寄存器保存的触摸屏颜色为黑色、型号为AAA3,则查找表5,确定其对应的亮度为9;假设终端中寄存器保存的触摸屏颜色为白色、型号为AAA1,则查找表5,确定其对应的亮度为6。
本发明方案的实施中,触摸屏的型号的定义不限于本实施例所例举的内容,本领域内技术人员根据本实施例所例举的型号示例,可轻易想到变化或替换而得到其他的触摸屏型号含义定义,该型号的不同,部分情况下会对按键灯亮度有不同要求。
同时,本实施例中上述例举的属性值与按键灯亮度对应关系表中,均采用数值表示亮度,数值越大,表示需要设定的按键灯的亮度越大。或者,还可以设定数值越小,表示需要设定的按键灯亮度越大;本发明方案的其他实施中,也可以采用其他方式来表示亮度的大小,本领域内技术人员根据本实施例所例举的亮度大小示例,可轻易想到变化或替换而得到更多亮度表示方法。
可选的,确定了所对应的按键灯亮度后,控制终端的按键灯亮度,可以根据对应的按键灯亮度,控制提供给按键灯的电流,达到控制亮度的目的,对应的按键灯亮度越大,提供给按键灯的电流越大。
或者,还可以根据对应的按键灯亮度,控制提供给按键灯的电流占空比,达到控制亮度的目的,对应的按键灯亮度越大,提供给按键灯的电流的占空比越大。当提供给按键灯的电压和电流相同,但是通过不同的占空比,转化为不同的电流,例如一半时间提供电压,一半时间不提供,相当于提供了一半的电流,相应地,按键灯亮度减小。
计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行上述的方法。
实施例二:
本发明实施例还提供一种自动控制按键灯亮度的装置,应用于包括触摸屏的终端,如图2,包括:参数获取模块和亮度控制模块;
参数获取模块,设置为获取所述触摸屏的属性值;
亮度控制模块,设置为根据所述参数获取模块所获取的触摸屏的属性值,控制所述按键灯亮度。
其中,所获取的触摸屏的属性值指示装配该触摸屏的终端的按键灯亮度要根据该属性值确定;
可选的,参数获取模块是设置为通过如下方式获取所述触摸屏的属性值:
从所述终端的寄存器中读取;
或者,根据所述触摸屏的管脚连接方式确定。
终端的寄存器中读取的终端触摸屏的属性值,包括以下项中的至少一个:
触摸屏透光率、触摸屏颜色和触摸屏型号。
可选的,该装置中还包括:
预设参数设置模块,设置为预先设定触摸屏属性值范围与按键灯亮度的对应关系;所预设的触摸屏属性值范围与按键灯亮度的对应关系,参照实施一中所举例内容。
可选的,亮度控制模块是设置为通过如下方式实现根据所述终端触摸屏的属性值,控制终端按键灯亮度:
根据所述参数获取模块所获取的触摸屏的属性值,在预设的属性值范围与按键灯亮度的对应关系中查找,确定所述属性值对应的按键灯亮度后,控制所述终端的按键灯亮度。
当所述触摸屏终端的属性值由所述触摸屏的管脚连接方式确定时,该属性值是管脚连接方式,代表需要区别控制按键灯亮度的触摸屏类型。所述预设的属性值范围与按键灯亮度的对应关系,包括:管脚连接方式与按键灯亮度的对应关系。
其中,具体管脚连接方式参照实施例一中所例举内容。
可选的,亮度控制模块包括电流控制子模块,设置为根据具体属性值所对应的按键灯亮度,控制提供给按键灯的电流,以达到控制按键灯亮度的目的,对应的按键灯亮度越大,提供给按键灯的电流越大;
或者,亮度控制模块包括电流占空比控制子模块,设置为根据具体属性值所对应的按键灯亮度,控制提供给按键灯的电流占空比,以达到控制按键灯亮度的目的,对应的按键灯亮度越大,提供给按键灯的电流的占空比越大。
本发明提供的方法实施例,终端中预先保存触摸屏属性值与按键灯亮度的对应关系,同一型号的终端硬件生产、装配完成后,统一安装相同版本的软件,终端启动后,通过获取终端的触摸屏属性值,根据预先配置的对应关系,自动匹配得到该终端按键灯对应的亮度,并依此控制按键灯亮度。克服了当前按键灯亮度控制方案的不足,既给最终用户带来了更完美的产品体验,又降低了终端生产厂商软件版本管理和维护难度和成本。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本发明不限制于任何特定形式的硬件和软件的结合。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求所述的保护范围为准。
上述技术方案避免为适应触摸屏属性的不同分别采用不同的终端软件版本,实现了根据触摸屏的属性自适应控制触摸屏亮度,既给最终用户带来了更完美的产品体验,又降低了终端生产厂商软件版本管理和维护难度和成本。
Claims (14)
- 一种终端按键灯亮度控制方法,包括:获取终端触摸屏的属性值;根据所述终端触摸屏的属性值,控制所述终端的按键灯亮度。
- 根据权利要求1所述的方法,其中,所述获取终端触摸屏的属性值,包括:从所述终端的寄存器中读取;或者,根据所述触摸屏的管脚连接方式确定。
- 根据权利要求2所述的方法,其中,当从所述触摸屏的寄存器中读取所述终端触摸屏的属性值时,所述属性值包括以下项中的至少一个:触摸屏透光率、触摸屏颜色和触摸屏型号。
- 根据权利要求1、2或3所述的方法,其中,所述根据所述终端触摸屏的属性值,控制所述终端的按键灯亮度,包括:根据所述终端触摸屏的属性值,在预设的属性值范围与按键灯亮度的对应关系中查找确定所述属性值对应的按键灯亮度,根据所述确定的按键灯亮度控制所述终端的按键灯亮度。
- 根据权利要求4所述的方法,其中,当所述属性值由所述触摸屏的管脚连接方式确定时,所述预设的属性值范围与按键灯亮度的对应关系,包括:管脚连接方式与按键灯亮度的对应关系。
- 根据权利要求4所述的方法,其中,所述控制所述终端的按键灯亮度,包括:根据所述对应的按键灯亮度,控制提供给按键灯的电流;其中,所述对应的按键灯亮度越大,提供给按键灯的电流越大;或者,根据所述对应的按键灯亮度,控制提供给按键灯的电流的占空比; 其中,所述对应的按键灯亮度越大,提供给按键灯的电流的占空比越大。
- 一种应用于包括触摸屏终端的自动控制按键灯亮度的装置,包括:参数获取模块和亮度控制模块;所述参数获取模块,设置为获取所述触摸屏的属性值;所述亮度控制模块,设置为根据所述参数获取模块所获取的触摸屏的属性值,控制所述按键灯亮度。
- 根据权利要求7所述的装置,其中,所述参数获取模块是设置为通过如下方式实现获取所述触摸屏的属性值:从所述终端的寄存器中读取;或者,根据所述触摸屏的管脚连接方式确定。
- 根据权利要求8所述的装置,其中,当所述参数获取模块是设置为从所述终端的寄存器中读取的所述终端触摸屏的属性值时,所述属性值包括以下项中的至少一个:触摸屏透光率、触摸屏颜色和触摸屏型号。
- 根据权利要求7、8或9所述的装置,其中,所述亮度控制模块是设置为通过如下方式实现根据所述终端触摸屏的属性值,控制所述按键灯亮度:根据所述参数获取模块所获取的触摸屏的属性值,在预设的属性值范围与按键灯亮度的对应关系中查找,确定所述属性值对应的按键灯亮度后,控制所述终端的按键灯亮度;所述装置还包括参数设置模块,设置为设定触摸屏属性值范围与按键灯亮度的对应关系。
- 根据权利要求10所述的装置,其中,当所述触摸屏终端的属性值由所述触摸屏的管脚连接方式确定时,所述 预设的属性值范围与按键灯亮度的对应关系,包括:管脚连接方式与按键灯亮度的对应关系。
- 根据权利要求10所述的装置,其中,所述亮度控制模块包括:电流控制子模块,设置为根据所述属性值对应的按键灯亮度,控制提供给按键灯的电流;其中,所述对应的按键灯亮度越大,提供给按键灯的电流越大。
- 根据权利要求10所述的装置,其中,所述亮度控制模块包括:电流占空比控制子模块,设置为根据所述属性值对应的按键灯亮度,控制提供给按键灯的电流的占空比;其中,所述对应的按键灯亮度越大,提供给按键灯的电流的占空比越大。
- 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1~6中任一项所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510483677.XA CN106445214B (zh) | 2015-08-07 | 2015-08-07 | 一种终端按键灯亮度控制方法和装置 |
CN201510483677.X | 2015-08-07 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016131340A1 true WO2016131340A1 (zh) | 2016-08-25 |
Family
ID=56688701
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/098736 WO2016131340A1 (zh) | 2015-08-07 | 2015-12-24 | 一种终端按键灯亮度控制方法和装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106445214B (zh) |
WO (1) | WO2016131340A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107743084A (zh) * | 2017-11-17 | 2018-02-27 | 普天智能照明研究院有限公司 | 基于事件触发受控设备的面板、系统和控制方法 |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101980135A (zh) * | 2010-11-08 | 2011-02-23 | 广东欧珀移动通信有限公司 | 一种触摸键背景光控制方法 |
CN102984352A (zh) * | 2012-11-02 | 2013-03-20 | 北京小米科技有限责任公司 | 终端的屏幕亮度调整方法、装置及终端 |
CN103197889A (zh) * | 2013-04-03 | 2013-07-10 | 锤子科技(北京)有限公司 | 一种亮度调整方法、装置及一种电子设备 |
CN103309636A (zh) * | 2012-03-13 | 2013-09-18 | 鸿富锦精密工业(深圳)有限公司 | 显示屏亮度校正装置及方法 |
CN103399661A (zh) * | 2013-06-18 | 2013-11-20 | 深圳市创凯电子有限公司 | 触摸显示屏亮度调整的方法及装置 |
KR20140034615A (ko) * | 2012-09-12 | 2014-03-20 | 주식회사 팬택씨앤아이 | 터치 스크린 및 그 제어 방법 |
CN104076898A (zh) * | 2013-03-27 | 2014-10-01 | 腾讯科技(深圳)有限公司 | 一种控制移动终端屏幕亮度的方法和装置 |
CN104123176A (zh) * | 2014-07-18 | 2014-10-29 | 广州市久邦数码科技有限公司 | 一种移动终端游戏音量、屏幕亮度自动调整方法及其系统 |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201307903Y (zh) * | 2008-12-02 | 2009-09-09 | 天津三星电子显示器有限公司 | 变色机壳电视机 |
CN101478847A (zh) * | 2008-12-25 | 2009-07-08 | 旭丽电子(广州)有限公司 | 一种可改变背光颜色的发光系统和方法 |
CN102736735A (zh) * | 2011-03-30 | 2012-10-17 | 旭丽电子(广州)有限公司 | 可切换颜色的发光键盘 |
CN203036282U (zh) * | 2012-11-27 | 2013-07-03 | 李昊致 | 睡眠灯 |
CN104113617A (zh) * | 2013-04-16 | 2014-10-22 | 深圳富泰宏精密工业有限公司 | 背光亮度调节系统及方法 |
CN103428966B (zh) * | 2013-07-11 | 2016-08-10 | 华为终端有限公司 | 按键背光处理方法、装置及终端设备 |
CN203503505U (zh) * | 2013-08-05 | 2014-03-26 | 天津市泛凯科贸有限公司 | 一种开关 |
CN103685754B (zh) * | 2013-12-16 | 2018-04-10 | 上海斐讯数据通信技术有限公司 | 一种移动终端背光调节方法及移动终端 |
CN104754798B (zh) * | 2013-12-27 | 2017-11-07 | 上海博泰悦臻网络技术服务有限公司 | 按键背光的亮度控制方法和装置 |
CN203775263U (zh) * | 2014-01-22 | 2014-08-13 | 深圳市嘉明光电有限公司 | 一种带虚拟按键的手机触摸屏 |
CN103903419A (zh) * | 2014-03-06 | 2014-07-02 | 安徽天众电子科技有限公司 | 一种遥控调光调色电源的遥控器 |
-
2015
- 2015-08-07 CN CN201510483677.XA patent/CN106445214B/zh active Active
- 2015-12-24 WO PCT/CN2015/098736 patent/WO2016131340A1/zh active Application Filing
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101980135A (zh) * | 2010-11-08 | 2011-02-23 | 广东欧珀移动通信有限公司 | 一种触摸键背景光控制方法 |
CN103309636A (zh) * | 2012-03-13 | 2013-09-18 | 鸿富锦精密工业(深圳)有限公司 | 显示屏亮度校正装置及方法 |
KR20140034615A (ko) * | 2012-09-12 | 2014-03-20 | 주식회사 팬택씨앤아이 | 터치 스크린 및 그 제어 방법 |
CN102984352A (zh) * | 2012-11-02 | 2013-03-20 | 北京小米科技有限责任公司 | 终端的屏幕亮度调整方法、装置及终端 |
CN104076898A (zh) * | 2013-03-27 | 2014-10-01 | 腾讯科技(深圳)有限公司 | 一种控制移动终端屏幕亮度的方法和装置 |
CN103197889A (zh) * | 2013-04-03 | 2013-07-10 | 锤子科技(北京)有限公司 | 一种亮度调整方法、装置及一种电子设备 |
CN103399661A (zh) * | 2013-06-18 | 2013-11-20 | 深圳市创凯电子有限公司 | 触摸显示屏亮度调整的方法及装置 |
CN104123176A (zh) * | 2014-07-18 | 2014-10-29 | 广州市久邦数码科技有限公司 | 一种移动终端游戏音量、屏幕亮度自动调整方法及其系统 |
Also Published As
Publication number | Publication date |
---|---|
CN106445214B (zh) | 2021-06-29 |
CN106445214A (zh) | 2017-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106448612B (zh) | 电子装置、处理器、色彩补偿方法及存储介质 | |
EP3293954A1 (en) | Method and system for adjusting screen brightness | |
TW200809753A (en) | Methods and systems for LCD backlight color control | |
US20090096392A1 (en) | Pulse width modulation based led dimmer control | |
CN104361871A (zh) | 显示屏的调试方法、装置及系统 | |
US20180261167A1 (en) | Adaptive Method Of Clock controller And Device Thereof | |
CN207766616U (zh) | 产品类别识别系统及照明灯具 | |
CN104347050B (zh) | 一种调整参数的方法及电子设备 | |
WO2015003647A1 (zh) | 按键背光处理方法及装置 | |
WO2014071302A1 (en) | Computer-implemented system and method for color sensing, storage and comparison | |
US20150187250A1 (en) | Information processing method and electronic device | |
TW201436636A (zh) | 控制燈具之方法及其電腦程式產品 | |
JP2015526756A (ja) | 明るさの制御方法,装置およびプログラム製品 | |
CN111681615B (zh) | 一种背光控制电路及背光控制方法 | |
CN113064687A (zh) | 用户界面组件的色彩适配处理方法、装置及设备 | |
CN104240676A (zh) | 一种调整电子设备的方法及电子设备 | |
CN108391351A (zh) | 一种键盘灯的亮度调节方法、装置及电子设备 | |
CN102800277B (zh) | 一种用于调节显示设备颜色和亮度的方法和显示装置 | |
WO2016131340A1 (zh) | 一种终端按键灯亮度控制方法和装置 | |
CN112181500A (zh) | 一种参数调整方法、装置、终端和存储介质 | |
US10649713B1 (en) | Calibrating multiple displays of a computing device to have a similar perceived appearance | |
JP2014175891A (ja) | コンフィグレーション装置、コンフィグレーション方法、およびプロジェクター | |
CN112687243B (zh) | 拼接屏颜色调节方法、系统以及存储装置 | |
CN103731649A (zh) | 一种图像色温调节的装置、方法以及智能电视 | |
US20180204540A1 (en) | Automatically brightness adjusting electronic device and brightness adjusting method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15882479 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 15882479 Country of ref document: EP Kind code of ref document: A1 |