A method, device, equipment and medium for realizing light effect of intelligent lamp

By integrating the control data and power supply voltage value of the layer array in smart lamps, the problem of difficulty in realizing light effects and poor effects of smart lamps is solved, efficient and cool light effect display is achieved, and the development process is simplified.

CN115915543BActive Publication Date: 2024-08-30APUTURE IMAGING IND CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211494211.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-25
Publication Date
2024-08-30
Estimated Expiration
2042-11-25

AI Technical Summary

Technical Problem

The light effect of existing smart lamps is difficult to achieve and the effect is not good, and cannot meet the needs of advanced light effect display.

Method used

By using memory and pixel units of multiple colors in smart lamps, integrating the control data of at least two layer arrays, and comparing the integrated supply voltage value with the preset upper limit value, the luminous state of the pixel unit is controlled to achieve the target light effect.

Benefits of technology

It simplifies the light effect implementation process, makes the designed light effect more cool and stable, quickly modifies processing parameters, and saves development time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115915543B
    Figure CN115915543B
Patent Text Reader

Abstract

The present application discloses a method, device, equipment and medium for realizing the light effect of a smart lamp. The smart lamp includes a memory and pixel units of multiple colors. The memory stores at least two layer arrays. The layer array includes control data for controlling the light-emitting state of corresponding pixel units. The method includes the steps of: integrating the control data in the at least two layer arrays to obtain a target layer array; comparing the integrated power supply voltage value in the target layer array with a preset upper limit value, and controlling the light-emitting state of the corresponding pixel unit according to the comparison result. The present application solves the pain points of the difficulty in realizing point-controlled light effect and the poor effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of lamps, and further to a method, device, equipment and medium for realizing light effects of smart lamps. Background Art

[0002] With the development of science and technology and the progress of society, lamps are no longer just lighting tools. All walks of life have higher and higher requirements for the effect and display methods of lighting display. Traditional simple lighting interaction has gradually lost its appeal to the audience. Since smart lamps can finely control the LED lights at a certain point or a certain row, smart lamps have motion properties compared to ordinary lamps, which makes them more interesting.

[0003] The lighting effects of smart lamps on the market are currently packaged in a fixed order and pixel count to create the lighting effects of the application layer.

[0004] Therefore, a new light efficiency driving solution is needed to reduce the difficulty in achieving light efficiency and poor results of smart lamps. Summary of the invention

[0005] The purpose of this application is to provide a method, device, equipment and medium for realizing the light effect of a smart lamp, so as to solve the pain points of difficulty in realizing point-controlled light effect and poor effect.

[0006] In a first aspect, to achieve the above-mentioned purpose, an embodiment of the present application provides a method for realizing light effect of a smart lamp, wherein the smart lamp comprises a memory and pixel units of multiple colors, wherein the memory stores at least two layer arrays, and the layer arrays comprise control data for controlling the light emitting state of corresponding pixel units, comprising the steps of:

[0007] Integrate the control data in the at least two layer arrays to obtain a target layer array;

[0008] The integrated supply voltage value in the target layer array is compared with a preset upper limit value, and the light emitting state of the corresponding pixel unit is controlled according to the comparison result.

[0009] In a second aspect, to achieve the above-mentioned purpose, an embodiment of the present application provides a light effect realization device of a smart lamp, wherein the smart lamp includes a memory and pixel units of multiple colors, wherein the memory stores at least two layer arrays, wherein the layer arrays include control data for controlling the light emitting state of corresponding pixel units, and the light effect realization device includes:

[0010] A layer integration module, used for integrating the control data in the at least two layer arrays to obtain a target layer array;

[0011] The light effect control module is used to compare the integrated power supply voltage value in the target layer array with a preset upper limit value, and control the light emitting state of the corresponding pixel unit according to the comparison result.

[0012] In a third aspect, to achieve the above-mentioned purpose, an embodiment of the present application provides an electronic device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the memory is coupled to the processor, and when the processor executes the computer program, the steps in the light effect realization method of the smart lamp are realized.

[0013] In a fourth aspect, to achieve the above-mentioned purpose, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the steps in the method for realizing the light effect of the smart lamp.

[0014] The embodiments of the present application provide a method, device, equipment and medium for realizing the light effect of a smart lamp, which solves the pain points of difficulty in realizing point-controlled light effect and poor effect by separating the data processing at the bottom layer and the effect realization at the application layer in the light effect processing. The present application can make the realization of light effect extremely simple, so when designing light effect, more energy can be put into the realization of light effect, which can make the light effect very cool and stable, and if there are processing parameters that need to be modified, the modification can be completed very quickly, saving development time. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The preferred implementation scheme will be described below in a clear and understandable manner with reference to the accompanying drawings to further illustrate the above-mentioned characteristics, technical features, advantages and implementation methods of the present application.

[0016] Figure 1 A schematic diagram of a process for realizing a light effect of a smart lamp provided in an embodiment of the present application;

[0017] Figure 2 A schematic diagram of the internal structure of a smart lamp provided in an embodiment of the present application;

[0018] Figure 3 A flowchart of the initialization setting process in the light effect realization method of the smart lamp provided in the embodiment of the present application;

[0019] Figure 4 A schematic diagram of the animation light effect of the curtain opening and closing process realized by each pixel unit of the smart lamp provided in the embodiment of the present application;

[0020] Figure 5A schematic diagram of each pixel unit of the smart lamp provided in an embodiment of the present application realizing an animation light effect after the curtains are closed;

[0021] Figure 6 Another flowchart of the method for realizing the light effect of the smart lamp provided in the embodiment of the present application;

[0022] Figure 7 Another flowchart of the method for realizing the light effect of the smart lamp provided in the embodiment of the present application;

[0023] Figure 8 Another flowchart of the method for realizing the light effect of the smart lamp provided in the embodiment of the present application;

[0024] Fig. 9 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention;

[0025] Fig.10 A schematic diagram of light effect mixing corresponding to pixel units of different layer arrays provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0027] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections.

[0028] In order to simplify the drawings, only the parts related to the present application are schematically shown in each figure, and they do not represent the actual structure of the product. In addition, in order to simplify the drawings and facilitate understanding, in some figures, only one of the parts with the same structure or function is schematically drawn or marked. In this article, "one" not only means "only one", but also means "more than one".

[0029] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0030] In addition, in the description of the present application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0031] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the specific implementation methods of the present application will be described below with reference to the accompanying drawings. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings and other implementation methods can be obtained based on these drawings without creative work.

[0032] See also Figure 1 , Figure 1 A flowchart of a method for realizing light effects of a smart lamp provided in an embodiment of the present application is shown in FIG. Figure 2 The internal structure diagram of the smart lamp provided in the embodiment of the present application is as follows. The smart lamp includes a memory (not shown) and pixel units 120 of multiple colors. The memory stores at least two layer arrays. The layer arrays include control data for controlling the light-emitting state of the corresponding pixel units 120. The light effect realization method of the smart lamp includes the following steps:

[0033] S101 integrates the control data in the at least two layer arrays to obtain a target layer array.

[0034] In an embodiment of the present application, the smart lamp includes a memory, a processor and an LED display screen, and the LED display screen includes a substrate and pixel units 120 of multiple colors, wherein the pixel units 120 of multiple colors are arranged on the substrate. The memory stores at least two layer arrays, and at least two layer arrays each include control data for controlling the light-emitting state of the corresponding pixel unit 120. The processor calls the control data in at least two layer arrays stored in the memory, and integrates the control data in at least two layer arrays to obtain a target layer array, that is, the control data in any layer data is superimposed or accumulated with the control data in another layer data, and so on, the control data in all layer data are superimposed or accumulated to obtain a target layer array including integrated control data. The control data and integrated control data in the present application include the value of the integrated power supply voltage value used to drive the pixel unit 120 to control its light-emitting state, and the identity information of the pixel unit 120 under its jurisdiction (hereinafter collectively referred to as identity ID).

[0035] The light source emitted by the same pixel unit 120 has the same color, and the pixel unit 120 includes one or more light-emitting diodes (or lamp beads or pixels) that emit the same color of light source. The same color in this application can be understood as different wavelength levels refined within the corresponding color spectrum band, such as colors with visual differences recognized by the human eye or machine, but it should still be understood that the same color in this application, taking blue as an example, light blue, dark blue, indigo light, etc. can all be blue light.

[0036] In some embodiments of the present application, the substrate 110 may have many shapes, such as square, rectangular, etc., arranged in a matrix array, as well as circular, polygonal, elliptical, etc. non-matrix array arrangements, or other regular or irregular shapes, which are not specifically limited here. The multiple pixel units 120 may be arranged in many shapes on the substrate 110, such as square, rectangular, etc., arranged in a matrix array, as well as circular, polygonal, elliptical, etc. non-matrix array arrangements, or other regular or irregular shapes, which are not specifically limited here. Among them, non-matrix array arrangement refers to an arrangement that is not regularly arranged in a row and column alignment manner. For example, Figure 2 The figure shows a plurality of pixel units 120 arranged in a circular shape (a type of non-matrix array).

[0037] The pixel units 120 of multiple colors include one or more lamp beads that emit light of different colors, and one pixel unit 120 includes one or more lamp beads that emit light of the same color. Figure 2 As shown, the pixel units 120 of multiple colors may include blue light beads PB (referred to as B), green light beads PA1 (referred to as G), red light beads PA2 (referred to as R), cyan light beads PA3 (referred to as C), lemon light beads PA4, amber light beads PA5, etc. In some embodiments, the blue light beads PB, green light beads PA1, red light beads PA2, cyan light beads PA3, lemon light beads PA4, and amber light beads PA5 have the same size, and of course different sizes may be used, which is not limited here.

[0038] S102 compares the integrated supply voltage value in the target layer array with a preset upper limit value, and controls the light emitting state of the corresponding pixel unit 120 according to the comparison result.

[0039] In the embodiment of the present application, the preset upper limit value is the rated voltage of the lamp bead in the pixel unit 120, and the rated voltage is the voltage applicable to the lamp bead when it works for a long time, and the memory also stores the preset upper limit value. Since the integrated control data includes the power supply voltage value used to drive the pixel unit 120 to control its light-emitting state, and the identity ID of the pixel unit 120 under control, after obtaining the target layer array in the above manner, the processor compares the power supply voltage value of different identity IDs in the integrated control data with the preset upper limit value, and then controls the light-emitting state of the pixel unit 120 corresponding to the identity ID according to the comparison result.

[0040] See also Figure 3 , Figure 3 A flow chart of the initialization setting process in the light effect realization method of the smart lamp provided in the embodiment of the present application includes the following steps:

[0041] S301 sets the number of overlapping pixel units 120 that intersect at corresponding normals at different positions at each moment according to target light effect information.

[0042] In the embodiment of the present application, users or employees of the manufacturer of the smart lamp can directly select the lighting effect of the multi-pixel unit 120 smart lamp to obtain the corresponding target lighting effect information. The target lighting effect information refers to the description information of the lighting effect customized according to business needs, and the target lighting effect information includes static lighting effects and dynamic lighting effects. The dynamic lighting effects include but are not limited to dynamically changing animation effects such as curtain animation effects, flashing animation effects, flowing water animation effects, flame animation effects, or gradient animation effects.

[0043] Different lighting effects require the cooperation of multiple pixel units 120 on the substrate to be realized. Therefore, after obtaining the target lighting effect information, the total number of pixel units 120 intersecting and overlapping at the normal corresponding to the same position on the substrate at a certain moment is set according to the lighting effect customized by the target lighting effect information. Figure 4 As shown, PA1-PA6 are pixel units 120 corresponding to the first layer data group, and PB is pixel unit 120 corresponding to the second layer data frame. If the lighting effect is an animation effect of curtains being opened and closed, then refer to Figures 4 to 5 At this time, the pixel units 120 that intersect and overlap at the normal line L1 corresponding to a certain position S1 (not shown in the figure) at a certain time t1 include PA1-PA6 and PB. Therefore, the number of overlapping pixel units 120 at the normal line L1 corresponding to a certain position S1 of the substrate at time t1 is 7. Similarly, the number of overlapping pixel units 120 that intersect and overlap at the normal lines corresponding to other positions on the substrate at time t1 can be obtained. By analogy, the number of overlapping pixel units 120 that intersect at the normal lines corresponding to different positions at different times can be obtained according to the target light effect information.

[0044] S302 obtains the maximum value of all the stacking quantities at the same time, and sets the number of layers of the layer array according to the maximum value.

[0045] In an embodiment of the present application, after obtaining the overlapping number of pixel units 120 that intersect at the corresponding normals at different positions at each moment through step S301, the sizes of all overlapping numbers at the same moment can be compared, so as to screen out the maximum value of all overlapping numbers at the same moment, so as to set the number of layers M of the layer array according to this maximum value.

[0046] Assume that at a certain position S1 of the substrate at time t1, the number of superimposed pixel units 120 corresponding to the normal line L1 is 7, at a certain position S2 of the substrate at time t1, the number of superimposed pixel units 120 corresponding to the normal line L1 is 5, and at a certain position S3 of the substrate at time t1, the number of superimposed pixel units 120 corresponding to the normal line L1 is 8. It can be relatively determined that the maximum value of all superimposed numbers at the same time is 8. Therefore, the number of layers in the layer array M=8.

[0047] S303 sets the layer attributes of each layer array according to the target light effect information and the number of layers; the layer attributes include an accumulation layer and a canvas layer.

[0048] The accumulation layer array includes dynamic control data for controlling the pixel unit 120 to produce a dynamic movement effect; and the canvas layer array includes default control data for controlling the pixel unit 120 .

[0049] In the embodiment of the present application, the pixel units controlled by the dynamic control data in the accumulation layer array belong to dynamic pixel units, and the pixel units controlled by the default control data in the canvas layer array belong to canvas pixel units. The accumulation layer array includes dynamic control data for controlling the pixel units 120 to produce dynamic movement effects, and the canvas layer array includes default control data for controlling the pixel units 120. The default control data in the canvas layer array only defines the initial value and does not control the corresponding pixel units to control the light-emitting state.

[0050] like Fig.10 As shown, the light shape and / or luminous brightness of the corresponding light source emitted by the dynamic pixel unit controlled by the dynamic control data in the accumulated layer array is constantly changing at different times. In this way, when the pixel units at different levels of the smart lamp emit light, the lights emitted by the dynamic pixel units corresponding to the multiple accumulated layers, i.e., the accumulated layer arrays, are mixed, thereby obtaining another lighting effect.

[0051] The target light effect information also includes lighting instructions, which include lighting time and lighting interval. In an embodiment of the present application, each layer attribute can be set to an accumulated layer array, a canvas layer array or a supplementary layer array according to the lighting instructions, static lighting effects and dynamic lighting effects in the target light effect information, and according to the lighting instructions, static lighting effects, dynamic lighting effects and the number of layers.

[0052] In some embodiments, the step of integrating the control data in the at least two layer arrays to obtain a target layer array comprises the following steps:

[0053] The dynamic control data at the corresponding position in each accumulated layer array is sequentially superimposed on the default control data at the corresponding position in the canvas layer array to obtain the target layer array.

[0054] See also Figure 6 , Figure 6 Another flowchart of the method for realizing the light effect of the smart lamp provided in the embodiment of the present application includes the following steps:

[0055] S401 superimposes the dynamic control data at the corresponding position in the current accumulation layer array and the default control data at the corresponding position in the canvas layer array to obtain integrated control data.

[0056] In an embodiment of the present application, like the integrated control data, the dynamic control data includes the identity ID corresponding to the dynamic pixel unit, and the dynamic supply voltage value used to drive different dynamic pixel units to control their light-emitting states. In addition, the default control data includes the identity ID corresponding to the canvas pixel unit, and the default supply voltage value used to drive different canvas pixel units to control their light-emitting states. For ease of expression, the dynamic pixel unit is represented by PA, and the lamp beads corresponding to the canvas pixel unit are represented by PB. It should be noted that different identity IDs are associated with the positions of the lamp beads in each dynamic pixel unit, and different identity IDs are associated with the positions of the lamp beads in the canvas pixel unit.

[0057] For example, it is assumed that the substrate includes only one dynamic pixel unit and one canvas pixel unit, that is, there are only two stacked rows and columns of lamp beads on the substrate. If the following Table 1 lists the default supply voltage values ​​of the lamp beads at different positions in the canvas pixel unit with N rows and M columns. The following Table 2 lists the dynamic supply voltage values ​​of the lamp beads at different positions in the dynamic pixel unit with N rows and M columns.

[0058] Column 1 Column 2 Column 3 Column 4 …… Column M Row 1 <![CDATA[U PB 11]]> <![CDATA[U PB 21]]> <![CDATA[U PB 13]]> <![CDATA[U PB 14]]> …… <![CDATA[U PB 1M]]> Row 2 <![CDATA[U PB 21]]> <![CDATA[U PB 22]]> <![CDATA[U PB 23]]> <![CDATA[U PB 24]]> …… <h2 style=";text-align:left;direction:ltr"><![CDATA[U <h2 style=";text-align:left;direction:ltr"> PB <h2 style=";text-align:left;direction:ltr"> 2M]]><h2 style=";text-align:left;direction:ltr"> …… …… …… …… …… …… …… Row N <![CDATA[U PB N1]]> <![CDATA[U PB N2]]> <h2 style=";text-align:left;direction:ltr"><![CDATA[U <h2 style=";text-align:left;direction:ltr"> PB <h2 style=";text-align:left;direction:ltr"> N3]]><h2 style=";text-align:left;direction:ltr"> <![CDATA[U PB N4]]> …… <![CDATA[U PB NM]]>

[0059] Table 1. Default supply voltage values ​​of the lamp beads at different positions in the canvas pixel unit of N rows and M columns

[0060] Column 1 Column 2 Column 3 Column 4 …… Column M Row 1 <![CDATA[U PA 11]]> <![CDATA[U PA 21]]> <![CDATA[U PA 13]]> <![CDATA[U PA 14]]> …… <![CDATA[U PA 1M]]> Row 2 <![CDATA[U PA 21]]> <![CDATA[U PA 22]]> <![CDATA[U PA 23]]> <![CDATA[U PA 24]]> …… <h2 style=";text-align:left;direction:ltr"><![CDATA[U <h2 style=";text-align:left;direction:ltr"> PA <h2 style=";text-align:left;direction:ltr"> 2M]]><h2 style=";text-align:left;direction:ltr"> …… …… …… …… …… …… …… Row N <![CDATA[U PA N1]]> <![CDATA[U PA N2]]> <h2 style=";text-align:left;direction:ltr"><![CDATA[U <h2 style=";text-align:left;direction:ltr"> PA <h2 style=";text-align:left;direction:ltr"> N3]]><h2 style=";text-align:left;direction:ltr"> <![CDATA[U PA N4]]> …… <![CDATA[U PA NM]]>

[0061] Table 2. Dynamic supply voltage values ​​of lamp beads at different positions in the dynamic pixel unit with N rows and M columns

[0062] Then, the default power supply voltage value of the corresponding lamp bead in the canvas pixel unit with the same plane position but different spatial position, and the dynamic power supply voltage value of the corresponding lamp bead in the dynamic pixel unit, that is, the default power supply voltage value of the corresponding lamp bead in the canvas pixel unit with the same X-axis and Y-axis coordinates but different Z-axis coordinates, and the dynamic power supply voltage value of the corresponding lamp bead in the dynamic pixel unit are accumulated to obtain the sum of the corresponding lamp bead, which is the integrated power supply voltage value of this embodiment, and the integrated power supply voltage value is bound to the identity ID of the lamp bead at the corresponding position, so that the mapping relationship between the integrated power supply voltage value of the lamp bead at different positions and the lamp bead position (or identity ID) is the integrated control data. For example, the identity ID of the lamp bead in the first row and first column of the canvas pixel unit is LED1, and the default power supply voltage value of the lamp bead is U PB 11. The ID of the lamp bead in the first row and first column of the dynamic pixel unit is LED1, and the dynamic supply voltage value of the lamp bead is U PA 11, then, for this lamp bead, its integrated control data is that the ID of the lamp bead in the first row and the first column is LED1 and its integrated supply voltage value is SU11=U PB 11+U PA 11.

[0063] S402 determines whether the integrated supply voltage value at the current position in the integrated control data is equal to a default value.

[0064] In the embodiment of the present application, the default value can be a preset voltage default value for driving the lamp beads, and the voltage default value is actually impossible to reach (that is, a value that does not actually exist and cannot drive the lamp beads), similar to an overload value. After the integrated control data is obtained in the above manner, the integrated power supply voltage value of the lamp beads at the corresponding position of each identity ID in the integrated control data is judged in turn and compared with the default value.

[0065] S403: If the integrated power supply voltage value at the current position is equal to the default value, the integrated power supply voltage value is replaced by the dynamic power supply voltage value at the corresponding position in the current accumulation layer array.

[0066] S404: If the integrated supply voltage value at the current position is not equal to the default value, the integrated supply voltage value is replaced with the added supply voltage value.

[0067] In an embodiment of the present application, if the integrated power supply voltage value at the current position is equal to the default value, the integrated power supply voltage value at the current position is replaced and updated with the dynamic power supply voltage value at the current position in the current accumulated layer array. Of course, if the integrated power supply voltage value at the current position is not equal to the default value, the integrated power supply voltage value at the current position is replaced and updated with the sum of the dynamic power supply voltage value at the current position in the current accumulated layer array and the dynamic power supply voltage value corresponding to the current position. Then, switch to determine whether the integrated power supply voltage value at the next position in the current integrated control data (i.e., the integrated control data obtained by superimposing the dynamic control data at the corresponding position in the current accumulated layer array and the default control data at the corresponding position in the canvas layer array) is equal to the default value, and refer to the above process to update the integrated control data at other positions in the current integrated control data to obtain the initial target layer array.

[0068] S405 updates all the integrated control data to obtain the target layer array, superimposes the next accumulated layer array and updates the integrated control data in the target layer array until all accumulated layer arrays are superimposed to obtain the latest target layer array.

[0069] In an embodiment of the present application, referring to S401-S404, the dynamic control data at the corresponding position in the current accumulated layer array is superimposed with the default control data at the corresponding position in the canvas layer array to obtain the initial target layer array, and then the other accumulated layer arrays are sequentially integrated into the initial target layer array to continue updating the integrated control data until all accumulated layers are integrated to obtain the final and latest target accumulated layer array.

[0070] See also Figure 7 , Figure 7 Another flowchart of the method for realizing the light effect of the smart lamp provided in the embodiment of the present application includes the following steps:

[0071] S501 superimposes the static control data at the corresponding position in the current supplementary layer array and the default control data at the corresponding position in the canvas layer array to obtain integrated control data.

[0072] In the embodiment of the present application, like the integrated control data, the static control data includes the identity ID corresponding to the static pixel unit and the static supply voltage value used to drive different static pixel units to control their light-emitting states. For ease of description, the static pixel unit is represented by PC. It should be noted that different identity IDs are associated with the positions of the lamp beads in each static pixel unit.

[0073] The first case is: the default power supply voltage value of the corresponding lamp bead in the canvas pixel unit with the same plane position but different spatial position, and the static power supply voltage value of the corresponding lamp bead in the static pixel unit, that is, the default power supply voltage value of the corresponding lamp bead in the canvas pixel unit with the same X-axis and Y-axis coordinates but different Z-axis coordinates, and the static power supply voltage value of the corresponding lamp bead in the static pixel unit are added up to obtain the sum of the corresponding lamp beads, which is the integrated power supply voltage value of this embodiment, and the integrated power supply voltage value is bound to the identity ID of the lamp bead at the corresponding position, so that the mapping relationship between the integrated power supply voltage value of the lamp beads at different positions and the lamp bead position (or identity ID) is the integrated control data.

[0074] The static pixel units controlled by the static control data in the supplementary layer array emit lights of corresponding colors, which is equivalent to the bottom-level background layer. As we all know, as the bottom layer in the layer palette, the background layer is always locked (protected), which means that its stacking order, luminous brightness and luminous color cannot be changed. Therefore, the luminous color and light shape of the corresponding light source emitted by the static pixel units controlled by the static control data in the supplementary layer array do not change at different times. In this way, when the pixel units at different levels of the smart lamp emit light, the lights emitted by the static pixel units corresponding to the multiple supplementary layer arrays only have the background colors of light sources of different colors mixed, thereby obtaining a static mixed light or static combined light effect.

[0075] The second situation is: the default power supply voltage value corresponding to the lamp bead in the canvas pixel unit with the same plane position but different spatial position, the dynamic power supply voltage value corresponding to the lamp bead in the dynamic pixel unit, and the static power supply voltage value corresponding to the lamp bead in the static pixel unit, that is, the default power supply voltage value corresponding to the lamp bead in the canvas pixel unit with the same X-axis and Y-axis coordinates but different Z-axis coordinates, the dynamic power supply voltage value corresponding to the lamp bead in the dynamic pixel unit, and the static power supply voltage value corresponding to the lamp bead in the static pixel unit are added up to obtain the sum of the corresponding lamp beads, which is the integrated power supply voltage value of this embodiment, and the integrated power supply voltage value is bound to the identity ID of the lamp bead at the corresponding position, so that the mapping relationship between the integrated power supply voltage value of the lamp bead at different positions and the lamp bead position (or identity ID) is the integrated control data.

[0076] Of course, when the pixel units at different levels of the smart lamp emit light, the light emitted by the dynamic pixel units corresponding to the upper layer, i.e., the multiple cumulative layer arrays, and the light emitted by the static pixel units corresponding to the lower layer, i.e., the multiple supplementary layer arrays, are mixed, thereby obtaining a dynamic and static mixed light changing lighting effect.

[0077] S502 determines whether the integrated supply voltage value at the current position in the integrated control data is equal to a default value;

[0078] In the embodiment of the present application, the default value can be a preset voltage default value for driving the lamp beads, and the voltage default value is actually impossible to reach (that is, a value that does not actually exist and cannot drive the lamp beads), similar to an overload value. After the integrated control data is obtained in the above manner, the integrated power supply voltage value of the lamp beads at the corresponding position of each identity ID in the integrated control data is judged in turn and compared with the default value.

[0079] S503: if the integrated power supply voltage value at the current position is equal to the default value, replacing the integrated power supply voltage value with the static power supply voltage value corresponding to the current position in the current supplementary layer array;

[0080] S504: if the integrated power supply voltage value at the current position is not equal to the default value, determining whether the integrated power supply voltage value at the next position in the integrated control data is equal to the default value;

[0081] In an embodiment of the present application, if the integrated power supply voltage value at the current position is equal to the default value, the integrated power supply voltage value at the current position is replaced and updated with the static power supply voltage value at the current position in the current supplementary layer array. Of course, if the integrated power supply voltage value at the current position is not equal to the default value, the integrated power supply voltage value at the current position is replaced and updated with the sum of the static power supply voltage value at the current position in the current supplementary layer array and the static power supply voltage value corresponding to the current position. Then, switch to determine whether the integrated power supply voltage value at the next position in the current integrated control data (i.e., the integrated control data obtained by superimposing the static control data at the corresponding position in the current supplementary layer array and the default control data at the corresponding position in the canvas layer array) is equal to the default value, and refer to the above process to update the integrated control data at other positions in the current integrated control data to obtain the initial target layer array.

[0082] S505 updates all the integrated control data to obtain the target layer array, superimposes the next supplementary layer array and updates the integrated control data in the target layer array until all the supplementary layer arrays are superimposed to obtain the latest target layer array.

[0083] In an embodiment of the present application, referring to S501-S504, the static control data at the corresponding position in the current supplementary layer array is superimposed with the default control data at the corresponding position in the canvas layer array to obtain the initial target layer array, and then the other supplementary layer arrays are sequentially integrated into the initial target layer array to continue updating the integrated control data until all supplementary layers are integrated to obtain the final and latest target supplementary layer array.

[0084] This application separates the data processing of the bottom layer from the realization of the light effect of the application layer. This solution introduces the bottom layer data processing method. By extracting the common characteristics of different point-controlled light effects and processing them separately, this greatly enhances the versatility of this method. When realizing a specific light effect, the basic parameters are first set according to the specific light effect, that is, according to the maximum number of pixel units (one effect unit) superimposed at the same time and the same position, it is explained how many layers are required for data processing for this light effect, thereby setting the number of layers in the layer array. After determining the number of layers, the layer attributes are assigned. There are two types of layer attributes in this solution: cumulative layer - mounting moving pixels, that is, dynamic pixel units. An cumulative layer can mount multiple independent dynamic pixel units; supplementary layer - mounting static pixels, that is, static pixel units, such as the background color of the light effect. Each pixel unit is mounted on the layer of the corresponding attribute in turn. For the specific light effect processing, this solution will not be introduced in detail. What needs to be introduced is that after the specific single light effect processing is completed, the output values ​​(that is, the power supply voltage values) corresponding to all pixels at this time have been assigned to the corresponding layer, waiting for the next step of processing.

[0085] The present application drives multiple pixel units 120 in the smart lamp at each moment to perform light effect transformation according to lighting instructions, static light effects and dynamic light effects through the integrated control data in the target layer array, thereby quickly realizing customized light effect control of multi-pixel units and completing dynamic display of multi-pixel light effects quickly and efficiently.

[0086] See also Figure 8 , Figure 8 Another flowchart of the method for realizing the light effect of the smart lamp provided in the embodiment of the present application includes the following steps:

[0087] S601 traverses and compares all integrated power supply voltage values ​​in the integrated control data with the preset upper limit value to determine whether there is an integrated power supply voltage value exceeding the preset upper limit value;

[0088] S602: If there is no integrated power supply voltage value exceeding the preset upper limit value, directly controlling the light emitting state of the corresponding pixel unit 120 at each position according to the integrated power supply voltage value in the target layer array;

[0089] S603: if there is an integrated power supply voltage value exceeding the preset upper limit value, searching for the maximum integrated power supply voltage value from the target layer array;

[0090] S604 proportionally lowers all integrated power supply voltage values ​​in the target layer array according to the proportional relationship between the preset upper limit value and the maximum integrated power supply voltage value;

[0091] S605 controls the light emitting state of the pixel unit 120 corresponding to each position according to the adjusted integrated supply voltage value.

[0092] In an embodiment of the present application, after a plurality of accumulated layer arrays are superimposed and integrated to obtain a target layer array, or after an accumulated layer array and a supplementary layer array are superimposed and integrated to obtain a target layer array, data over-limit processing is performed on the integrated power supply voltage value in the corresponding target layer array, that is, the target layer data is traversed by pixel units. If the maximum value of the output value in each channel of the pixel unit, that is, the integrated power supply voltage value, exceeds the preset upper limit value, the threshold of the channel of the maximum value of the output of this lamp bead is set to the preset upper limit value, and other channels are corrected proportionally.

[0093] This application solves the pain points of difficulty in achieving point-controlled light effects and poor effects by separating the underlying data processing and the application-layer effect realization in light effect processing. This application can make the realization of light effects extremely simple, so when designing light effects, more energy can be spent on the realization of light effects, making the light effects very cool and stable, and if there are processing parameters that need to be modified, the modification can be completed very quickly, saving development time.

[0094] The present embodiment provides a light effect realization device for a smart lamp, the smart lamp includes a memory and pixel units of multiple colors, the memory stores at least two layer arrays, the layer arrays include control data for controlling the light emitting state of corresponding pixel units, and the light effect realization device includes:

[0095] A layer integration module, used for integrating the control data in the at least two layer arrays to obtain a target layer array;

[0096] The light effect control module is used to compare the integrated power supply voltage value in the target layer array with a preset upper limit value, and control the light emitting state of the corresponding pixel unit according to the comparison result.

[0097] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation of the above modules can be found in the previous method embodiments, which will not be repeated here.

[0098] In some other embodiments, an embodiment of the present invention provides an electronic device, the electronic device includes a processor and a memory, wherein the processor is electrically connected to the memory.

[0099] The processor is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or loading applications stored in the memory and calling data stored in the memory, thereby monitoring the electronic device as a whole.

[0100] In this embodiment, the processor in the electronic device will load instructions corresponding to the processes of one or more application programs into the memory according to the following steps, and the processor will run the application programs stored in the memory to implement various functions:

[0101] Integrate the control data in the at least two layer arrays to obtain a target layer array;

[0102] The integrated supply voltage value in the target layer array is compared with a preset upper limit value, and the light emitting state of the corresponding pixel unit is controlled according to the comparison result.

[0103] The electronic device can implement the steps in any embodiment of the method for realizing light effects of the smart lamp provided in the embodiments of the present invention. Therefore, it can achieve the beneficial effects that can be achieved by any method for realizing light effects of the smart lamp provided in the embodiments of the present invention. For details, please refer to the previous embodiments and will not be repeated here.

[0104] See also Fig. 9 , Fig. 9 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention is shown in FIG. Fig. 9 As shown, Fig. 9 The specific structure of the electronic device provided by the embodiment of the present invention is shown, and the electronic device can be used to implement the light effect realization method of the smart lamp provided in the above embodiment. The electronic device 900 can be a mobile terminal such as a smart phone or a laptop computer.

[0105] The RF circuit 910 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, and thus communicate with a communication network or other devices. The RF circuit 910 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, user identity module (SIM) cards, memories, etc. The RF circuit 910 can communicate with various networks such as the Internet, corporate intranets, wireless networks, or communicate with other devices through wireless networks. The above-mentioned wireless networks may include cellular telephone networks, wireless local area networks, or metropolitan area networks. The above-mentioned wireless networks can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (such as Institute of Electrical and Electronics Engineers standards IEEE.11a, IEEE.11b, IEEE.11g and / or IEEE.11n), Voice over Internet Protocol (VoIP), Worldwide Interoperability for Microwave Access (Wi-Max), other protocols for email, instant messaging and short messages, and any other suitable communication protocols, even those that have not yet been developed.

[0106] The memory 920 may be used to store software programs and modules, such as program instructions / modules corresponding to the light effect realization method of the smart lamp in the above-mentioned embodiment. The processor 980 executes various functional applications and resource accesses by running the software programs and modules stored in the memory 920, that is, realizing the following functions:

[0107] Integrate the control data in the at least two layer arrays to obtain a target layer array;

[0108] The integrated supply voltage value in the target layer array is compared with a preset upper limit value, and the light emitting state of the corresponding pixel unit is controlled according to the comparison result.

[0109] The memory 920 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 920 may further include a memory remotely arranged relative to the processor 980, and these remote memories may be connected to the electronic device 900 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.

[0110] The input unit 930 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 930 may include a touch-sensitive surface 931 and other input devices 932. The touch-sensitive surface 931, also known as a touch display screen or a touchpad, can collect user touch operations on or near it (such as operations performed by users using fingers, styluses, or any other suitable objects or accessories on or near the touch-sensitive surface 931), and drive corresponding connection devices according to a pre-set program. Optionally, the touch-sensitive surface 931 may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 980, and can receive and execute commands sent by the processor 980. In addition, the touch-sensitive surface 931 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 931, the input unit 930 may further include other input devices 932. Specifically, the other input devices 932 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.

[0111] The display unit 940 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device 900, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 940 may include a display panel 941. Optionally, the display panel 941 may be configured in the form of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc. Further, the touch-sensitive surface 931 may cover the display panel 941. When the touch-sensitive surface 931 detects a touch operation on or near it, it is transmitted to the processor 980 to determine the type of touch event, and then the processor 980 provides corresponding visual output on the display panel 941 according to the type of touch event. Although in the figure, the touch-sensitive surface 931 and the display panel 941 are implemented as two independent components to implement input and output functions, in some embodiments, the touch-sensitive surface 931 and the display panel 941 can be integrated to implement input and output functions.

[0112] The electronic device 900 may also include at least one sensor 950, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 941 according to the brightness of the ambient light, and the proximity sensor may generate an interrupt when the flip cover is closed or closed. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that can also be configured in the electronic device 900, they will not be repeated here.

[0113] The audio circuit 960, the speaker 961, and the microphone 962 can provide an audio interface between the user and the electronic device 900. The audio circuit 960 can transmit the electrical signal converted from the received audio data to the speaker 961, which is converted into a sound signal for output; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, which is received by the audio circuit 960 and converted into audio data, and then the audio data is output to the processor 980 for processing, and then sent to another terminal through the RF circuit 910, or the audio data is output to the memory 920 for further processing. The audio circuit 960 may also include an earplug jack to provide communication between an external headset and the electronic device 900.

[0114] The electronic device 900 can help users receive requests, send information, etc. through the transmission module 970 (such as a Wi-Fi module), which provides users with wireless broadband Internet access. Although the transmission module 970 is shown in the figure, it is understandable that it is not a necessary component of the electronic device 900 and can be omitted as needed without changing the essence of the invention.

[0115] The processor 980 is the control center of the electronic device 900. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 920, and calling data stored in the memory 920, it executes various functions of the electronic device 900 and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 980 may include one or more processing cores; in some embodiments, the processor 980 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It can be understood that the above-mentioned modem processor may not be integrated into the processor 980.

[0116] The electronic device 900 also includes a power supply 990 (such as a battery) for supplying power to various components. In some embodiments, the power supply can be logically connected to the processor 980 through a power management system, so that the power management system can manage charging, discharging, and power consumption management. The power supply 990 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.

[0117] Although not shown, the electronic device 900 also includes a camera (such as a front camera, a rear camera), a Bluetooth module, etc., which will not be described in detail here. Specifically in this embodiment, the display unit of the electronic device is a touch screen display, and the mobile terminal also includes a memory, and one or more programs, wherein one or more programs are stored in the memory, and are configured to be executed by one or more processors. One or more programs include instructions for performing the following operations:

[0118] Integrate the control data in the at least two layer arrays to obtain a target layer array;

[0119] The integrated supply voltage value in the target layer array is compared with a preset upper limit value, and the light emitting state of the corresponding pixel unit is controlled according to the comparison result.

[0120] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation of the above modules can be found in the previous method embodiments, which will not be repeated here.

[0121] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling related hardware through instructions, and the instructions can be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present invention provides a computer-readable storage medium, which stores a plurality of instructions, and the instructions can be loaded by a processor to execute the steps of any embodiment of the light effect realization method of the smart lamp provided in the embodiment of the present invention.

[0122] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0123] Since the instructions stored in the computer-readable storage medium can execute the steps in any embodiment of the method for realizing the light effect of the smart lamp provided in the embodiments of the present invention, the beneficial effects that can be achieved by the method for realizing the light effect of any smart lamp provided in the embodiments of the present invention can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0124] The above is a detailed introduction to the light effect realization, device, electronic device and computer-readable storage medium of a smart lamp provided by an embodiment of the present invention. This article uses specific examples to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as limiting the present invention. In addition, for those of ordinary skill in the art, without departing from the principles of the present invention, several improvements and modifications can be made, and these improvements and modifications are also regarded as the protection scope of the present invention.

Claims

1. A method for realizing the light effect of an intelligent lamp, characterized in that: The smart lamp includes a memory and pixel units of multiple colors, the memory stores at least two layer arrays, the layer arrays include control data for controlling the light-emitting state of corresponding pixel units, and includes the steps of: The number of overlapping pixel units intersecting at the corresponding normals at different positions at each moment is set according to the target light effect information; Obtaining the maximum value of all the superposition quantities at the same time, and setting the number of layers of the layer array according to the maximum value; According to the target light effect information and the number of layers, the layer attributes of each layer array are set; the layer attributes include an accumulated layer and a canvas layer; wherein the accumulated layer array includes dynamic control data for controlling the pixel unit to generate a dynamic movement effect; and the canvas layer array includes default control data for controlling the pixel unit; Integrating the control data in the at least two layer arrays to obtain a target layer array; The step of integrating the control data in the at least two layer arrays to obtain a target layer array comprises the following steps: Sequentially superimposing the dynamic control data at the corresponding position in each of the accumulated layer arrays onto the default control data at the corresponding position in the canvas layer array to obtain the target layer array; The integrated supply voltage value in the target layer array is compared with a preset upper limit value, and the light emitting state of the corresponding pixel unit is controlled according to the comparison result.

2. The method for realizing light effect of a smart lamp according to claim 1, characterized in that: The step of sequentially superimposing the dynamic control data at the corresponding positions in each accumulated layer array onto the default control data at the corresponding positions in the canvas layer array to obtain the target layer array comprises the following steps: Superimposing the dynamic control data at the corresponding position in the current accumulation layer array and the default control data at the corresponding position in the canvas layer array to obtain integrated control data; Determining whether the integrated supply voltage value at the current position in the integrated control data is equal to a default value; If the integrated power supply voltage value at the current position is equal to a default value, replacing the integrated power supply voltage value with the dynamic power supply voltage value at the corresponding position in the current accumulation layer array; If the integrated supply voltage value at the current position is not equal to the default value, replacing the integrated supply voltage value with the added supply voltage value; All the integrated control data are updated to obtain the target layer array, a next accumulated layer array is superimposed and the integrated control data in the target layer array is updated until all accumulated layer arrays are superimposed to obtain the latest target layer array; The added supply voltage value is equal to the sum of the dynamic supply voltage value corresponding to the current position and the dynamic supply voltage value corresponding to the current position.

3. The method for realizing light effect of a smart lamp according to claim 1, characterized in that: The layer attributes further include a supplementary layer array, the supplementary layer array including static control data for controlling the pixel unit to produce a static unchanged effect; Superimposing the static control data at the corresponding position in the current supplementary layer array and the default control data at the corresponding position in the canvas layer array to obtain integrated control data; Determining whether the integrated supply voltage value at the current position in the integrated control data is equal to a default value; If the integrated power supply voltage value at the current position is equal to a default value, replacing the integrated power supply voltage value with the static power supply voltage value corresponding to the current position in the current supplementary layer array; If the integrated power supply voltage value at the current position is not equal to the default value, determining whether the integrated power supply voltage value at the next position in the integrated control data is equal to the default value; All the integrated control data are updated to obtain the target layer array, a supplementary layer array is superimposed and the integrated control data in the target layer array is updated until all the supplementary layer arrays are superimposed to obtain the latest target layer array.

4. The method for realizing the light effect of a smart lamp according to any one of claims 2 to 3, characterized in that: The step of comparing the integrated supply voltage value in the target layer array with a preset upper limit value and controlling the light emitting state of the corresponding pixel unit according to the comparison result comprises the following steps: Traversing and comparing all integrated power supply voltage values ​​in the integrated control data with the preset upper limit value, and determining whether there is an integrated power supply voltage value exceeding the preset upper limit value; If there is no integrated supply voltage value exceeding the preset upper limit value, the light emitting state of the corresponding pixel unit at each position is directly controlled according to the integrated supply voltage value in the target layer array.

5. The method for realizing light effect of a smart lamp according to claim 4, characterized in that: Also includes: If there is an integrated power supply voltage value exceeding the preset upper limit value, searching for the maximum integrated power supply voltage value from the target layer array; According to the proportional relationship between the preset upper limit value and the maximum integrated power supply voltage value, all integrated power supply voltage values ​​in the target layer array are proportionally lowered; The light emitting state of the corresponding pixel unit at each position is controlled according to the lowered integrated supply voltage value.

6. A device for realizing light effect of intelligent lamps, characterized in that: The intelligent lamp includes a memory and pixel units of multiple colors, the memory stores at least two layer arrays, the layer arrays include control data for controlling the light-emitting state of corresponding pixel units, and the light effect realization device includes: A layer integration module is used to set the number of pixel units intersecting at the corresponding normals at different positions at each moment according to the target light effect information; obtain the maximum value of all the superposition numbers at the same moment, and set the number of layers of the layer array according to the maximum value; set the layer attributes of each layer array according to the target light effect information and the number of layers; the layer attributes include an accumulated layer and a canvas layer; wherein the accumulated layer array includes dynamic control data for controlling the pixel unit to generate a dynamic movement effect; and the canvas layer array includes default control data for controlling the pixel unit; The layer integration module is further used to integrate the control data in the at least two layer arrays to obtain a target layer array; The integrating the control data in the at least two layer arrays to obtain the target layer array comprises: sequentially superimposing the dynamic control data at the corresponding position in each of the accumulated layer arrays onto the default control data at the corresponding position in the canvas layer array to obtain the target layer array; The light effect control module is used to compare the integrated power supply voltage value in the target layer array with a preset upper limit value, and control the light emitting state of the corresponding pixel unit according to the comparison result.

7. An electronic device, characterized in that: The invention comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the memory is coupled to the processor, and when the processor executes the computer program, the steps in the method for realizing the light effect of the smart lamp as described in any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the steps in the light effect realization method of the smart lamp according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Electronic equipment display method and electronic equipment

    CN112527220A

  • Lamp, lamp effect implementation method, device, equipment and medium

    CN115307075A