A light color control method, system, terminal and storage medium

By determining the status of the lighting fixtures and obtaining RGB values, the problem of inconvenient color control of existing LED lights has been solved, enabling fast and accurate color control of lights.

CN115802538BActive Publication Date: 2026-05-15DOBIN DISPLAY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
DOBIN DISPLAY CO LTD
Filing Date
2022-11-09
Publication Date
2026-05-15

AI Technical Summary

Technical Problem

Existing LED light color control methods are not convenient for precise control and have a limited control range.

Method used

By determining whether the current state of the lamp is consistent with the target state, and obtaining RGB values ​​according to preset control rules or setting instructions, the light color is controlled, including the adjustment of output current and historical setting records.

Benefits of technology

It enables rapid and precise control of light color, expands the control range, and improves the flexibility and accuracy of control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115802538B_ABST
    Figure CN115802538B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of light control, in particular to a light color control method and system, a terminal and a storage medium; the method comprises the following steps: judging whether a power-on signal is acquired; if the power-on signal is acquired, acquiring a current state of a lamp and a target state of the lamp; judging whether the current state is consistent with the target state; if the current state is not consistent with the target state, judging whether the target state is a preset basic state; if the target state is the basic state, controlling a light color based on a preset control rule; if the target state is not the basic state, judging whether a setting instruction is acquired; if the setting instruction is acquired, acquiring an RGB value based on the setting instruction and the target state; and controlling the light color based on the RGB value. The application is helpful for accurate control of the light color.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of lighting control technology, and in particular to a lighting color control method, system, terminal and storage medium. Background Technology

[0002] With social progress and technological development, people are engaging in more and more nighttime activities. When engaging in nighttime activities, it is necessary to equip lighting systems such as light sources to provide illumination. The reasonable use of light sources can compensate for poor visibility at night. LED lights are widely used in various industries due to their energy-saving, environmentally friendly, long lifespan, and high brightness.

[0003] However, the LED light colors in related technologies are mostly limited to a single color, and they are usually controlled by a remote control, which is not only inconvenient to control, but also makes it difficult to accurately obtain the target color. Summary of the Invention

[0004] To facilitate precise control of light color, this application provides a light color control method, system, terminal, and storage medium.

[0005] The first aspect of this application provides a light color control method, which adopts the following technical solution:

[0006] A method for controlling light color, comprising:

[0007] Determine whether a power-on signal has been received;

[0008] If the power-on signal is obtained, the current state of the lamp and the target state of the lamp are obtained.

[0009] Determine whether the current state is consistent with the target state;

[0010] If the current state is inconsistent with the target state, then determine whether the target state is a preset basic state;

[0011] If the target state is the basic state, then the light color is controlled based on the preset control rules;

[0012] If the target state is not the basic state, then determine whether a setting instruction has been obtained;

[0013] If the setting instruction is obtained, the RGB value is obtained based on the setting instruction and the target state;

[0014] The color of the light is controlled based on the RGB values.

[0015] By adopting the above technical solution, after receiving the power-on signal, it first determines whether the current state and the target state of the lamp are consistent. If the current state and the target state are inconsistent, it then determines whether the target state is a preset basic state. If the target state is the basic state, the light color is controlled according to the preset control rules. If the target state is not the basic state, it determines whether a setting command has been obtained. If a setting command is obtained, the RGB value is obtained according to the setting command and the target state, and the light color is controlled according to the RGB value. This not only allows for direct control of the light color according to the preset control rules, achieving rapid control of the light color, but also allows for control of the light color based on different RGB values, as different RGB values ​​correspond to different light colors. This provides a wide control range and helps to achieve precise control of the light color.

[0016] Optionally, if the setting instruction is obtained, the specific steps for obtaining the RGB value based on the setting instruction and the target state include:

[0017] If the setting instruction is obtained, then the RGB value mapping table is obtained based on the setting instruction;

[0018] The RGB values ​​are obtained based on the RGB value mapping table.

[0019] By adopting the above technical solution, after obtaining the setting command, the RGB value correspondence table is obtained according to the setting command, and then the corresponding RGB value is obtained from the RGB correspondence table according to the target state, which helps to accurately control the light color.

[0020] Optionally, the specific steps for controlling the light color based on the RGB values ​​include:

[0021] Based on the RGB values, the output current is obtained;

[0022] Obtain the target current;

[0023] Determine whether the output current matches the target current;

[0024] If the output current matches the target current, the color of the light is controlled based on the output current;

[0025] If the output current does not match the target current, then obtain the output current range;

[0026] The color of the light is controlled based on the output current range.

[0027] By adopting the above technical solution, it is determined whether the output current matches the target current. When the output current matches the target current, the light color is controlled according to the output current. When the output current does not match the target current, the light color is controlled according to the range of the output current. Different control methods are selected according to different situations, which helps to accurately control the light color.

[0028] Optionally, the specific steps for controlling the light color based on the output current range include:

[0029] Determine whether the target current meets the output current range;

[0030] If the target current meets the output current range, then adjust the output current;

[0031] If the target current does not meet the output current range, then retrieve the historical setting record;

[0032] The color of the light is controlled based on the historical settings.

[0033] By adopting the above technical solution, it is determined whether the target current meets the output current range. If it does, it means that the target current is within the output current range, and the color of the light can be controlled by adjusting the output current. If it does not meet the range, the color of the light is controlled by recording historical settings. Different control methods are selected according to different situations, which helps to accurately control the color of the light.

[0034] Optionally, the specific steps of controlling the light color based on the target record further include:

[0035] Determine whether the target record exists in the historical settings record;

[0036] If the target record exists in the historical settings record, the light color is controlled based on the target record.

[0037] By adopting the above technical solution, it is possible to determine whether a target record exists in the historical settings record. If a target record exists in the historical settings record, the light color can be directly controlled according to the target record, which is not only convenient and fast, but also more accurate.

[0038] Optional, also includes:

[0039] If the target record is not found in the historical settings record, then the nearest RGB value is obtained based on the RGB value;

[0040] Obtain the nearby current;

[0041] Determine whether the nearby current matches the target current;

[0042] If the nearby current matches the target current, then the color of the light is controlled based on the nearby current;

[0043] If the nearby current does not match the target current, the nearby current is reacquired.

[0044] By adopting the above technical solution, when there is no target record in the historical settings record, the nearest RGB value can only be obtained based on the RGB value. By repeatedly obtaining the nearest RGB value, a situation similar to the target state can be found to control the light color, which helps to improve the accuracy of light color control while achieving the control of light color.

[0045] Secondly, this application also discloses a light color control system, which adopts the following technical solution:

[0046] A light color control system, comprising:

[0047] The first judgment module is used to determine whether a power-on signal has been obtained;

[0048] If the power-on signal is obtained, the first acquisition module is used to acquire the current state of the lamp and the target state of the lamp.

[0049] The second judgment module is used to determine whether the current state is consistent with the target state;

[0050] The third judgment module is used to determine whether the target state is a preset basic state if the current state is inconsistent with the target state.

[0051] If the target state is the basic state, the first control module is used to control the light color based on preset control rules.

[0052] The fourth judgment module is used to determine whether a setting instruction has been obtained if the target state is not the basic state.

[0053] If the setting instruction is obtained, the second acquisition module is used to acquire the RGB value based on the setting instruction and the target state.

[0054] The second control module is used to control the color of the light based on the RGB values.

[0055] By adopting the above technical solution, after receiving the power-on signal, it first determines whether the current state and the target state of the lamp are consistent. If the current state and the target state are inconsistent, it then determines whether the target state is a preset basic state. If the target state is the basic state, the light color is controlled according to the preset control rules. If the target state is not the basic state, it determines whether a setting command has been obtained. If a setting command is obtained, the RGB value is obtained according to the setting command and the target state, and the light color is controlled according to the RGB value. This not only allows for direct control of the light color according to the preset control rules, achieving rapid control of the light color, but also allows for control of the light color based on different RGB values, as different RGB values ​​correspond to different light colors. This provides a wide control range and helps to achieve precise control of the light color.

[0056] Thirdly, the computer device provided in this application adopts the following technical solution:

[0057] A smart terminal includes a memory and a processor, wherein the memory stores a computer program that can run on the processor, and when the processor loads the computer program, it executes the method of the first aspect.

[0058] By adopting the above technical solution, a computer program is generated based on the method of the first aspect and stored in a memory for loading and execution by a processor. Thus, a smart terminal is made based on the memory and the processor, making it convenient for users to use.

[0059] Fourthly, the computer-readable storage medium provided in this application adopts the following technical solution:

[0060] A computer-readable storage medium storing a computer program that, when loaded by a processor, executes the method of the first aspect.

[0061] By adopting the above technical solution, a computer program is generated based on the method of the first aspect and stored in a computer-readable storage medium for loading and execution by a processor. The computer-readable storage medium facilitates the reading and storage of the computer program.

[0062] In summary, this application includes the following beneficial technical effects:

[0063] After receiving the power-on signal, the system first checks whether the current state of the light fixture matches the target state. If they do not match, it then checks whether the target state is a preset base state. If the target state is the base state, the light color is controlled according to preset control rules. If the target state is not the base state, it checks whether a setting command has been received. If a setting command is received, the system obtains the RGB values ​​based on the setting command and the target state, and controls the light color based on these RGB values. This allows for not only direct control of the light color according to preset control rules, enabling rapid control, but also control of the light color based on different RGB values, as different RGB values ​​correspond to different light colors. This provides a wide control range and facilitates precise control of the light color. Attached Figure Description

[0064] Figure 1 This is a main flowchart of a light color control method according to an embodiment of this application;

[0065] Figure 2 This is a flowchart showing the specific steps from S201 to S202;

[0066] Figure 3 This is a flowchart of the specific steps from S301 to S306;

[0067] Figure 4 This is a flowchart showing the specific steps from S401 to S404;

[0068] Figure 5 This is a flowchart of steps S501 to S502;

[0069] Figure 6 This is a flowchart of steps S601 to S605;

[0070] Figure 7 This is a block diagram of a lighting color control system according to an embodiment of this application.

[0071] Explanation of reference numerals in the attached figures:

[0072] 1. First judgment module; 2. First acquisition module; 3. Second judgment module; 4. Third judgment module; 5. First control module; 6. Fourth judgment module; 7. Second acquisition module; 8. Second control module. Detailed Implementation

[0073] In the first aspect, this application discloses a method for controlling the color of lights.

[0074] Reference Figure 1 A method for controlling the color of a light, comprising steps S101 to S108:

[0075] Step S101: Determine whether a power-on signal has been obtained.

[0076] Specifically, in this embodiment, the power-on signal is the signal that powers the lamp.

[0077] Step S102: If a power-on signal is obtained, then obtain the current state of the lamp and the target state of the lamp.

[0078] Specifically, in this embodiment, the current state refers to the current color state of the light, which is the state when the power was cut off last time; the target state refers to the color state of the light to be displayed, that is, the color that the light needs to present in the end.

[0079] If a power-on signal is received, step S101 is executed again.

[0080] Step S103: Determine whether the current state is consistent with the target state.

[0081] Specifically, in this embodiment, the current state is compared with the target state to determine whether the current state and the target state are consistent.

[0082] Step S104: If the current state is inconsistent with the target state, determine whether the target state is the preset basic state.

[0083] If the current state is the same as the target state, no action is taken.

[0084] Specifically, in this embodiment, the basic state refers to the state where the light color is white.

[0085] Step S105: If the target state is the base state, then the light color is controlled based on the preset control rules.

[0086] Specifically, in this embodiment, the preset control rule refers to turning on the white light with one click. That is, when the final light needs to be white, the white light of the lamp can be controlled by one click.

[0087] Step S106: If the target state is not the basic state, determine whether a setting instruction has been obtained. Specifically, in this embodiment, the setting instruction is an instruction to set RGB values. RGB is an industry color standard that obtains various colors by varying the red (R), green (G), and blue (B) color channels and superimposing them. RGB represents the colors of the red, green, and blue channels. This standard covers almost all colors that human vision can perceive and is one of the most widely used color systems.

[0088] Step S107: If a setting command is obtained, the RGB value is obtained based on the setting command and the target state.

[0089] Specifically, in this embodiment, when a setting command is received, the system can automatically obtain the preset RGB value, which can be input by the operator in real time via key presses, and the setting value will be displayed on the digital tube.

[0090] If the setting command is not obtained, step S106 is executed again. After step S106 is executed multiple times consecutively (e.g., three times), the current process ends.

[0091] Step S108: Control the light color based on RGB values.

[0092] Specifically, in this embodiment, the RGB value is composed of the numerical values ​​corresponding to the three colors R (Red), G (Green), and B (Blue). By inputting different R, G, and B values, different RGB values ​​are combined, and different RGB values ​​correspond to different colors. Ideally, there are a total of 256*256*256 colors.

[0093] The light color control method provided in this embodiment, after receiving the power-on signal, first determines whether the current state and the target state of the lamp are consistent. If the current state and the target state are inconsistent, it then determines whether the target state is a preset basic state. If the target state is the basic state, the light color is controlled according to the preset control rules. If the target state is not the basic state, it determines whether a setting command has been obtained. If a setting command is obtained, the RGB value is obtained according to the setting command and the target state, and the light color is controlled according to the RGB value. This method can not only directly control the light color according to the preset control rules, achieving fast control of the light color, but also control the light color according to different RGB values, as different RGB values ​​correspond to different light colors. This provides a wide control range and helps to accurately control the light color.

[0094] Reference Figure 2 In one embodiment of this example, if a setting command is obtained in step S107, the specific steps for obtaining the RGB value based on the setting command and the target state include steps S201 to S202:

[0095] Step S201: If a setting command is obtained, then based on the setting command, obtain the RGB value mapping table.

[0096] Specifically, in this embodiment, the RGB value mapping table includes all RGB values ​​and the light colors corresponding to all RGB values.

[0097] Step S202: Obtain RGB values ​​based on the RGB value mapping table.

[0098] The light color control method provided in this embodiment obtains an RGB value correspondence table according to the setting command after receiving the setting command, and then obtains the corresponding RGB value from the RGB correspondence table according to the target state, which helps to accurately control the light color.

[0099] Reference Figure 3 In one embodiment of this example, step S108, which controls the light color based on RGB values, specifically includes steps S301 to S306:

[0100] Step S301: Obtain the output current based on the RGB values.

[0101] Specifically, in this embodiment, the output current is the current output by the MOSFET.

[0102] Step S302: Obtain the target current.

[0103] Specifically, in this embodiment, the target current is the current corresponding to the target state.

[0104] Step S303: Determine whether the output current matches the target current.

[0105] Specifically, in this embodiment, whether the output current matches the target current refers to whether the absolute value of the difference between the output current and the target current is within the allowable range. The allowable range can be 0.1A. That is, when the absolute value of the difference between the output current and the target current is less than or equal to 0.1A, the output current matches the target current; when the absolute value of the difference between the output current and the target current is greater than 0.1A, the output current does not match the target current.

[0106] Step S304: If the output current matches the target current, then control the light color based on the output current.

[0107] Specifically, in this embodiment, the RGB values ​​are used to characterize brightness and are represented by integers. Typically, each RGB value has 256 brightness levels, represented numerically from 0, 1, 2... up to 255. At 0, the light is weakest and off, while at 255, the light is brightest. When the three grayscale values ​​are the same, different shades of gray are produced. RGB is based on the principle of color emission; simply put, its color mixing method is like having three lights—red, green, and blue—that mix when their light overlaps. The colors blend, and the brightness is equal to the sum of the three brightness levels. The more they are mixed, the higher the brightness—that is, additive mixing. When all three grayscale values ​​are 0, it is the darkest black; when all three grayscale values ​​are 255, it is the brightest white.

[0108] When the output current matches the target current, the RGB brightness level is adjusted according to the magnitude of the output current, thereby adjusting the light color.

[0109] Step S305: If the output current does not match the target current, obtain the output current range.

[0110] Specifically, in this embodiment, the output current range refers to the maximum range of the output current, including the maximum output current, the minimum output current, and all values ​​in between.

[0111] Step S306: Control the light color based on the output current range.

[0112] The light color control method provided in this embodiment determines whether the output current matches the target current. When the output current matches the target current, the light color is controlled according to the output current. When the output current does not match the target current, the light color is controlled according to the range of the output current. By selecting different control methods under different conditions, it helps to accurately control the light color.

[0113] Reference Figure 4 In one embodiment of this example, step S306, which controls the light color based on the output current range, specifically includes steps S401 to S404:

[0114] Step S401: Determine whether the target current meets the output current range.

[0115] Specifically, in this embodiment, whether the target current meets the output current range refers to whether the target current is within the output current range.

[0116] Step S402: If the target current meets the output current range, adjust the output current.

[0117] Specifically, in this embodiment, when the output current does not match the target current but the target current meets the output current range, the output current can be adjusted to match the target current. In another embodiment, the current output of the MOSFET is controlled by an ST chip.

[0118] Step S403: If the target current does not meet the output current range, then obtain the historical setting record.

[0119] Specifically, in this embodiment, the historical setting record refers to the record of the historical RGB values ​​of a specified lamp.

[0120] Step S404: Control the light color based on historical settings records.

[0121] Specifically, in this embodiment, the color of the light can be controlled through historical settings.

[0122] The light color control method provided in this embodiment determines whether the target current meets the output current range. If it does, it means that the target current is within the output current range, and the light color can be controlled by adjusting the output current. If it does not meet the range, the light color is controlled by historical settings. Different control methods are selected according to different situations, which helps to accurately control the light color.

[0123] Reference Figure 5 In one embodiment of this example, step S404, which controls the light color based on the target record, includes steps S501 to S502:

[0124] Step S501: Determine whether the target record exists in the historical settings records.

[0125] Specifically, in this embodiment, the target record refers to the record of setting a specified lamp to a target state.

[0126] Step S502: If a target record exists in the historical settings record, then control the light color based on the target record.

[0127] Specifically, in this embodiment, if a target record exists in the historical settings record, the light color is controlled according to the RGB value setting method in the target record.

[0128] The light color control method provided in this embodiment determines whether a target record exists in the historical setting record. When a target record exists in the historical setting record, the light color can be directly controlled according to the target record, which is not only convenient and quick, but also more accurate.

[0129] Reference Figure 6 In one embodiment of this example, steps S601 to S605 are further included:

[0130] Step S601: If the target record is not found in the historical settings record, obtain the nearest RGB value based on the RGB value.

[0131] Specifically, in this embodiment, the nearest RGB value refers to the RGB value that is closest to the RGB value corresponding to the target state.

[0132] Step S602: Obtain the nearby current.

[0133] Specifically, in this embodiment, the neighboring current is the current corresponding to the nearest RGB value.

[0134] Step S603: Determine whether the nearby current matches the target current.

[0135] Specifically, in this embodiment, whether the adjacent current and the target current match refers to whether the absolute value of the difference between the adjacent current and the target current is within the allowable range, which can be 0.1A.

[0136] Step S604: If the adjacent current matches the target current, then control the light color based on the adjacent current.

[0137] Specifically, in this embodiment, when the adjacent current matches the target current, the light color corresponding to the adjacent current is selected to replace the light color corresponding to the output current.

[0138] Step S605: If the nearby current does not match the target current, then the nearby current is obtained again.

[0139] Specifically, in this embodiment, if the nearby current does not match the target current, the nearby current is reacquired until it matches the target current.

[0140] The light color control method provided in this embodiment can only obtain the nearest RGB value based on the RGB value when there is no target record in the historical setting record. By repeatedly obtaining the nearest RGB value, a situation similar to the target state can be found to control the light color, which helps to improve the accuracy of light color control while achieving light color control.

[0141] It is worth noting that this embodiment supports multiple access points, meaning that the light color of multiple lamps can be controlled simultaneously.

[0142] The implementation principle of a light color control method according to an embodiment of this application is as follows: It is determined whether a power-on signal is received; if a power-on signal is received, the current state and target state of the light fixture are obtained; it is determined whether the current state and the target state are consistent; if the current state and the target state are inconsistent, it is determined whether the target state is a preset basic state; if the target state is a basic state, the light color is controlled based on preset control rules; if the target state is not a basic state, it is determined whether a setting command is received; if a setting command is received, the RGB value is obtained based on the setting command and the target state; the light color is controlled based on the RGB value.

[0143] Secondly, this application also discloses a light color control system.

[0144] Reference Figure 7 A lighting color control system, comprising:

[0145] The first judgment module 1 is used to determine whether a power-on signal has been obtained;

[0146] If the first acquisition module 2 acquires a power-on signal, the first acquisition module 2 is used to acquire the current state of the lamp and the target state of the lamp.

[0147] The second judgment module 3 is used to determine whether the current state is consistent with the target state;

[0148] The third judgment module 4 is used to determine whether the target state is a preset basic state if the current state is inconsistent with the target state.

[0149] If the target state is the base state, the first control module 5 is used to control the light color based on preset control rules.

[0150] The fourth judgment module 6 is used to determine whether a setting instruction has been obtained if the target state is not the basic state.

[0151] If a setting instruction is obtained, the second acquisition module 7 is used to obtain the RGB value based on the setting instruction and the target state.

[0152] The second control module 8 is used to control the light color based on RGB values.

[0153] The implementation principle of a lighting color control system according to an embodiment of this application is as follows: the first judgment module 1 judges whether a power-on signal is obtained. If a power-on signal is obtained, the first judgment module 1 sends the first judgment result to the first acquisition module 2. The first acquisition module 2 acquires the current state and the target state of the lamp and sends them to the second judgment module 3. The second judgment module 3 judges whether the current state and the target state are consistent. If the current state and the target state are inconsistent, the second judgment module 3 sends the second judgment result to the third judgment module 4. The third judgment module 4 judges whether the target state is a preset basic state.

[0154] If the target state is the basic state, the third judgment module 4 sends the third judgment result to the first control module 5. The first control module 5 controls the light color based on the preset control rules. If the target state is not the basic state, the third judgment module 4 sends the third judgment result to the fourth judgment module 6. The fourth judgment module 6 determines whether a setting command has been obtained. If a setting command has been obtained, the fourth judgment module 6 sends the fourth judgment result to the second acquisition module 7. The second acquisition module 7 obtains the RGB value based on the setting command and the target state, and sends the RGB value to the second control module 8. The second control module 8 controls the light color based on the RGB value, thereby achieving the same technical effect as the aforementioned light color control method.

[0155] Thirdly, this application discloses a smart terminal, including a memory and a processor. The memory stores a computer program that can run on the processor. When the processor loads the computer program, it executes a light color control method according to the above embodiment.

[0156] Fourthly, embodiments of this application disclose a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is loaded by a processor, it executes a light color control method of the above embodiments.

[0157] The above are all preferred embodiments of this application, and are not intended to limit the scope of protection of this application. Therefore, all equivalent changes made in accordance with the structure, shape and principle of this application should be covered within the scope of protection of this application.

Claims

1. A method for controlling the color of light, characterized in that, include: Determine whether a power-on signal has been received; If the power-on signal is obtained, the current state of the lamp and the target state of the lamp are obtained. Determine whether the current state is consistent with the target state; If the current state is inconsistent with the target state, then determine whether the target state is a preset basic state; If the target state is the basic state, then the light color is controlled based on the preset control rules; If the target state is not the basic state, then determine whether a setting instruction has been obtained; If the setting instruction is obtained, the RGB value is obtained based on the setting instruction and the target state; The light color is controlled based on the RGB values; The specific steps for controlling the light color based on the RGB values ​​include: obtaining the output current based on the RGB values; obtaining the target current; determining whether the output current matches the target current, wherein the matching of the output current and the target current refers to the absolute value of the difference between the output current and the target current being within an allowable range; if the output current matches the target current, then controlling the light color based on the output current; if the output current does not match the target current, then obtaining the output current range; and controlling the light color based on the output current range. The specific steps for controlling the light color based on the output current range include: determining whether the target current meets the output current range; if the target current meets the output current range, adjusting the output current; if the target current does not meet the output current range, acquiring historical setting records; and controlling the light color based on the historical setting records. The specific steps for controlling the light color based on the historical setting record further include: determining whether a target record exists in the historical setting record; if the target record exists in the historical setting record, then controlling the light color based on the target record; The method further includes: if the target record is not found in the historical setting record, then obtaining a nearby RGB value based on the RGB value; obtaining a nearby current; determining whether the nearby current matches the target current; if the nearby current matches the target current, then controlling the light color based on the nearby current; if the nearby current does not match the target current, then re-obtaining the nearby current.

2. The light color control method according to claim 1, characterized in that, If the setting instruction is obtained, the specific steps for obtaining the RGB value based on the setting instruction and the target state include: If the setting instruction is obtained, then the RGB value mapping table is obtained based on the setting instruction; The RGB values ​​are obtained based on the RGB value mapping table.

3. A lighting color control system, characterized in that, The system applies the method as described in any one of claims 1-2, the system comprising: The first judgment module (1) is used to determine whether a power-on signal has been obtained; If the power-on signal is obtained, the first acquisition module (2) is used to acquire the current state of the lamp and the target state of the lamp. The second judgment module (3) is used to determine whether the current state is consistent with the target state; The third judgment module (4) is used to determine whether the target state is a preset basic state if the current state is inconsistent with the target state. The first control module (5) is used to control the light color based on preset control rules if the target state is the basic state. The fourth judgment module (6) is used to determine whether a setting instruction has been obtained if the target state is not the basic state. If the setting instruction is obtained, the second acquisition module (7) is used to acquire the RGB value based on the setting instruction and the target state; The second control module (8) is used to control the color of the light based on the RGB value.

4. A smart terminal, comprising a memory and a processor, characterized in that, The memory is used to store computer programs that can run on the processor, and when the processor loads the computer program, it executes the method of any one of claims 1-2.

5. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is loaded by the processor, it executes the method of any one of claims 1-2.