WO2019218569A1 - 键盘灯效控制方法、计算机装置和计算机可读存储介质 - Google Patents

键盘灯效控制方法、计算机装置和计算机可读存储介质 Download PDF

Info

Publication number
WO2019218569A1
WO2019218569A1 PCT/CN2018/107953 CN2018107953W WO2019218569A1 WO 2019218569 A1 WO2019218569 A1 WO 2019218569A1 CN 2018107953 W CN2018107953 W CN 2018107953W WO 2019218569 A1 WO2019218569 A1 WO 2019218569A1
Authority
WO
WIPO (PCT)
Prior art keywords
color value
data
rgb
keyboard
rgb lamp
Prior art date
Application number
PCT/CN2018/107953
Other languages
English (en)
French (fr)
Inventor
江耿平
林颀
Original Assignee
珠海市学思电子科技有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 珠海市学思电子科技有限公司 filed Critical 珠海市学思电子科技有限公司
Publication of WO2019218569A1 publication Critical patent/WO2019218569A1/zh

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/20Controlling the colour of the light
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/0202Constructional details or processes of manufacture of the input device
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/30Driver circuits
    • H05B45/37Converter circuits
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/30Semiconductor lamps, e.g. solid state lamps [SSL] light emitting diodes [LED] or organic LED [OLED]

Definitions

  • the present invention relates to the field of LED control technologies, and in particular, to a lamp effect control method for an RGB LED lamp on a mechanical keyboard, a computer device, and a computer readable storage medium.
  • the LED lamp has a single-chip microcomputer and corresponding control circuit inside the mechanical keyboard to realize display control for each RGB LED lamp. 5 See some keyboard light effect control method, first fix the initial color value of each key RGB light, the color value of each RGB light in each column or each row of keys is the same, control each row or column of RGB lights by single chip microcomputer At the same time, it lights up or goes out at the same time to realize the cycle lighting effect of the display by row.
  • a first object of the present invention is to provide a keyboard lighting effect control method for drip ripple effect.
  • a second object of the present invention is to provide a computer device that implements the above-described keyboard lighting effect control method.
  • a keyboard light effect control method includes an obtaining step of acquiring selected data of a center RGB lamp, and acquiring coordinate data of each RGB lamp on the keyboard according to the selected data; Step, generating linear distance data of the RGB lamp and the center RGB lamp according to coordinate data of each RGB lamp, and determining whether the corresponding linear distance data of each RGB lamp is greater than a preset color value cyclic distance data; if not, according to the straight line
  • the distance data and the preset color value data set determine the initial color value of the RGB lamp; Yes, obtaining the residual data of the linear distance data of the RGB lamp divided by the color value cyclic distance data, and updating the linear distance data of the RGB light with the residual data, according to the updated linear distance data and the preset color value data group.
  • a lighting step sending a control signal to each RGB lamp to cause each RGB lamp to emit light according to an initial color value, wherein the color value data group is set in the center RGB according to a preset color value change rule The radial position of the lamp, and each RGB lamp changes the color value in a color value change rule at a preset time frequency.
  • a further solution is that, in the lighting step, the initial color values of the plurality of RGB lamps including the straight line distance data are the same.
  • a further solution is: performing a preset step before the obtaining step, comprising: establishing a lighting effect model, the lighting effect model comprising a center point and a plurality of color value regions disposed at different radial positions of the center point, and a plurality of color value regions Include a central area closest to the center point and a plurality of annular areas outside the central area; preset initial color value data and linear distance range data corresponding to each color value area, according to initial color value data of each color value area And the linear distance range data generates a color value data set; the determining step further comprises determining the color value area and the initial color value data corresponding to each RGB light according to the straight line distance data of the RGB lamp and the straight line distance range data.
  • the color value cyclic distance data is generated according to the linear distance range data of each color value region and the quantity data of the color value region.
  • the obtaining step further comprises acquiring a minimum circumscribed circle of coordinate data of all RGB lights, and updating the selected data of the center RGB lamp according to the minimum circumscribed circle.
  • a further solution is that, in the obtaining step, the method further comprises: updating the color value cyclic distance according to the obtained minimum circumscribed circle.
  • the obtaining step further includes: acquiring a midpoint of the diagonal line of the keyboard, and generating a preset area centering on the diagonal midpoint, and selecting a center RGB light from the preset area.
  • the acquiring step further includes acquiring an interaction signal, determining a button switch corresponding to the interaction signal, and identifying the RGB lamp corresponding to the button switch as a center RGB lamp.
  • a computer apparatus includes a processor that implements the above-described keyboard lighting effect control method when the processor executes a computer program stored in a memory.
  • a third object of the present invention provides storage on a computer readable storage medium
  • the RGB lights on each of the keys have different linear distances with respect to the central RGB lamp and have different initial color values, thereby achieving a wraparound manner.
  • the color value layer realizes the water ripple effect after the color value change; and since the color value of the RGB light is a finite value, when the color value of the RGB light is completely displayed in the radial direction and the RGB light of the keyboard is not completely covered yet , the color value loop needs to be repeated, so the color value loop distance data is set, and the RGB light whose linear distance data exceeds the color value loop distance data is re-circulated, so that all the RGB lights on the keyboard form an overall water ripple effect. To meet the visual needs of users.
  • the area with the same color value has an annular shape, and the corrugation dynamic effect is better.
  • the linear distance range data and the quantity data of the color value area all affect the overall size of the lamp effect model, so the color value cyclic distance data is affected, and the linear distance range data and the color value area quantity data can be adjusted to achieve different Ripple effect.
  • one color value loop can be realized to cover all the RGB lights on the keyboard.
  • the center of the light effect closest to the central area of the keyboard is selected by the preset area to improve the overall feeling of the ripple effect.
  • the ripple light effect can also be triggered by the user tapping the keyboard.
  • FIG. 1 is a structural block diagram of a keyboard light effect control system in a first embodiment of a keyboard light effect control method according to the present invention.
  • FIG. 2 is a flow chart of a first embodiment of a keyboard light effect control method according to the present invention.
  • 3 is a first schematic diagram of a preset step in a first embodiment of a keyboard light effect control method according to the present invention.
  • FIG. 4 is a first schematic diagram of an acquisition step in a first embodiment of a keyboard light effect control method according to the present invention.
  • FIG. 5 is a second schematic diagram of an acquisition step in a first embodiment of a keyboard light effect control method according to the present invention.
  • FIG. 6 is a schematic diagram of a determining step in a first embodiment of a keyboard lighting effect control method according to the present invention.
  • FIG. 7 is a first schematic diagram of a lighting step in a first embodiment of a keyboard lighting effect control method according to the present invention.
  • FIG. 8 is a second schematic diagram of a lighting step in a first embodiment of a keyboard lighting effect control method according to the present invention.
  • FIG. 9 is a third schematic diagram of a lighting step in the first embodiment of the keyboard lighting effect control method according to the present invention.
  • FIG. 10 is a first schematic diagram of a preset step in a second embodiment of a keyboard light effect control method according to the present invention.
  • FIG. 11 is a second schematic diagram of a preset step in a second embodiment of a keyboard light effect control method according to the present invention.
  • FIG. 12 is a schematic diagram of an acquisition step in a second embodiment of a keyboard light effect control method according to the present invention.
  • FIG. 13 is a schematic diagram of a lighting step in a second embodiment of a keyboard lighting effect control method according to the present invention.
  • FIG. 1 is a flow block diagram of a keyboard lighting effect control system in an embodiment of a keyboard lighting effect control method according to the present invention.
  • the keyboard lighting effect control method is used to control the lighting effect of the keyboard RGB lamp to achieve the water ripple effect.
  • the keyboard light effect control method is implemented based on a keyboard light effect control system, and the keyboard light effect control system includes a single chip microcomputer 100 inside the keyboard, a driving chip 200, and a plurality of RGB lights 300 disposed on the surface of the keyboard, except for setting at each key switch on the keyboard. Outside the RGB lamp 300, a plurality of RGB lamps 300 are disposed around the periphery of the keyboard surface, and the driving chip 200 is connected between the single chip microcomputer 100 and the RGB lamp 300.
  • the driving chip 200 is an IS 31FL3731 chip, and the RGB lamps are LED lights.
  • Each RGB lamp 300 has three colors of R (red), G (green), and B (blue), and each color corresponds to an 8-bit register in the driving chip.
  • Each RGB lamp can write a total of 256 color values from 0 to 255.
  • the MCU 100 timer counts 33ms to generate an interrupt, the MCU 100 will update the color value of each color of each button, and write the drive chip 200 through the IIC. The corresponding color will be displayed.
  • FIG. 2 is a flow chart of a method for controlling the function of the keyboard light effect of the present invention
  • FIG. 3 is a first schematic diagram of a preset step in the first embodiment of the keyboard light effect control method according to the present invention.
  • the preset step S1 is first executed to establish a lighting effect model.
  • the lighting effect model When establishing the lighting effect model, first set a two-dimensional coordinate, and establish a circular model area 1 with the coordinate origin o as the center point, the circular model area 1 Including a plurality of color value regions, the number of color value regions in the embodiment is 256, and the 256 color value regions include a central region a1 closest to the center point and an annular region a2 and an annular region sequentially surrounding the central region a1. A3... Annular area a256, and initial color value data and straight line distance range data for each color value area are set. Wherein, the central area a1 is circular, and the plurality of annular regions are annular.
  • the initial color value data of each color value region is set according to a preset color value change rule, and the color value change rule is a difference n between the next color value and the previous color value in the color value data list, and 256/ The n color values are incremented or decremented in the data list.
  • n l.
  • the initial color values of the adjacent two color value regions are different by one, assuming that the initial color value of the central region a1 is 0, and the initial color value of the annular region a2 is 1.
  • the initial color value of the annular area a3 is 2...
  • the initial color value of the annular area a256 is 255, and the color value in the lighting effect model ranges from 0 to 255.
  • the plurality of color value regions are all set with respect to the coordinate origin o (ie, the center point), that is, the color value regions are set at different radial positions of the center point, and the color value regions are center or ring, so each color value
  • the area has a corresponding range of linear distance data from the center point.
  • the radius of the central area a1 is 1, and the corresponding linear distance range data is 0 to 1;
  • the radius of the outer circle of the annular area a2 is 2, and the radius of the inner circle is 1, the corresponding linear distance range is 1 to 2.
  • the radial width of the color value region can be obtained from the linear distance range data.
  • the linear distance of the annular region a2 is 1 to 2
  • the color value cyclic distance data is actually the limit radial distance that can be covered under the condition that the color values in the color value region group are not repeated.
  • the number of color value regions is 256
  • the radial width of each color value region is 1, and the color value cyclic distance data is 256.
  • the obtaining step S2 is performed to acquire coordinate data of all RGB lights on the keyboard. Select any RGB light as the two-dimensional coordinate origin to obtain the coordinate data of the remaining RGB lights on the keyboard.
  • the coordinate data includes the linear distance data of the RGB lamp relative to the center RGB lamp. To achieve the ripple effect of the RGB light on the keyboard, you need to select a center RGB light as the center of the light effect.
  • FIG. 4 is a first schematic diagram of an acquisition step.
  • the midpoint of the diagonal line of the keyboard is obtained, and the preset area 90 is generated with the midpoint of the diagonal as a center point, and any RGB light in the preset area 90 is generated.
  • the center RGB lamp the center RGB lamp is used as the coordinate origin to establish the two-dimensional coordinates, and then the coordinate data of the remaining RGB lamps on the keyboard is obtained.
  • the preset area 90 may be a circular area, or a square area may be selected, and the preset area 90 includes 3 to 12 RGB lights.
  • FIG. 5 is a second schematic diagram of the obtaining step.
  • the keyboard is located at the most
  • the four key positions of the outer peripheral position are an Esc key, a Ctrl key, a right arrow key, and a Pause key, respectively, and the minimum circumscribed circle is determined by the RGB lamp 901, the RGB lamp 902, the RGB lamp 903, and the RGB lamp 904 corresponding to the four key positions. 2.
  • the RGB lamp 905 corresponding to the letter I key closest to the center point of the smallest circumscribed circle 2 is used as the center RGB lamp.
  • FIG. 6 is a schematic diagram of a determining step in the first embodiment of the keyboard lighting effect control method according to the present invention. Then, the determining step S3 is performed, and the linear distance data of the RGB lamp and the central RGB lamp is generated according to the coordinate data of each RGB lamp, and it is determined whether the corresponding linear distance data of each RGB lamp is greater than the preset color value cyclic distance data; No, determining an initial color value of the RGB lamp according to the straight line distance data and the preset color value data group; if yes, obtaining the remainder data of the straight line distance data of the RGB lamp divided by the color value cyclic distance data, and updating the remainder data with the remainder data
  • the straight line distance data of the RGB lamp determines the initial color value of the RGB lamp based on the updated straight line distance data and the preset color value data set.
  • the linear distance data of the RGB lamp 906 corresponding to the scroll key is 256, and then it is determined whether the linear distance data of the RGB lamp 906 is greater than the color value cyclic distance data.
  • the color value cyclic distance data is 2 56.
  • the straight line distance data corresponding to the RGB lamp 906 is equal to the color value cyclic distance data, so that the RGB lamp 906 is determined to be located in the annular area a256 based on the straight line distance data 256, and its initial color value is 255.
  • the linear distance data corresponding to the RGB lamp 903 is 257, and the color value cyclic distance data is 256.
  • the remainder data of the R GB lamp divided by the color value cyclic distance data is 1, and the remainder data is used.
  • the linear distance data of the RGB lamp 903 is updated, the linear distance data of the RGB lamp 903 is 1, and the initial color value of the annular area a257 corresponding to the RGB lamp 903 is 0, which is the same as the initial color value of the central area a1.
  • the lighting step S4 is performed, and the single chip microcomputer 100 sends a control signal to each RGB lamp, and the RGB lamp emits light according to the preset color value according to the color value data group, and the color value data group is set according to the preset color value change rule.
  • the preset color value change rule is the next color value in the list and the previous one.
  • the color values differ by n, and 256/n color values change in increasing or decreasing direction in the same direction of the data list.
  • n is equal to 1
  • the lamp effect model is divided into 256 color value regions, the color values between adjacent color value regions are different by 1, and the initial color values of the 256 color value regions are in the linear distance range.
  • the direction of the increase of the data i.e., the radial direction
  • the initial color values of the 1, 2, 3, ... 256 color value regions are 0, 1, 2, ... 255.
  • FIG. 7 is a first schematic diagram of a lighting step in the first embodiment of the keyboard lighting effect control method of the present invention.
  • the RGB lamp 907, RGB lamp 908, and RGB lamp 909 located in the same ring area a4 have an initial color value of 3.
  • step S5 is subsequently performed, and the RGB lamp changes the color value according to a preset frequency and a preset rule.
  • the MCU 1 00 shown in Figure 1
  • the timer is interrupted every 33ms, and the MCU 100 sends a control signal to the drive chip 200 to change the color value of the RGB lamp.
  • the initial color value corresponding to the central area a1 is 0, and n is equal to 25 6.
  • the preset color value change rule the color value of the central area a1 is increased by 1 every 33 ms, and the color values of the central area a1 change with time are sequentially arranged as 0. 1, 2.
  • the color values of the time change of the annular area a2 are sequentially arranged as 1, 2, 3....255, 0. This step allows a color value region to inherit the color value of the previous color value region at the next moment at the next moment. After all the RGB lamps complete a change period, the keyboard displays a colorful ripple dynamic lighting effect.
  • FIG. 8 is a second schematic diagram of a lighting step in the first embodiment of the keyboard lighting effect control method according to the present invention.
  • FIG. 9 is a third schematic diagram of a lighting step in the first embodiment of the keyboard lighting effect control method of the present invention.
  • the RGB lamp 902 located at the lower left corner of the keyboard is selected as the center RGB lamp.
  • the RGB lamp 903 located at the lower right corner of the keyboard is selected as the center RGB lamp, and the RGB lamps located at different positions are selected as the center R GB lamp. Different ripples can be derived to spread or close the visual effect.
  • an interaction signal from the button switch is acquired, and the RGB lamp corresponding to the button switch is determined and the RGB lamp is recognized as a center RGB lamp, and then the selected data is acquired.
  • the keyboard is powered on but the user does not press the key position, the keyboard is in a normally dark state, and all the RGB lights are not lit at this time; when the user presses any of the keys, the key is used as the center to generate a small range. Or a wide range of colorful water droplets ripple dynamic lighting effect.
  • the single chip microcomputer After pressing the Ctrl key, the single chip microcomputer receives the key switch corresponding to the Ctrl key. Mutual signal, the system judges and recognizes the RGB light 902 corresponding to the Ctrl key as the center RGB light, and performs subsequent steps such as judging and lighting.
  • Fig. 10 and Fig. 11 are respectively a first schematic diagram and a second schematic diagram of a preset step of the embodiment.
  • the preset step S1 shown in FIG. 2
  • the y coordinate value of each point in the circular model area 1 is decreased by a certain ratio.
  • An elliptical area 3 is available.
  • the circular model region 1 becomes an elliptical model region 3, the central region a1 and the annular region a2, the annular region a3, and the annular region a256 sequentially surrounding the central region a1. Then, it becomes the central region b 1 and the elliptical annular region b2, the elliptical annular region b3, the elliptical annular region b256, which are sequentially surrounded by the central region b1, and the central region b1 is elliptical.
  • the transformation ratio of each coordinate point y coordinate can be arbitrarily set, or can be calculated according to the coordinate data of all the RGB lamps on the acquired keyboard.
  • FIG. 12 is a schematic diagram of the obtaining step of the embodiment
  • FIG. 13 is a schematic diagram of the lighting step in the second embodiment of the keyboard lighting effect control method of the present invention.
  • the feedback step can also be performed after acquiring the coordinate data of the respective RGB lamps.
  • the inscribed ellipse 4 of the rectangle formed by the coordinate data of all the RGB lamps and calculating the y coordinate transformation ratio data of each coordinate point of the circular model region 1 according to the aspect ratio of the inscribed ellipse 4, according to the y coordinate transformation ratio
  • the data updates the elliptical model area 3 to obtain an elliptical corrugated dynamic lighting effect model that is closest to the keyboard contour and best reflects the overall ripple.
  • the RGB lights 901, RGB lights 902, RGB lights 903 and RGB lights 904 located at the four corners of the rectangle are located in the same central area b256.
  • the computer device of the present invention may be a device including a processor and a memory, such as a single chip microcomputer including a central processing unit.
  • the step of implementing the keyboard light effect control method when the processor is used to execute the computer program stored in the memory comprises the steps of recommending a preset step, an obtaining step, a determining step, and a lighting step.
  • the so-called processor may be a central processing unit (CPU), but also other General-purpose processor, Digital Signal Processor (DSP), Application Specific Integrated Circuit (ASIC), off-the-shelf programmable gate array
  • CPU central processing unit
  • DSP Digital Signal Processor
  • ASIC Application Specific Integrated Circuit
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.); The area can store data (such as audio data, phone book, etc.) created according to the use of the mobile phone.
  • the memory may include a high-speed random access memory, and may also include non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), and a Secure Digital (SD) card. , Flash Card, at least one disk storage device, flash device, or other volatile solid-state storage device.
  • the computer readable storage medium of the present invention may be any form of storage medium that is read by a processor of a computer device, including but not limited to nonvolatile memory, volatile memory, ferroelectric memory, etc., computer
  • the computer program is stored on the readable storage medium.
  • the steps of the keyboard light effect control method may be implemented, including recommending a preset step, obtaining a step, and determining Steps and lighting steps.
  • the computer program includes computer program code, which may be in the form of a source code, an object code, an executable, or some intermediate form.
  • the computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a Read-Only Memory (ROM). , Random Access Memory (RAM), electrical carrier signals, telecommunications signals, and software distribution media.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • electrical carrier signals telecommunications signals
  • software distribution media may be appropriately increased or decreased according to the requirements of legislation and patent practice in a jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, computer readable media Does not include electrical carrier signals and telecommunication signals.
  • the keyboard light effect control method of the present invention can be applied to a keyboard having a single chip microcomputer, a driving chip and a plurality of RGB lamps, thereby controlling the lighting effects of a plurality of RGB lights on the keyboard.
  • the RGB lights on each of the keys have different linear distances with respect to the center R GB lamp and have different initial color values, thereby achieving a wraparound color value.
  • Layer after the color value change, the water ripple effect is realized; and since the number of color values of the RGB lamp is a finite value, when the color value of the RGB lamp is completely displayed in the radial direction and the RGB light of the keyboard is not completely covered, It is necessary to repeat the color value cycle, so the color value cycle distance data is set, and the RGB lamp whose linear distance data exceeds the color value cycle distance data re-circulates the color value, so that all the RGB lights on the keyboard form an overall water ripple effect, thereby Meet the visual needs of users.

Abstract

本发明涉及LED控制技术领域,且提供键盘灯效控制方法、计算机装置和计算机可读存储介质,键盘灯效控制方法包括获取步骤、判断步骤和亮灯步骤,获取中心RGB灯的选定数据,根据选定数据获取键盘上每个RGB灯的坐标数据;根据每个RGB灯的坐标数据和预设的色值数据组判断每个RGB灯的初始色值;每个RGB灯按初始色值点亮,色值数据组根据预设的色值变化规则设置在中心RGB灯的径向位置上,且每个RGB灯按预设时间频率以色值变化规则改变色值。计算机装置执行计算机程序可实现键盘灯效控制方法,计算机可读存储介质的程序被读取时可实现键盘灯效控制方法。

Description

键盘灯效控制方法、 计算机装置和计算机可读存储介质 技术领域
[0001] 本发明涉及 LED控制技术领域, 具体涉及一种机械键盘上 RGB LED灯的灯效控 制方法、 计算机装置和计算机可读存储介质。
背景技术
[0002] 机械键盘在 IT领域、 电竞领域以及字媒体领域使用广泛, 在满足键盘敲击手感 要求后, 使用者对键盘上的灯效也有所追求。
[0003] 5见有的机械键盘在每个键位的底部均设置有一个具有 256级变化色值的 RGB
LED灯, 机械键盘内部具有单片机以及对应的控制电路, 以实现对每个 RGB LED灯进行显示控制。 5见有的键盘灯效控制方法为, 先固定每个键位 RGB灯的 初始色值, 每一列或每一排键位上 RGB灯的色值相同, 通过单片机控制每排或 每列 RGB灯同时亮灯或同时熄灭, 以实现逐排显示的循环点灯效果。
[0004] 虽然现有的该种灯效控制方法计算和控制简单, 但实现的灯效单一乏味, 无法 满足使用者的视觉要求。
发明概述
技术问题
[0005] 本发明的第一目的在于提供一种滴水波纹灯效的键盘灯效控制方法。
[0006] 本发明的第二目的在于提供实现上述键盘灯效控制方法的计算机装置。
[0007] 本发明的第三目的在于提供实现上述键盘灯效控制方法的计算机可读存储介质
[0008] 技术解决手段
[0009] 为实现本发明的第一目的, 本发明提供的键盘灯效控制方法包括获取步骤, 获 取中心 RGB灯的选定数据, 根据选定数据获取键盘上每个 RGB灯的坐标数据; 判断步骤, 根据每一 RGB灯的坐标数据生成该 RGB灯与中心 RGB灯的直线距离 数据, 判断每个 RGB灯的对应的直线距离数据是否大于预设的色值循环距离数 据; 若否, 根据直线距离数据和预设的色值数据组判断 RGB灯的初始色值; 若 是, 获取该 RGB灯的直线距离数据除以色值循环距离数据后的余数数据, 以该 余数数据更新该 RGB灯的直线距离数据, 根据更新后的直线距离数据和预设的 色值数据组判断 RGB灯的初始色值; 亮灯步骤, 向每一 RGB灯发出控制信号, 使每个 RGB灯按初始色值发光, 其中, 色值数据组根据预设的色值变化规则设 置在中心 RGB灯的径向位置上, 且每个 RGB灯按预设时间频率以色值变化规则 改变色值。
[0010] 进一步的方案是, 亮灯步骤中, 还包括直线距离数据相等的多个 RGB灯的初始 色值相同。
[0011] 进一步的方案是, 获取步骤前还执行预设步骤, 包括建立灯效模型, 灯效模型 包括中心点以及设置在中心点不同径向位置的多个色值区域, 多个色值区域包 括最接近中心点的一个中心区域和位于中心区域外的多个环形区域; 预设每个 色值区域对应的初始色值数据和直线距离范围数据, 根据每个色值区域的初始 色值数据和直线距离范围数据生成色值数据组; 判断步骤中还包括根据 RGB灯 的直线距离数据和直线距离范围数据判断每个 RGB灯对应的色值区域和初始色 值数据。
[0012] 进一步的方案是, 预设步骤中, 根据每个色值区域的直线距离范围数据和色值 区域的数量数据生成色值循环距离数据。
[0013] 进一步的方案是, 获取步骤中还包括获取所有 RGB灯的坐标数据的最小外接圆 , 根据最小外接圆更新中心 RGB灯的选定数据。
[0014] 进一步的方案是, 获取步骤中, 还包括根据获取的最小外接圆更新色值循环距 离。
[0015] 进一步的方案是, 获取步骤中, 还包括获取键盘的对角线中点, 并以对角线中 点为中心点生成预设区域, 从预设区域选取中心 RGB灯。
[0016] 进一步的方案是, 获取步骤中还包括获取交互信号, 判断交互信号对应的按键 开关, 并识别该按键开关对应的 RGB灯为中心 RGB灯。
[0017] 为实现本发明的第二目的, 本发明提供的计算机装置包括处理器, 处理器用于 执行存储器中存储的计算机程序时实现上述的键盘灯效控制方法。
[0018] 为实现本发明的第三目的, 本发明第三目的提供的计算机可读存储介质上存储 有计算机程序, 计算机程序被处理器执行时实现上述的键盘灯效控制方法。 问题的解决方案
发明的有益效果
有益效果
[0019] 本发明的键盘灯效控制方法中, 选取了中心 RGB灯后, 每个键位上 RGB灯相对 于中心 RGB灯具有不同的直线距离而具有不同的初始色值, 从而实现环绕式的 色值层, 在进行色值变化后则实现了水滴波纹效果; 而由于 RGB灯的色值数量 为有限值, 当 RGB灯的色值沿径向完全显示后而尚未完全覆盖键盘的 RGB灯时 , 则需要重复进行色值循环, 故设置色值循环距离数据, 直线距离数据超过色 值循环距离数据的 RGB灯则重新进行色值循环, 从而使键盘上所有的 RGB灯形 成整体的水滴波纹效果, 从而满足使用者的视觉需求。
[0020] 在 RGB灯点亮后, 色值相同的区域呈圆环状, 波纹动态效果更好。
[0021] 建立灯效模型并细分多个色值区域可细化灯效的波纹扩散或波纹收拢效果, 动 态效果更好。
[0022] 直线距离范围数据和色值区域的数量数据均影响着灯效模型的整体尺寸大小, 故影响色值循环距离数据, 对直线距离范围数据和色值区域的数量数据进行调 整可实现不同的波纹效果。
[0023] 获取最接近键盘中点的 RGB灯, 使波纹灯效的整体感更强。
[0024] 根据获取的最小外界圆更新色值循环距离, 可实现一次色值循环恰好覆盖键盘 上所有的 RGB灯。
[0025] 通过预设区域选取最接近于键盘中心区域的光效中心点, 提高波纹光效的整体 感。
[0026] 波纹灯光效果还可以通过使用者敲击键盘时触发。
对附图的简要说明
附图说明
[0027] 图 1为本发明键盘灯效控制方法第一实施例中键盘灯效控制系统的结构框图。
[0028] 图 2为本发明键盘灯效控制方法第一实施例的流程框图。 [0029] 图 3为本发明键盘灯效控制方法第一实施例中预设步骤的第一原理图。
[0030] 图 4为本发明键盘灯效控制方法第一实施例中获取步骤的第一原理图。
[0031] 图 5为本发明键盘灯效控制方法第一实施例中获取步骤的第二原理图。
[0032] 图 6为本发明键盘灯效控制方法第一实施例中判断步骤的原理图。
[0033] 图 7为本发明键盘灯效控制方法第一实施例中亮灯步骤的第一原理图。
[0034] 图 8为本发明键盘灯效控制方法第一实施例中亮灯步骤的第二原理图。
[0035] 图 9为本发明键盘灯效控制方法第一实施例中亮灯步骤的第三原理图。
[0036] 图 10为本发明键盘灯效控制方法第二实施例中预设步骤的第一原理图。
[0037] 图 11为本发明键盘灯效控制方法第二实施例中预设步骤的第二原理图。
[0038] 图 12为本发明键盘灯效控制方法第二实施例中获取步骤的原理图。
[0039] 图 13为本发明键盘灯效控制方法第二实施例中亮灯步骤的原理图。
[0040] 以下结合附图及实施例对本发明作进一步说明。
[0041] 本发明的具体实施方式
[0042] 键盘灯效控制方法第一实施例
[0043] 参见图 1, 图 1为本发明键盘灯效控制方法实施例中键盘灯效控制系统的流程框 图。 键盘灯效控制方法用于对键盘 RGB灯的灯效进行控制, 以达到水滴波纹灯 光效果。 键盘灯效控制方法基于键盘灯效控制系统实现, 键盘灯效控制系统包 括键盘内部的单片机 100、 驱动芯片 200以及设置在键盘表面的多个 RGB灯 300, 除在键盘上每个按键开关处设置 RGB灯 300外, 键盘表面的周边处设置一圈多个 RGB灯 300, 驱动芯片 200连接在单片机 100与 RGB灯 300之间。 驱动芯片 200为 IS 31FL3731芯片, RGB灯为 LED灯, 每个 RGB灯 300具有 R(红)、 G(绿)、 B(蓝)三种 颜色, 每种颜色对应驱动芯片中的一个 8位寄存器, 每个 RGB灯可写入 0至 255共 256级色值, 当单片机 100定时器计时 33ms产生中断, 单片机 100将更新后每一个 按键每一个颜色的色值, 通过 IIC依次写入驱动芯片 200即可显示对应颜色。
[0044] 结合图 2和图 3, 图 2为本发明键盘灯效控制方法实施例的流程框图, 图 3为本发 明键盘灯效控制方法第一实施例中预设步骤的第一原理图。 键盘灯效控制方法 进行时, 首先执行预设步骤 S1, 建立灯效模型。 在建立灯效模型时, 首先预设 置一个二维坐标, 并以坐标原点 o为中心点建立圆形模型区域 1, 圆形模型区域 1 包括多个色值区域, 本实施例中色值区域的数量为 256个, 256个色值区域包括 最接近中心点的中心区域 al和依序围绕在中心区域 al外的环形区域 a2、 环形区域 a3...环形区域 a256 , 且设置每个色值区域的初始色值数据和直线距离范围数据。 其中, 中心区域 al呈圆形, 多个环形区域均呈圆环状。
[0045] 每个色值区域的初始色值数据根据预设的色值变化规则设置, 色值变化规则为 色值数据列表中下一个色值与上一个色值之间相差 n, 且 256/n个色值在数据列表 呈递增或递减变化。 本实施例中, n=l。
[0046] 由于色值的总数量为 256个, 相邻的两个色值区域的初始色值之间相差 1, 假设 中心区域 al的初始色值为 0, 环形区域 a2的初始色值为 1, 环形区域 a3的初始色值 为 2...环形区域 a256的初始色值为 255, 灯效模型内色值变化范围为 0至 255。
[0047] 多个色值区域均相对于坐标原点 o (即中心点) 设置, 即色值区域设置在中心 点的不同径向位置上, 且色值区域为圆心或环形, 故每个色值区域具有对应的 与中心点之间的直线距离范围数据。 例如, 中心区域 al的半径为 1, 其对应的直 线距离范围数据则为 0至 1 ; 环形区域 a2的外圆半径为 2, 内圆半径为 1, 则其对应 的直线距离范围则为 1至 2。 根据直线距离范围数据可得出色值区域的径向宽度 , 如环形区域 a2的直线距离范围则为 1至 2, 环形区域 a2的径向宽度为 2-1=1。
[0048] 设置每个色值区域对应的初始色值数据和直线距离范围数据后, 则根据每个所 述色值区域的初始色值数据和直线距离范围数据生成色值数据组, 且根据每个 色值区域的直线距离范围数据和色值区域的数量数据生成色值循环距离数据, 色值循环距离数据实际为色值区域组内色值不重复的前提下能覆盖到的极限径 向距离。 本实施例中, 色值区域数量为 256个, 每个色值区域的径向宽度为 1, 则可得出色值循环距离数据为 256。
[0049] 随后执行获取步骤 S2, 获取键盘上所有 RGB灯的坐标数据。 选取任意一个 RGB 灯作为二维坐标原点, 即可获得键盘上其余 RGB灯的坐标数据, 坐标数据包括 该 RGB灯相对中心 RGB灯的直线距离数据。 要实现键盘上 RGB灯的水滴波纹灯 效, 需要选择一个中心 RGB灯作为灯效中心。
[0050] 参见图 4, 图 4为获取步骤的第一原理图。 可选地, 获取键盘的对角线中点, 并 以该对角线中点作为中心点生成预设区域 90, 在以预设区域 90内的任一 RGB灯 作为中心 RGB灯, 并以中心 RGB灯作为坐标原点建立二维坐标, 随后获取键盘 上其余 RGB灯的坐标数据。 其中, 预设区域 90可以是圆形的区域, 也可以选择 采用方形的区域, 预设区域 90中包括 3到 12个 RGB灯。
[0051] 参见图 5, 图 5为获取步骤的第二原理图, 可选地, 以 87键键盘为例, 在所有按 键的外周位置未设置环绕式的 RGB灯组的前提下, 位于键盘最外周位置的四个 键位分别是 Esc键、 Ctrl键、 右箭头键以及 Pause键, 通过该四个键位对应的 RGB 灯 901、 RGB灯 902、 RGB灯 903和 RGB灯 904确定出最小外接圆 2。 并以最接近最 小外接圆 2中心点的字母 I键对应的 RGB灯 905作为中心 RGB灯。
[0052] 结合图 6 , 图 6为本发明键盘灯效控制方法第一实施例中判断步骤的原理图。 随 后执行判断步骤 S3, 根据每一 RGB灯的坐标数据生成该 RGB灯与中心 RGB灯的 直线距离数据, 判断每个 RGB灯的对应的直线距离数据是否大于预设的色值循 环距离数据; 若否, 根据直线距离数据和预设的色值数据组判断 RGB灯的初始 色值; 若是, 获取该 RGB灯的直线距离数据除以色值循环距离数据后的余数数 据, 以该余数数据更新该 RGB灯的直线距离数据, 根据更新后的直线距离数据 和预设的色值数据组判断 RGB灯的初始色值。
[0053] 在选取字母 I键对应的 RGB灯 905作为坐标原点, 并将灯效模型的坐标原点 0与11 GB灯 905重合后, 获取键盘上每个 RGB灯与中心 RGB灯 905的直线距离数据。
[0054] 如, 获取 scroll键对应的 RGB灯 906的直线距离数据为 256, 随后判断 RGB灯 906 的直线距离数据是否大于色值循环距离数据, 本实施例中色值循环距离数据为 2 56 , RGB灯 906对应的直线距离数据等于色值循环距离数据, 故根据直线距离数 据 256判断 RGB灯 906位于环形区域 a256中, 其初始色值为 255。
[0055] 又如, 获取 RGB灯 903对应的直线距离数据为 257, 色值循环距离数据为 256, R GB灯的直线距离数据除以色值循环距离数据后的余数数据为 1, 以余数数据更新 RGB灯 903的直线距离数据后, RGB灯 903的直线距离数据为 1, RGB灯 903对应 的环形区域 a257的初始色值为 0, 与中心区域 al的初始色值相同。
[0056] 随后执行亮灯步骤 S4, 单片机 100向每一 RGB灯发出控制信号, RGB灯根据色 值数据组按预设的初始色值发光, 色值数据组根据预设的色值变化规则设置在 中心 RGB灯的径向位置上。 预设的色值变化规则为列表中下一个色值与上一个 色值之间相差 n, 且 256/n个色值在数据列表同一个方向上呈递增或递减变化。
[0057] 本实施例中 n等于 1, 灯效模型被分为 256个色值区域, 相邻的色值区域之间色 值相差 1, 且 256个色值区域的初始色值在直线距离范围数据增加的方向 (即径 向) 上呈递增变化, 则第 1、 2、 3...256个色值区域对于的初始色值为 0、 1、 2... 255。 当根据预设的色值变化规则设置在所述中心 RGB灯的径向位置后, 实现灯 光的七彩层叠圆环效果。
[0058] 结合图 7, 图 7为本发明键盘灯效控制方法第一实施例中亮灯步骤的第一原理图 。 如, 位于同一圆环区域 a4的 RGB灯 907、 RGB灯 908和 RGB灯 909的初始色值均 为 3。
[0059] 结合图 1, 随后执行步骤 S5 , RGB灯按预设频率和预设规则改变色值。 单片机 1 00 (图 1示) 定时器计时每 33ms中断一次, 单片机 100则发送控制信号至驱动芯 片 200对 RGB灯的色值进行一次改变。 中心区域 al对应的初始色值为 0, n等于 25 6, 根据预设的色值变化规则, 中心区域 al的色值每 33ms增加 1, 中心区域 al随 时间变化的色值依次序排列为 0、 1、 2.....255 , 相应地, 环形区域 a2时间变化的 色值依次序排列为 1、 2、 3....255、 0。 此步骤可实现一个色值区域在下一时刻继 承前一个色值区域在前一时刻的色值, 在所有 RGB灯完成一次变化周期后, 键 盘上则呈现七彩波纹动态灯光效果。
[0060] 结合图 8和图 9, 图 8为本发明键盘灯效控制方法第一实施例中亮灯步骤的第二 原理图。 图 9为本发明键盘灯效控制方法第一实施例中亮灯步骤的第三原理图。 图 8中, 将位于键盘左下角的 RGB灯 902选取为中心 RGB灯, 图 9中, 将位于键盘 右下角的 RGB灯 903选取为中心 RGB灯, 选取位于不同位置的 RGB灯作为中心 R GB灯可得出不同的波纹扩散或收拢视觉效果。
[0061] 可选的是, 在获取步骤 S2中, 获取来自按键开关的交互信号, 并判断该按键开 关对应的 RGB灯并将该 RGB灯识别为中心 RGB灯, 随后获取选定数据。 具体地 , 键盘通电但使用者未对键位进行按压时, 键盘处于常暗状态, 此时所有 RGB 灯未点亮; 当使用者按压任一按键后, 则以该键位作为中心生成小范围或大范 围的七彩水滴波纹动态灯效。
[0062] 例如, 参见图 8 , 按压 Ctrl键后, 单片机则接收来自 Ctrl键对应的按键开关的交 互信号, 系统判断并识别 Ctrl键对应的 RGB灯 902则作为中心 RGB灯, 并执行判 断、 亮灯等后续步骤。
[0063] 键盘灯效控制方法第二实施例
[0064] 本实施例提供的键盘灯效控制方法中, 获取步骤、 判断步骤以及亮灯步骤的原 理与上一实施例相同, 不作赘述。 参见图 10和图 11, 图 10和图 11分别为本实施 例预设步骤的第一原理图和第二原理图。 预设步骤 S1 (图 2示) 中, 在建立了圆 形模型区域 1, 以及设定好多个色值区域后, 将圆形模型区域 1内每个点的 y坐标 数值按一定比例减小则可获得椭圆区域 3。 结合图 1, 在进行 y坐标变换后, 圆形 模型区域 1变为椭圆形模型区域 3 , 中心区域 al和依序围绕在中心区域 al外的环形 区域 a2、 环形区域 a3...环形区域 a256则变为中心区域 b 1和依序围绕在中心区域 b 1 夕卜的椭圆环形区域 b2、 椭圆环形区域 b3...椭圆环形区域 b256 , 中心区域 bl呈椭 圆形。
[0065] 圆形模型区域 1向椭圆形模型区域 3的变换中, 每个坐标点 y坐标的变换比例可 任意设定, 也可根据获取的键盘上的所有 RGB灯的坐标数据计算得出。 结合图 1 2和图 13 , 图 12为本实施例获取步骤的原理图, 图 13为本发明键盘灯效控制方法 第二实施例中亮灯步骤的原理图。 在获取步骤 S2中, 获取各个 RGB灯的坐标数 据后还可执行反馈步骤。 获取所有 RGB灯的坐标数据后构成的矩形的内接椭圆 4 , 根据内接椭圆 4的宽高比计算出圆形模型区域 1每个坐标点的 y坐标变换比例数 据, 根据该 y坐标变换比例数据更新椭圆形模型区域 3 , 从而获取一个与键盘轮 廓最接近, 最能体现波纹整体感的椭圆波纹动态灯效模型。 键盘上所有 RGB灯 亮灯后, 位于矩形四个角的 RGB灯 901、 RGB灯 902、 RGB灯 903和 RGB灯 904处 均位于同一中心区域 b256中。
[0066] 计算机装置实施例
[0067] 本发明的计算机装置可以是包括有处理器以及存储器等装置, 例如包含中央处 理器的单片机等。 并且, 处理器用于执行存储器中存储的计算机程序时实现上 述键盘灯效控制方法的步骤, 包括推荐预设步骤、 获取步骤、 判断步骤和亮灯 步骤。
[0068] 所称处理器可以是中央处理单元 (Central Processing Unit, CPU) , 还可以是其他 通用处理器、 数字信号处理器 (Digital Signal Processor, DSP)、 专用集成电路 (Application Specific Integrated Circuit, ASIC)、 现成可编程门阵列
(Field-Programmable Gate Array, FPGA)或者其他可编程逻辑器件、 分立门或者 晶体管逻辑器件、 分立硬件组件等。 通用处理器可以是微处理器或者该处理器 也可以是任何常规的处理器等。
[0069] 所述存储器可主要包括存储程序区和存储数据区, 其中, 存储程序区可存储操 作系统、 至少一个功能所需的应用程序 (比如声音播放功能、 图像播放功能等 ) 等; 存储数据区可存储根据手机的使用所创建的数据 (比如音频数据、 电话 本等) 等。 此外, 存储器可以包括高速随机存取存储器, 还可以包括非易失性 存储器, 例如硬盘、 内存、 插接式硬盘, 智能存储卡 (Smart Media Card, SMC ) , 安全数字 (Secure Digital, SD) 卡, 闪存卡 (Flash Card) 、 至少一个磁盘存 储器件、 闪存器件、 或其他易失性固态存储器件。
[0070] 计算机可读存储介质实施例
[0071] 本发明的计算机可读存储介质可以是被计算机装置的处理器所读取的任何形式 的存储介质, 包括但不限于非易失性存储器、 易失性存储器、 铁电存储器等, 计算机可读存储介质上存储有计算机程序, 当计算机装置的处理器读取并执行 存储器中所存储的计算机程序时, 可以实现上述键盘灯效控制方法的步骤, 包 括推荐预设步骤、 获取步骤、 判断步骤和亮灯步骤。
[0072] 所述计算机程序包括计算机程序代码, 所述计算机程序代码可以为源代码形式 、 对象代码形式、 可执行文件或某些中间形式等。 所述计算机可读介质可以包 括: 能够携带所述计算机程序代码的任何实体或装置、 记录介质、 U盘、 移动硬 盘、 磁碟、 光盘、 计算机存储器、 只读存储器 (ROM, Read-Only Memory) 、 随机存取存储器 (RAM, Random Access Memory) 、 电载波信号、 电信信号以 及软件分发介质等。 需要说明的是, 所述计算机可读介质包含的内容可以根据 司法管辖区内立法和专利实践的要求进行适当的增减, 例如在某些司法管辖区 , 根据立法和专利实践, 计算机可读介质不包括电载波信号和电信信号。
[0073] 最后需要强调的是, 以上所述仅为本发明的优选实施例, 并不用于限制本发明 , 对于本领域的技术人员来说, 本发明可以有各种变化和更改, 如预设的色值 变化规则还可以是实现任意的色值有序或无序数列的其他色值变化规则, 凡在 本发明的精神和原则之内, 所做的任何修改、 等同替换、 改进等, 均应包含在 本发明的保护范围之内。
[0074] 工业应用性
[0075] 本发明的键盘灯效控制方法可应用在具有单片机、 驱动芯片以及多个 RGB灯的 键盘上, 从而对键盘上多个 RGB灯的灯光效果进行控制。
[0076] 键盘灯效控制方法中, 在选取中心 RGB灯后, 每个键位上 RGB灯相对于中心 R GB灯具有不同的直线距离而具有不同的初始色值, 从而实现环绕式的色值层, 在进行色值变化后则实现了水滴波纹效果; 而由于 RGB灯的色值数量为有限值 , 当 RGB灯的色值沿径向完全显示后而尚未完全覆盖键盘的 RGB灯时, 则需要 重复进行色值循环, 故设置色值循环距离数据, 直线距离数据超过色值循环距 离数据的 RGB灯则重新进行色值循环, 从而使键盘上所有的 RGB灯形成整体的 水滴波纹效果, 从而满足使用者的视觉需求。

Claims

权利要求书
[权利要求 1] 键盘灯效控制方法, 其特征在于, 包括: 获取步骤, 获取中心 RGB灯 的选定数据, 根据所述选定数据获取键盘上每个 RGB灯的坐标数据; 判断步骤, 根据每一所述 RGB灯的坐标数据生成该 RGB灯与所述中 心 RGB灯的直线距离数据, 判断每个 RGB灯的对应的直线距离数据 是否大于预设的色值循环距离数据; 若否, 根据所述直线距离数据和 预设的色值数据组判断所述 RGB灯的初始色值; 若是, 获取该 RGB 灯的直线距离数据除以所述色值循环距离数据后的余数数据, 以该余 数数据更新该 RGB灯的直线距离数据, 根据更新后的直线距离数据和 预设的色值数据组判断所述 RGB灯的初始色值; 亮灯步骤, 向每一所 述 RGB灯发出控制信号, 使每个 RGB灯按初始色值发光, 其中, 所 述色值数据组根据预设的色值变化规则设置在所述中心 RGB灯的径向 位置上, 且每个 RGB灯按预设时间频率以所述色值变化规则改变色值
[权利要求 2] 根据权利要求 1所述的键盘灯效控制方法, 其特征在于: 所述亮灯步 骤中, 还包括: 所述直线距离数据相等的多个 RGB灯的初始色值相同
[权利要求 3] 根据权利要求 1所述的键盘灯效控制方法, 其特征在于: 所述获取步 骤前, 还执行: 预设步骤, 包括建立灯效模型, 所述灯效模型包括中 心点以及设置在所述中心点不同径向位置的多个色值区域, 多个所述 色值区域包括最接近所述中心点的一个中心区域和位于所述中心区域 外的多个环形区域; 预设每个所述色值区域对应的初始色值数据和直 线距离范围数据, 根据每个所述色值区域的初始色值数据和直线距离 范围数据生成所述色值数据组; 所述判断步骤中, 还包括: 根据 RGB 灯的直线距离数据和所述直线距离范围数据判断每个所述 RGB灯对应 的色值区域和初始色值数据。
[权利要求 4] 根据权利要求 3所述的键盘灯效控制方法, 其特征在于: 所述预设步 骤中, 还包括: 根据每个所述色值区域的所述直线距离范围数据和所 述色值区域的数量数据生成色值循环距离数据。
[权利要求 5] 根据权利要求 1至 4任一项所述的键盘灯效控制方法, 其特征在于: 所 述获取步骤中, 还包括: 获取所有 RGB灯的坐标数据的最小外接圆, 根据所述最小外接圆更新所述中心 RGB灯的选定数据。
[权利要求 6] 根据权利要求 5所述的键盘灯效控制方法, 其特征在于: 所述获取步 骤中, 还包括: 根据获取的所述最小外接圆更新所述色值循环距离。
[权利要求 7] 根据权利要求 1至 4任一项所述的键盘灯效控制方法, 其特征在于: 所 述获取步骤中, 还包括: 获取键盘的对角线中点, 并以所述对角线中 点为中心点生成预设区域, 从所述预设区域选取所述中心 RGB灯。
[权利要求 8] 根据权利要求 1至 7任一项所述的键盘灯效控制方法, 其特征在于: 所 述获取步骤中, 还包括: 获取交互信号, 判断所述交互信号对应的按 键开关, 并识别该按键开关对应的 RGB灯为所述中心 RGB灯。
[权利要求 9] 一种计算机装置, 其特征在于: 所述计算机装置包括处理器, 所述处 理器用于执行存储器中存储的计算机程序时实现如权利要求 1至 8任一 项所述的键盘灯效控制方法。
[权利要求 10] 一种计算机可读存储介质, 其上存储有计算机程序, 其特征在于: 所 述计算机程序被处理器执行时实现如权利要求 1至 8任一项所述的键盘 灯效控制方法。
PCT/CN2018/107953 2018-05-17 2018-09-27 键盘灯效控制方法、计算机装置和计算机可读存储介质 WO2019218569A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810476401.2 2018-05-17
CN201810476401.2A CN108882440B (zh) 2018-05-17 2018-05-17 键盘灯效控制方法、计算机装置和计算机可读存储介质

Publications (1)

Publication Number Publication Date
WO2019218569A1 true WO2019218569A1 (zh) 2019-11-21

Family

ID=64334000

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/107953 WO2019218569A1 (zh) 2018-05-17 2018-09-27 键盘灯效控制方法、计算机装置和计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN108882440B (zh)
WO (1) WO2019218569A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113312506A (zh) * 2021-05-28 2021-08-27 东风汽车有限公司东风日产乘用车公司 照明装置控制方法、存储介质及电子设备

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110007781B (zh) * 2019-04-03 2021-06-22 珠海市学思电子科技有限公司 接入设备于界面中的灯效模拟方法、计算机装置和计算机可读存储介质
CN110850993B (zh) * 2019-11-12 2023-10-20 珠海市学思电子科技有限公司 键盘灯效设置方法、计算机装置和计算机可读存储介质
CN112148196A (zh) * 2020-07-24 2020-12-29 北京百度网讯科技有限公司 虚拟键盘的显示方法和装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120070218A1 (en) * 2010-09-22 2012-03-22 Getac Technology Corporation Illuminant human interface device
CN104763971A (zh) * 2015-04-24 2015-07-08 深圳市江湾数码科技有限公司 键盘背光led灯调色系统
CN107958658A (zh) * 2017-11-08 2018-04-24 深圳市屯奇尔科技有限公司 半径采样旋转rgb灯带显示方法、装置及计算机可读存储介质
CN107967890A (zh) * 2017-11-08 2018-04-27 深圳市屯奇尔科技有限公司 直径错位采样旋转rgb灯带显示方法、装置及计算机可读存储介质

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201967197U (zh) * 2010-12-23 2011-09-07 惠州Tcl移动通信有限公司 一种键盘灯与充电指示灯共用的控制电路
CN104565998A (zh) * 2013-10-24 2015-04-29 富泰华工业(深圳)有限公司 键盘灯、该键盘灯的控制方法及具有该键盘灯的键盘
CN205883674U (zh) * 2016-07-05 2017-01-11 深圳中电长城信息安全系统有限公司 基于键盘的调光控制电路及调光设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120070218A1 (en) * 2010-09-22 2012-03-22 Getac Technology Corporation Illuminant human interface device
CN104763971A (zh) * 2015-04-24 2015-07-08 深圳市江湾数码科技有限公司 键盘背光led灯调色系统
CN107958658A (zh) * 2017-11-08 2018-04-24 深圳市屯奇尔科技有限公司 半径采样旋转rgb灯带显示方法、装置及计算机可读存储介质
CN107967890A (zh) * 2017-11-08 2018-04-27 深圳市屯奇尔科技有限公司 直径错位采样旋转rgb灯带显示方法、装置及计算机可读存储介质

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113312506A (zh) * 2021-05-28 2021-08-27 东风汽车有限公司东风日产乘用车公司 照明装置控制方法、存储介质及电子设备

Also Published As

Publication number Publication date
CN108882440B (zh) 2019-05-24
CN108882440A (zh) 2018-11-23

Similar Documents

Publication Publication Date Title
WO2019218569A1 (zh) 键盘灯效控制方法、计算机装置和计算机可读存储介质
WO2019218570A1 (zh) 键盘灯效控制方法、计算机装置和计算机可读存储介质
US10679031B2 (en) Fingerprint acquisition method and electronic device thereof
WO2009110363A1 (ja) 認証方法および入力装置
JP2018536185A (ja) 曲線状の縁部の画素調光を有するディスプレイ
CN103530127B (zh) 图标显示方法及装置
CN106444160B (zh) 一种背光组件、移动终端及控制方法
CN104076928B (zh) 一种调整文字显示区域色调的方法
JP2003069354A (ja) 色相により利得設定値を表示するための表示制御装置
WO2020199970A1 (zh) 接入设备于界面中的灯效模拟方法、计算机装置和计算机可读存储介质
CN107392171B (zh) 显示基板、显示面板及显示装置
KR101462091B1 (ko) 사칙연산 학습기
US9763021B1 (en) Systems and methods for display of non-graphics positional audio information
TW201842465A (zh) 指紋操作提示方法及顯示面板、顯示裝置
CN111352571B (zh) 智能手表的触摸控制方法、装置、电子设备及存储介质
CN107219989A (zh) 图标处理方法、装置及终端
WO2019007058A1 (zh) 终端设备及由其执行的显示控制方法、计算机可读存储介质和计算机程序产品
CN107861788A (zh) 图片排版方法、终端及计算机可读存储介质
JP5254753B2 (ja) 数値入力装置、数値入力方法、数値入力プログラム、およびコンピュータ読み取り可能な記録媒体
CN111831250A (zh) 音频处理方法、装置、存储介质及电子设备
TWI682687B (zh) 鍵盤中發光二極體的驅動方法與驅動裝置
CN107678627A (zh) 图标处理方法、装置及用户终端
KR20220062300A (ko) 휴대용 컨트롤러를 사용하는 속성 선택
TWI742477B (zh) 電子裝置
CN107239153A (zh) 键盘输入提示方法及装置

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: 18919248

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: 18919248

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 08.07.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18919248

Country of ref document: EP

Kind code of ref document: A1