Icon display brightness control method and device, electrical equipment and storage medium

By controlling the scanning time or number of scans of target matrix elements in matrix scanning technology, differentiated control of the brightness of the icon display is solved, and the problem of inability to differentiate brightness in the prior art is improved, and the display effect and user experience are improved.

CN119847661APending Publication Date: 2025-04-18GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411922695.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

The existing matrix scanning technology cannot differentiate the display brightness of each icon on the screen, resulting in the display effect not being rich enough to meet the user interaction needs.

Method used

By obtaining the screen's scanning matrix and the target display brightness of each icon, the scanning time or number of scans of the target matrix element is determined, and during the scanning process of the scanning matrix, the target matrix element is controlled to light up according to the scanning time or number of scans to achieve the target display brightness of each icon.

Benefits of technology

It realizes flexible control of the brightness of each icon, so that each icon can achieve the corresponding target display brightness, improving the display interaction effect and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119847661A_ABST
    Figure CN119847661A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of display control, and discloses an icon display brightness control method and device, electrical equipment and a storage medium. Target display brightness corresponding to each icon on a screen is determined, and the corresponding relation between screen pixels occupied by the icons and matrix elements of a scanning matrix is combined, so that the display brightness of the icons is controlled. And determining the scanning time or the scanning frequency of the target matrix element for controlling the icon brightness. And then, controlling the lightening time of the target matrix element in one scanning period by utilizing the scanning time, or controlling the lightening frequency of the target matrix element in one scanning period by utilizing the scanning frequency, thereby flexibly changing the display brightness of the icon. Therefore, each icon can reach the corresponding target display brightness, the display interaction effect is effectively improved, a richer display effect is provided for the screen, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of display control technology, and in particular to an icon display brightness control method, device, electrical equipment and storage medium. Background Art

[0002] Currently, various electrical products are not only developing from a functional perspective, but are also developing in the direction of aesthetics and convenient interaction. That is, more and more products are abandoning the original button-type and LED-lit display interfaces and developing in the direction of touch screens and graphical interfaces.

[0003] Matrix scanning control of LED display is a common technology. Each row and column of the matrix corresponds to a pin. The basic principle is to activate the row / column pins row / column by row / column, and send corresponding signals on the column / row pins to control the LED status in the row / column. For example, when the first row is activated, by sending a signal on the column pin, it can be determined which LEDs in the first row should be lit. Then the second row, the third row, and so on are activated in turn, and this process is quickly cycled. Due to the visual persistence effect of the human eye, it looks like all the LEDs are lit at the same time, realizing the lighting of the icon. However, the display brightness of each icon on the screen of the above method is relatively consistent, and the display brightness between icons cannot be differentiated, and rich brightness display effects cannot be achieved. Summary of the invention

[0004] In view of this, the present invention provides an icon display brightness control method, device, electrical equipment and storage medium to solve the problem that the existing matrix scanning cannot differentiate the display brightness of each icon on the screen and has poor flexibility.

[0005] In a first aspect, the present invention provides a method for controlling icon display brightness, the method comprising:

[0006] Obtaining the scanning matrix of the screen and the target display brightness corresponding to each icon; wherein each screen pixel occupied by the icon corresponds to a different target matrix element in the scanning matrix;

[0007] According to the target display brightness of the icon, the scanning time or scanning times of the target matrix element is obtained;

[0008] During the scanning process of the scanning matrix, the target matrix elements are controlled to light up according to the scanning time or the number of scans, so that each icon reaches the corresponding target display brightness.

[0009] Beneficial effects: The present invention determines the target display brightness corresponding to each icon on the screen, and determines the scanning time or scanning times of the target matrix element used to control the icon brightness by combining the corresponding relationship between the screen pixels occupied by the icon and the matrix elements of the scanning matrix. Then, the scanning time is used to control the lighting time of the target matrix element within a scanning cycle, or the scanning times are used to control the lighting times of the target matrix element within a scanning cycle, so as to flexibly change the display brightness of the icon. In this way, each icon can achieve the corresponding target display brightness, effectively improve the display interaction effect, provide a richer display effect for the screen, and improve the user experience.

[0010] In some optional implementations, during the scanning process of the scanning matrix, controlling the target matrix element to light up according to the scanning time or the scanning number includes:

[0011] In each scanning cycle of the scanning matrix, the scanning matrix is ​​traversed once and the lighting time of each target matrix element reaches the corresponding scanning time;

[0012] Alternatively, in each scanning cycle of the scanning matrix, the scanning matrix is ​​traversed for multiple rounds and the number of lighting times of each target matrix element after the multiple rounds of traversal reaches the corresponding scanning times.

[0013] Beneficial effects: In each scanning cycle of the scanning matrix, the present invention performs a round of traversal on the target matrix elements in the scanning matrix according to the scanning time, and controls the icon display brightness by adjusting the light output time. Alternatively, in each scanning cycle of the scanning matrix, multiple rounds of traversal are performed on the target matrix elements in the scanning matrix according to the scanning times, and controls the icon display brightness by adjusting the number of pixel lighting times. Thus, each icon can reach the corresponding target display brightness, improve the richness of the display effect, and thus improve the user's interactive experience.

[0014] In some optional implementations, performing a round of traversal on the scan matrix and making the lighting time of each target matrix element reach the corresponding scan time includes:

[0015] For the current row / column of the scan matrix, do the following:

[0016] Sending a first control signal to a target matrix element, lighting up the target matrix element and recording the lighting time;

[0017] If it is detected that the lighting time reaches the corresponding scanning time, a second control signal is sent to the target matrix element to turn off the target matrix element, and the next row of the scanning matrix is ​​set as the current row / column.

[0018] Beneficial effect: In an embodiment of the present invention, the scanning matrix is ​​traversed row by row / column by row, and the lighting time of the target matrix element of each row / column is controlled in sequence to reach the scanning time corresponding to the target display brightness, and the output time of the light is adjusted, thereby realizing the display brightness control of the icon.

[0019] In some optional implementations, performing multiple rounds of traversal on the scan matrix and making each target matrix element light up a number of times after the multiple rounds of traversal to reach a corresponding number of scan times includes:

[0020] During each pass through the scan matrix, the following operations are performed:

[0021] Scan the target matrix elements of each row / column in sequence. If it is detected that the lighting times of the target matrix element have not reached the corresponding scanning times, light up the target matrix element once and update the lighting times.

[0022] If it is detected that there is a target matrix element in the scan matrix whose lighting times do not reach the corresponding scan times, the next round of traversal of the scan matrix is ​​entered.

[0023] Beneficial effect: In the embodiment of the present invention, the lighting times of the target matrix element are detected in each round of traversal of the scanning matrix. If the lighting times have not reached the scanning times corresponding to the target display brightness, the target matrix element is lit once. By performing multiple rounds of traversal of the scanning matrix, it is ensured that each target matrix element can reach the corresponding scanning times, so that the icon is displayed at the target display brightness.

[0024] In some optional implementations, lighting up a target matrix element once includes:

[0025] Sending a first control signal to a target matrix element, lighting up the target matrix element and recording the lighting time;

[0026] If it is detected that the lighting time reaches the first preset time, a second control signal is sent to the target matrix element to turn off the target matrix element.

[0027] Beneficial effect: The present invention sets a first preset time for lighting up the target matrix element. When it is detected that the lighting time reaches the duration, the lighting is completed once. In this way, the target matrix element is lit up row by row / column by row, thereby completing a scan matrix traversal.

[0028] In some optional implementations, sending a first control signal to a target matrix element includes:

[0029] sending a low level signal to the cathode of the target matrix element and sending a high level signal to the anode of the target matrix element;

[0030] Sending a second control signal to a target matrix element includes:

[0031] Sends a low signal to the cathode and anode of the target matrix element.

[0032] Beneficial effects: The present invention realizes the lighting and extinguishing of the target matrix elements by switching between high-level signals and low-level signals. The control logic is simple, which is beneficial to improving the scanning efficiency of the matrix.

[0033] In some optional implementations, obtaining the target display brightness corresponding to each icon on the screen includes:

[0034] In response to a user's interactive instruction for a first icon, a target display brightness of the first icon is configured as a first display brightness, and a target display brightness of a second icon is configured as a second display brightness; wherein the second icon is an icon other than the first icon, and the second display brightness is less than the first display brightness;

[0035] If no user interaction instruction is received within the second preset time, the target display brightness of each icon is configured to be a third display brightness; wherein the third display brightness is lower than the second display brightness.

[0036] Beneficial effects: The present invention configures a higher display brightness for the first icon that interacts with the user, and configures a lower display brightness for other icons, so as to highlight key information and remind the user to operate, thereby improving the user experience. In addition, if no interactive instructions from the user are received within the second preset time, the display brightness of all icons is adjusted to the minimum, thereby achieving the effect of reducing the energy consumption of the device.

[0037] In a second aspect, the present invention provides an icon display brightness control device, the device comprising:

[0038] An acquisition module, used to acquire the scanning matrix of the screen and the target display brightness corresponding to each icon; wherein each screen pixel occupied by the icon corresponds to a different target matrix element in the scanning matrix;

[0039] A first processing module, used to obtain a scanning time or scanning times of a target matrix element according to a target display brightness of the icon;

[0040] The second processing module is used to control the lighting of the target matrix elements according to the scanning time or the number of scans during the scanning process of the scanning matrix, so that each icon reaches the corresponding target display brightness.

[0041] In a third aspect, the present invention provides an electrical device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the icon display brightness control method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0042] In some optional embodiments, the electrical device is a water purifier.

[0043] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the icon display brightness control method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0045] Figure 1 is a schematic flow chart of a method for controlling icon display brightness according to an embodiment of the present invention;

[0046] Figure 2 is a flow chart of another method for controlling icon display brightness according to an embodiment of the present invention;

[0047] Figure 3 is a schematic diagram of a process of controlling brightness according to scanning time according to an embodiment of the present invention;

[0048] Figure 4 is a schematic diagram of a process of controlling brightness according to the number of scans according to an embodiment of the present invention;

[0049] Figure 5 is a structural block diagram of an icon display brightness control device according to an embodiment of the present invention;

[0050] Figure 6 It is a schematic diagram of the hardware structure of the electrical equipment according to the embodiment of the present invention. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0052] At present, various products such as water purifiers are developing not only from the functional perspective, but also towards aesthetics and convenient interaction. That is, more and more water purifier products are abandoning the original button-type and LED light display interface and developing towards touch screen and graphical interface. Among them, touch screen displays are mostly realized by pulse width modulation (PWM) adjustment control, circuit IO port scanning, LED driver chip control, etc., in order to achieve better display effects.

[0053] Matrix scanning to control LED display is a common technology. This technology regards the LED matrix as a two-dimensional array, where the rows and columns control the cathode and anode of the LED respectively. By scanning the rows and columns in sequence and determining the position of the two-dimensional array, a specific LED can be controlled to light up. However, this method does not take into account the brightness display differences in different areas of the screen, and cannot highlight key information, affecting the user's interactive experience.

[0054] Therefore, the embodiment of the present invention provides an icon display brightness control scheme, and proposes two matrix scanning schemes to flexibly adjust the display effect of the brightness, that is, changing the brightness by controlling the lighting time in a scanning cycle, or changing the brightness by controlling the number of scanning lighting times in a scanning cycle. The longer the lighting time or lighting times of a light in a scanning cycle, the brighter it looks to the human eye.

[0055] According to an embodiment of the present invention, an embodiment of an icon display brightness control method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0056] In this embodiment, a method for controlling the brightness of an icon display is provided, which can be used in devices with a touch screen, such as a mobile phone, a computer, a water purifier, etc. Figure 1 is a flow chart of a method for controlling icon display brightness according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0057] Step S101, obtaining a scan matrix of the screen and target display brightness corresponding to each icon; wherein each screen pixel occupied by the icon corresponds to a different target matrix element in the scan matrix.

[0058] Specifically, the matrix elements of the scanning matrix and the screen pixels can be in a one-to-one correspondence. For example, for a screen with an m-row and n-column scanning matrix, there are a total of m×n matrix elements, and there are also m×n pixels on the screen. In this way, during the row-by-row scanning of the matrix, the first row of elements of the scanning matrix correspond to the first row of pixels on the screen in sequence, and are used to control the lighting state, brightness, color and other parameters of these pixels. Exemplarily, each matrix element of the scanning matrix can represent an LED lamp, and in actual application, one or more LED lamps can be used to display an icon.

[0059] Specifically, a variety of icon display schemes can be set according to the user's interactive commands. For example, when the touch display screen of the water purifier's electronic faucet needs to distinguish between the three user interaction states of wake-up, operation, and screen off, the user can be reminded by setting the three display states of full brightness, half brightness, and off. At the same time, the user can also customize the display brightness to improve flexibility and user experience.

[0060] Step S102, obtaining the scanning time or scanning times of the target matrix element according to the target display brightness of the icon.

[0061] Specifically, the target matrix element used to control the brightness of the corresponding icon is determined based on the correspondence between the matrix element, the screen pixel, and the screen area occupied by the icon. The display brightness of the icon is related to the time when the pixel is lit. In the process of scanning the matrix to control the pixel display, the pixel lighting time corresponding to each matrix element will affect the display brightness of the icon. Therefore, a mapping relationship between the display brightness and the scanning time, such as a linear relationship, can be established in advance, so as to determine the scanning time of the target matrix element according to the target display brightness. In addition, since the light output increases each time the pixel is scanned, scanning the same pixel multiple times within a certain period of time can increase the display brightness. Therefore, a mapping relationship between the display brightness and the number of scans can also be established in advance, so as to determine the number of scans of the target matrix element according to the target display brightness.

[0062] Step S103, during the scanning process of the scanning matrix, the target matrix elements are controlled to light up according to the scanning time or the scanning times, so that each icon reaches the corresponding target display brightness.

[0063] Specifically, for each icon scanning and display process, the corresponding matrix element can be continuously lit according to the corresponding scanning time, so as to adjust the light output so that the screen pixel corresponding to the icon reaches the target display brightness. Alternatively, the matrix element can be scanned multiple times according to the scanning number within a period of time to increase the refresh rate of the pixel so that the icon reaches the corresponding target display brightness.

[0064] The icon display brightness control method provided in this embodiment determines the target display brightness corresponding to each icon on the screen, and determines the scanning time or scanning number of the target matrix element used to control the icon brightness by combining the corresponding relationship between the screen pixels occupied by the icon and the matrix elements of the scanning matrix. Then, the scanning time is used to control the lighting time of the target matrix element within a scanning cycle, or the scanning number is used to control the lighting number of the target matrix element within a scanning cycle, so as to flexibly change the display brightness of the icon. In this way, each icon can achieve the corresponding target display brightness, effectively improve the display interaction effect, provide a richer display effect for the screen, and improve the user experience.

[0065] In this embodiment, a method for controlling the brightness of an icon display is provided, which can be used in devices with a touch screen, such as a mobile phone, a computer, a water purifier, etc. Figure 2 is a flow chart of a method for controlling icon display brightness according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0066] Step S201, obtaining a scanning matrix of the screen and target display brightness corresponding to each icon; wherein each screen pixel occupied by the icon corresponds to a different target matrix element in the scanning matrix.

[0067] Specifically, the above step S201 includes:

[0068] Step S2011, in response to the user's interactive instruction for the first icon, the target display brightness of the first icon is configured to be the first display brightness, and the target display brightness of the second icon is configured to be the second display brightness; wherein the second icon is an icon other than the first icon, and the second display brightness is less than the first display brightness.

[0069] For example, if the user clicks on the first icon on the screen, the target display brightness of the first icon can be configured to "full bright", and the target display brightness of other icons on the screen can be configured to "half bright". This can highlight the key content information that interacts with the user and facilitate user operation.

[0070] Step S2012: if no user interaction instruction is received within the second preset time, the target display brightness of each icon is configured to be a third display brightness; wherein the third display brightness is lower than the second display brightness.

[0071] Exemplarily, if no user interaction instruction is detected within the second preset time, the target display brightness of each icon is configured to be "off" to reduce energy consumption, wherein the specific size of the second preset time can be set according to the actual scenario.

[0072] In the embodiment of the present invention, the first icon that interacts with the user is configured with a higher display brightness, and the other icons are configured with a lower display brightness, so as to highlight key information and remind the user to operate, thereby improving the user experience. In addition, if no interactive instructions from the user are received within the second preset time, the display brightness of all icons is adjusted to the minimum, so as to achieve the effect of reducing the energy consumption of the device.

[0073] Step S202, obtaining the scanning time or scanning times of the target matrix element according to the target display brightness of the icon.

[0074] Step S203, during the scanning process of the scanning matrix, the target matrix elements are controlled to light up according to the scanning time or the scanning times, so that each icon reaches the corresponding target display brightness.

[0075] Specifically, the above step S203 includes:

[0076] Step S2031, in each scanning cycle of the scanning matrix, a round of traversal is performed on the scanning matrix and the lighting time of each target matrix element reaches the corresponding scanning time.

[0077] In some optional implementations, for the current row / column of the scan matrix, the following operations are performed:

[0078] Step a1, sending a first control signal to a target matrix element, lighting up the target matrix element and recording the lighting time.

[0079] In some optional implementations, a low-level signal is sent to the cathode of the target matrix element, and a high-level signal is sent to the anode of the target matrix element, thereby controlling the target matrix element to light up.

[0080] Step a2: if it is detected that the lighting time reaches the corresponding scanning time, a second control signal is sent to the target matrix element to turn off the target matrix element, and the next row of the scanning matrix is ​​set as the current row / column.

[0081] In some optional implementations, a low level signal is sent to the cathode and anode of the target matrix element, thereby controlling the target matrix element to be extinguished. This embodiment realizes the lighting and extinguishing of the target matrix element by switching between high level signals and low level signals, and the control logic is simple, which is conducive to improving the scanning efficiency of the matrix.

[0082] For example, to control the corresponding icon 1 to be extinguished, the lighting time is 0 when the matrix element corresponding to icon 1 is scanned; to control the corresponding icon 2 to be fully lit, the lighting time is T when the matrix element corresponding to icon 2 is scanned; to control the corresponding icon 3 to be half lit, the lighting time is T / 2 when the matrix element corresponding to icon 3 is scanned.

[0083] In an embodiment of the present invention, the scan matrix is ​​traversed row by row / column by row, the lighting time of the target matrix element of each row / column is controlled in sequence to reach the scanning time corresponding to the target display brightness, and the output of light is adjusted, thereby realizing the display brightness control of the icon.

[0084] Step S2032, in each scanning cycle of the scanning matrix, the scanning matrix is ​​traversed multiple times and the lighting times of each target matrix element after the multiple traversals reach the corresponding scanning times.

[0085] In some optional implementations, during each round of traversal of the scan matrix, the following operations are performed:

[0086] Step b1, scan the target matrix elements of each row / column in sequence. If it is detected that the lighting times of the target matrix element does not reach the corresponding scanning times, light up the target matrix element once and update the lighting times.

[0087] In some optional implementations, when the target matrix element is lit once, a first control signal is sent to the target matrix element to light up the target matrix element and record the lighting time. If it is detected that the lighting time reaches the first preset time, a second control signal is sent to the target matrix element to turn off the target matrix element. Generally, the longer the first preset time interval, the higher the display brightness of the icon.

[0088] This embodiment sets a first preset time for lighting the target matrix element. When it is detected that the lighting time reaches the duration, the lighting is completed once. In this way, the target matrix element is lit once row / column by row, and the traversal of the scanning matrix can be completed once.

[0089] Step b2: If it is detected that there is a target matrix element in the scan matrix whose lighting times do not reach the corresponding scan times, then the next round of traversal of the scan matrix is ​​entered.

[0090] Specifically, the number of traversal rounds of the scanning matrix can be set according to the maximum number of scans in the scanning matrix, that is, it can be set according to the maximum display brightness. For example, if the maximum display brightness is "full brightness" and the corresponding number of scans is N, then the number of traversal rounds can be set to N. This ensures that after N rounds of traversal, the number of times each target matrix element is lit up can reach the corresponding number of scans.

[0091] In the embodiment of the present invention, the lighting times of the target matrix element are detected in each round of traversal of the scanning matrix. If the lighting times have not reached the scanning times corresponding to the target display brightness, the target matrix element is lit once. By performing multiple rounds of traversal of the scanning matrix, it is ensured that each target matrix element can reach the corresponding scanning times, so that the icon is displayed at the target display brightness.

[0092] The icon display brightness control method provided in this embodiment performs one round of traversal of the target matrix elements in the scanning matrix according to the scanning time in each scanning cycle of the scanning matrix, and controls the icon display brightness by adjusting the light output time. Alternatively, in each scanning cycle of the scanning matrix, multiple rounds of traversal of the target matrix elements in the scanning matrix are performed according to the scanning times, and controls the icon display brightness by adjusting the lighting times of the pixels. Thus, each icon can reach the corresponding target display brightness, improve the richness of the display effect, and thus improve the user's interactive experience.

[0093] The following takes the touch screen display control of the electronically controlled faucet of a water purifier as an example and combines a specific application example to explain in detail the icon display brightness control scheme of the present invention.

[0094] In this application example, it is assumed that a screen displays 10 icons, which are controlled by a scanning matrix. The icons are arranged in a 10×1 manner. The scanning matrix includes 10×1 matrix elements. Each matrix element corresponds to an icon in a corresponding row. The scanning time for scanning a matrix element, i.e., an icon, is T. By scanning the rows and columns of different combinations of the control matrix row by row, the cathode and anode of the LED lamp can be controlled to turn on and off the corresponding LED.

[0095] Figure 3 The flowchart of controlling the display brightness according to the scanning time is shown in FIG. Figure 3 As shown, each row of the scan matrix is ​​scanned once, each row controls the corresponding icon, and one round of scanning is regarded as a control cycle, that is, a scanning cycle of the control scan matrix is ​​10*T. The specific steps are as follows:

[0096] Step 11, select a row: set the cathodes of all LED lights in the current row to a low level.

[0097] Step 12, control the column: set the anode of the LED lamp of the column to be lit in the current row to a high level.

[0098] Step 13, delay: set the lighting time t1 and the extinguishing time t2 within the scanning time T to control the display brightness of the corresponding icon. Among them, t1+t2=T, and the brightness is adjusted by changing the lighting time t1.

[0099] Step 14, turn off all columns: set the anodes of all columns in the current row to a low level.

[0100] Step 15, select the next row: repeat the above steps 11 to 14 until all rows are scanned, that is, one scanning cycle is completed.

[0101] For example, to control the corresponding icon 1 to turn off, when scanning the row corresponding to icon 1, set it to the off state within the scanning time T (t1 = 0); to control the corresponding icon 2 to be fully lit, when scanning the row corresponding to icon 2, set it to the lit state within the scanning time T (t1 = T); to control the corresponding icon 3 to be half lit, when scanning the row corresponding to icon 3, set the lighting time t1 = T / 2 within the scanning time T, and set the other T / 2 to the off state.

[0102] Figure 4 It is a schematic flowchart for controlling the display brightness according to the number of scans, as Figure 4 shown. Taking N rounds of traversal as a scanning cycle, that is, a scanning cycle of the scanning matrix is 10*T*N. The specific steps are as follows:

[0103] Step 21, start the Xth round of scanning.

[0104] Step 22, select a row: Set the cathodes of all the LED lights in the current row to low level.

[0105] Step 23, control the columns: When X < a, set the anodes of the LED lights in the columns to be lit to high level, otherwise keep them at low level. Among them, adjust the brightness by changing a, 0 ≤ a ≤ N, a is the number of scans corresponding to the matrix element of the corresponding column in the current row, and N is the maximum number of scans in the scanning matrix.

[0106] Step 24, delay: Keep the above settings for a fixed time T.

[0107] Step 25, turn off all columns: Set the anodes of all the LED lights in the columns to low level.

[0108] Step 26, select the next row: Repeat the above steps 22 - 25 until all rows are scanned.

[0109] Step 27, start the next round of scanning until X = N, that is, complete a scanning cycle.

[0110] For example, to control icon 1 to turn off, within the time T of each scan during N rounds of scanning of icon 1, set it to the off state (i.e., a = 0); to control icon 2 to be fully lit, within the time T of each scan during N rounds of scanning of icon 2, set it to the lit state (i.e., a = N); to control icon 3 to be half lit, before the N / 2th round of scanning of icon 3 (i.e., a = N / 2), set it to the lit state within the time T of each scan, and after the N / 2th round of scanning, output an off signal within the time T of each scan.

[0111] This application example proposes two scanning methods to flexibly achieve the display effect of brightness, that is, changing the brightness by controlling the lighting time within a scanning cycle, or changing the brightness by controlling the number of scanning lighting times within a scanning cycle. The present invention can flexibly change the display brightness, effectively improve the display interaction effect, and provide more options for display solutions.

[0112] For example, when the touch screen of the electronically controlled faucet of the water purifier needs to distinguish between the three user interaction states of wake-up, operation, and screen off, the user can be reminded by setting the three display states of full brightness, half brightness, and off. At the same time, the user can flexibly customize the display brightness to enhance the user experience. The electronically controlled screen faucet relies on the principle of scanning display, and adjusts the display brightness of different icons or LED lights by changing the scanning frequency or time, thereby distinguishing between operation and display, and enhancing the user interaction experience.

[0113] It should be noted that not only for the screen display faucet of the water purifier, but also for the display interface of various household appliances, if the scanning principle is used for brightness display, the above control logic can be applied in the scanning process to realize the distinction of various brightnesses and complete the arbitrary adjustment of the brightness display.

[0114] In this embodiment, an icon display brightness control device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0115] This embodiment provides an icon display brightness control device, such as Figure 5 As shown, including:

[0116] The acquisition module 501 is used to acquire the scanning matrix of the screen and the target display brightness corresponding to each icon; wherein each screen pixel occupied by the icon corresponds to a different target matrix element in the scanning matrix;

[0117] A first processing module 502 is used to obtain a scanning time or scanning times of a target matrix element according to a target display brightness of the icon;

[0118] The second processing module 503 is used to control the lighting of target matrix elements according to the scanning time or the number of scanning times during the scanning process of the scanning matrix, so that each icon reaches a corresponding target display brightness.

[0119] In some optional implementations, the acquisition module 501 is further used to:

[0120] In response to a user's interactive instruction for a first icon, a target display brightness of the first icon is configured as a first display brightness, and a target display brightness of a second icon is configured as a second display brightness; wherein the second icon is an icon other than the first icon, and the second display brightness is less than the first display brightness;

[0121] If no user interaction instruction is received within the second preset time, the target display brightness of each icon is configured to be a third display brightness; wherein the third display brightness is lower than the second display brightness.

[0122] In some optional implementations, the second processing module 503 is further configured to:

[0123] In each scanning cycle of the scanning matrix, the scanning matrix is ​​traversed once and the lighting time of each target matrix element reaches the corresponding scanning time;

[0124] Alternatively, in each scanning cycle of the scanning matrix, the scanning matrix is ​​traversed for multiple rounds and the number of lighting times of each target matrix element after the multiple rounds of traversal reaches the corresponding scanning times.

[0125] In some optional implementations, the second processing module 503 is further configured to:

[0126] For the current row / column of the scan matrix, do the following:

[0127] Sending a first control signal to a target matrix element, lighting up the target matrix element and recording the lighting time;

[0128] If it is detected that the lighting time reaches the corresponding scanning time, a second control signal is sent to the target matrix element to turn off the target matrix element, and the next row of the scanning matrix is ​​set as the current row / column.

[0129] In some optional implementations, the second processing module 503 is further configured to:

[0130] During each pass through the scan matrix, the following operations are performed:

[0131] Scan the target matrix elements of each row / column in sequence. If it is detected that the lighting times of the target matrix element have not reached the corresponding scanning times, light up the target matrix element once and update the lighting times.

[0132] If it is detected that there is a target matrix element in the scan matrix whose lighting times do not reach the corresponding scan times, the next round of traversal of the scan matrix is ​​entered.

[0133] In some optional implementations, the second processing module 503 is further configured to:

[0134] Sending a first control signal to a target matrix element, lighting up the target matrix element and recording the lighting time;

[0135] If it is detected that the lighting time reaches the first preset time, a second control signal is sent to the target matrix element to turn off the target matrix element.

[0136] In some optional implementations, the second processing module 503 is further configured to:

[0137] sending a low level signal to the cathode of the target matrix element and sending a high level signal to the anode of the target matrix element;

[0138] In some optional implementations, the second processing module 503 is further configured to:

[0139] Sends a low signal to the cathode and anode of the target matrix element.

[0140] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0141] The icon display brightness control device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0142] The embodiment of the present invention also provides an electrical device having the above Figure 5 The icon shown shows a brightness control device. Exemplarily, the electrical device is a water purifier.

[0143] See also Figure 6 , Figure 6 is a schematic diagram of the structure of an electrical device provided by an optional embodiment of the present invention, such as Figure 6 As shown, the electrical device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electrical device, including instructions stored in or on the memory to display graphical information of a GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 10 is taken as an example.

[0144] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0145] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0146] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electrical device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the electrical device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0147] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0148] The electrical device further includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.

[0149] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the electrical device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.

[0150] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0151] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0152] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A method for controlling icon display brightness, characterized in that: The method comprises: Obtaining the scanning matrix of the screen and the target display brightness corresponding to each icon; wherein each screen pixel occupied by the icon corresponds to a different target matrix element in the scanning matrix; According to the target display brightness of the icon, the scanning time or scanning times of the target matrix element is obtained; During the scanning process of the scanning matrix, the target matrix elements are controlled to light up according to the scanning time or the number of scans, so that each icon reaches the corresponding target display brightness.

2. The method according to claim 1, characterized in that In the scanning process of the scanning matrix, controlling the target matrix element to light up according to the scanning time or the scanning number includes: In each scanning cycle of the scanning matrix, the scanning matrix is ​​traversed once and the lighting time of each target matrix element reaches the corresponding scanning time; Alternatively, in each scanning cycle of the scanning matrix, the scanning matrix is ​​traversed for multiple rounds and the number of lighting times of each target matrix element after the multiple rounds of traversal reaches the corresponding scanning times.

3. The method according to claim 2, characterized in that The step of traversing the scan matrix once and making the lighting time of each target matrix element reach the corresponding scan time includes: For the current row / column of the scan matrix, do the following: Sending a first control signal to a target matrix element, lighting up the target matrix element and recording the lighting time; If it is detected that the lighting time reaches the corresponding scanning time, a second control signal is sent to the target matrix element to turn off the target matrix element, and the next row of the scanning matrix is ​​set as the current row / column.

4. The method according to claim 2, characterized in that: The method of performing multiple rounds of traversal on the scanning matrix and making each target matrix element light up a number of times after the multiple rounds of traversal to reach a corresponding number of scanning times includes: During each pass through the scan matrix, the following operations are performed: Scan the target matrix elements of each row / column in sequence. If it is detected that the lighting times of the target matrix elements have not reached the corresponding scanning times, light up the target matrix elements once and update the lighting times. If it is detected that there is a target matrix element in the scan matrix whose lighting times do not reach the corresponding scan times, the next round of traversal of the scan matrix is ​​entered.

5. The method according to claim 4, characterized in that The step of lighting up the target matrix element once comprises: Sending a first control signal to a target matrix element, lighting up the target matrix element and recording the lighting time; If it is detected that the lighting time reaches the first preset time, a second control signal is sent to the target matrix element to turn off the target matrix element.

6. The method according to claim 3 or 5, characterized in that: The sending of a first control signal to a target matrix element comprises: sending a low level signal to the cathode of the target matrix element and sending a high level signal to the anode of the target matrix element; The sending of a second control signal to the target matrix element comprises: Sends a low signal to the cathode and anode of the target matrix element.

7. The method according to any one of claims 1 to 5, characterized in that Get the target display brightness corresponding to each icon on the screen, including: In response to a user's interactive instruction for a first icon, a target display brightness of the first icon is configured as a first display brightness, and a target display brightness of a second icon is configured as a second display brightness; wherein the second icon is an icon other than the first icon, and the second display brightness is less than the first display brightness; If no user interaction instruction is received within the second preset time, the target display brightness of each icon is configured to be a third display brightness; wherein the third display brightness is lower than the second display brightness.

8. An icon display brightness control device, characterized in that: The device comprises: An acquisition module, used to acquire the scanning matrix of the screen and the target display brightness corresponding to each icon; wherein each screen pixel occupied by the icon corresponds to a different target matrix element in the scanning matrix; A first processing module, used to obtain a scanning time or scanning times of a target matrix element according to a target display brightness of the icon; The second processing module is used to control the lighting of the target matrix elements according to the scanning time or the number of scans during the scanning process of the scanning matrix, so that each icon reaches the corresponding target display brightness.

9. An electrical device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the icon display brightness control method according to any one of claims 1 to 7 by executing the computer instructions.

10. The device according to claim 9, characterized in that The electrical equipment is a water purifier.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the icon display brightness control method according to any one of claims 1 to 7.