Light emitting control method and device, storage medium and electronic equipment
By setting up scene determination module, strategy determination module and light emitting control module on electronic devices, the light emitting strategy is dynamically adjusted according to the touch operation sequence input by the user, the poor flexibility caused by the fixed breathing lamp light emitting strategy is solved, and more flexible light emitting is achieved Scene presentation.
Patent Information
- Application Number
- CN202310504794.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-06
- Publication Date
- 2024-11-08
AI Technical Summary
In the prior art, the luminescence strategy of the breathing lamp is fixed, resulting in poor flexibility in the luminescence scene in which the electronic device is located, and it is impossible to dynamically adjust the luminescence strategy according to different touch operation sequences.
By setting a scene determination module, a policy determination module and a light emitting control module on the electronic device, the target light emitting strategy is determined based on the touch operation sequence input by the user, and the luminous behavior of the light emitting part is dynamically controlled to achieve flexible presentation of different scenarios.
The flexibility of the luminous scene of electronic devices is improved, allowing users to set different luminous strategies through different touch operation sequences, thereby more accurately representing the state of the device.
Smart Images

Figure CN118921815A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of electronic technology, and in particular, relates to a light emitting control method, device, computer-readable storage medium and electronic device. Background Art
[0002] A breathing light is a decorative light integrated into an electronic device such as a smartphone or tablet. By controlling the breathing light to emit light in a corresponding lighting strategy, the lighting scene of the electronic device can be visually presented, such as a call reminder scene, a message reminder scene, etc., so that the user can determine the lighting scene of the electronic device through the lighting of the breathing light. However, in the related art, the lighting strategy corresponding to the same lighting scene is fixed, resulting in poor flexibility in presenting the lighting scene of the electronic device through the lighting of the breathing light. Summary of the invention
[0003] The embodiments of the present application provide a light emitting control method, device, storage medium and electronic device, which can make it more flexible to present the light emitting scene of the electronic device through the light emitting part.
[0004] In a first aspect, an embodiment of the present application provides a light emission control method, which is applied to an electronic device, wherein the electronic device is provided with a light emitting unit, comprising:
[0005] Determining a lighting scene in which the electronic device is located;
[0006] Determining a target lighting strategy corresponding to the lighting scene, wherein the target lighting strategy is determined according to touch information of a corresponding touch operation sequence;
[0007] The light emitting portion is controlled to emit light according to the target light emitting strategy.
[0008] In a second aspect, an embodiment of the present application provides a light emitting control device, which is applied to an electronic device, wherein a light emitting unit is provided on the electronic device, including:
[0009] A scene determination module, used to determine the light-emitting scene in which the electronic device is located;
[0010] A strategy determination module, used to determine a target lighting strategy corresponding to the lighting scene, wherein the target lighting strategy is determined according to touch information of a corresponding touch operation sequence;
[0011] A light emitting control module is used to control the light emitting portion to emit light according to the target light emitting strategy.
[0012] In a third aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed on a computer, the computer executes the light-emitting control method provided by the embodiment of the present application.
[0013] In a fourth aspect, an embodiment of the present application further provides an electronic device, comprising a memory and a processor, wherein the processor is used to execute the light emitting control method provided in the embodiment of the present application by calling a computer program stored in the memory.
[0014] In an embodiment of the present application, by determining a luminous scene in which an electronic device is located; determining a target luminous strategy corresponding to the luminous scene, wherein the target luminous strategy is determined according to touch information of a corresponding touch operation sequence; and controlling the luminous portion provided on the electronic device to emit light according to the target luminous strategy, it is possible to determine the luminous strategy of the corresponding luminous scene based on the touch information of the touch operation sequence input by a user, and different touch operation sequences result in different touch information, thus resulting in different luminous strategies for the corresponding luminous scenes, thereby making it possible to achieve greater flexibility in presenting the luminous scene in which the electronic device is located by emitting light from the luminous portion. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The technical solution and beneficial effects of the present application will be made apparent by describing in detail the specific implementation methods of the present application in conjunction with the accompanying drawings.
[0016] Figure 1 It is a flow chart of the light emitting control method provided in the embodiment of the present application.
[0017] Figure 2 It is a schematic diagram of the light-emitting portion provided in an embodiment of the present application.
[0018] Figure 3 is a schematic diagram of a touch input interface provided in an embodiment of the present application.
[0019] Figure 4 It is a schematic diagram of the color selection operation provided in the embodiment of the present application.
[0020] Figure 5 It is a schematic diagram of the structure of the light emitting control device provided in an embodiment of the present application.
[0021] Figure 6 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0022] It should be noted that the terms "first", "second" and "third" in this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or modules is not limited to the listed steps or modules, but some embodiments also include steps or modules that are not listed, or some embodiments also include other steps or modules inherent to these processes, methods, products or devices.
[0023] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0024] The embodiments of the present application provide a light control method, a light control device, a storage medium, and an electronic device. The execution subject of the light control method may be the light control device provided in the embodiments of the present application, or an electronic device integrating the light control device, wherein the light control device may be implemented in hardware or software. The electronic device may be a smart phone, a tablet computer, a PDA, a laptop computer, or other device equipped with a processor and having light control capability.
[0025] See also Figure 1 , Figure 1 : is a flow chart of a light emitting control method provided in an embodiment of the present application. The light emitting control method is applied to an electronic device, and a light emitting unit is provided on the electronic device. The flow chart may include:
[0026] In 101, a lighting scene in which the electronic device is located is determined.
[0027] The luminous scene includes some scenes that the electronic device is in and needs to be presented by the luminous part provided on the electronic device. For example, the luminous scene may include a call reminder scene, a message reminder scene, a designated game scene, an audio playback scene, a video playback scene, and the like.
[0028] Among them, when the electronic device receives an incoming call or there is a missed call in the electronic device, the electronic device is in the incoming call reminder scene. When the electronic device receives a message, such as a text message, a notification message, or a message from an instant messaging application, or there are unread messages in the electronic device, such as a text message, a notification message, or a message from an instant messaging application, the electronic device is in a message reminder scene. When the owner of the electronic device performs a wonderful operation in the game, the electronic device is in a designated game scene. Taking a certain multiplayer online battle arena games (MOBA) as an example, a wonderful operation refers to the first kill, multiple consecutive kills, and other operations that occur when the owner of the electronic device controls the player character. When the electronic device plays audio, the electronic device is in the audio playback scene. When the electronic device plays a video, the electronic device is in the video playback scene.
[0029] In 102, a target lighting strategy corresponding to the lighting scene is determined, wherein the target lighting strategy is determined according to touch information of a corresponding touch operation sequence.
[0030] In this embodiment, different lighting strategies may be pre-set for different lighting scenes. Then, after the lighting scene is determined, a target lighting strategy corresponding to the lighting scene may be determined.
[0031] Among them, different lighting strategies can be determined by inputting touch information of different touch operation sequences. Therefore, the user only needs to input different touch operation sequences to set different lighting strategies for different lighting scenes.
[0032] In addition, since the lighting strategy is determined by the touch information of the touch operation sequence input by the user, even for the same lighting scene, the user can input different touch operation sequences so that the electronic device can determine the lighting strategy corresponding to the lighting scene based on the touch information of different touch operation sequences.
[0033] For example, the user may input a touch operation sequence L1, and the electronic device determines the lighting strategy T1 according to the touch information of the touch operation sequence L1, and the user sets the lighting strategy T1 as the lighting strategy corresponding to the lighting scene S1. Then, the user may also input a touch operation sequence L2, and the electronic device determines the lighting strategy T2 according to the touch information of the touch operation sequence L2, and the user may set the lighting strategy T2 as the lighting strategy corresponding to the lighting scene S2, so that the lighting strategy corresponding to the lighting scene S2 changes from the lighting strategy T1 to the lighting strategy T2.
[0034] The touch operation sequence includes multiple touch operations received by the electronic device in succession in time. The touch operation may include a single-click operation, a double-click operation, a long-press operation, or a sliding operation, etc.
[0035] In 103, the light emitting unit is controlled to emit light according to the target light emitting strategy.
[0036] Among them, the luminescence can be divided into three types: breathing, flashing and constant light. Breathing means that the luminous part slowly increases from 0 brightness to a certain brightness, and then drops from a certain brightness to 0 as one breathing, and the breathing frequency is the number of breathings per unit time. Breathing means that the luminous part changes from 0 brightness directly to a certain brightness, and after maintaining a certain brightness for a certain period of time, the brightness changes to 0 and turns off, and the off-state remains for a certain period of time. This cycle is a flash. The flashing frequency is the number of flashes per unit time. Constant light means that the luminous part remains fixed at a certain brightness value for a period of time.
[0037] For example, assuming that the electronic device is in an incoming call reminder scene, and the target lighting strategy corresponding to the incoming call reminder scene is that the light-emitting part flashes at a corresponding frequency, the light-emitting part can be controlled to flash at a corresponding frequency to visually present the lighting scene in which the electronic device is located as an incoming call reminder scene, so that the user can know that the electronic device is in the incoming call reminder scene by watching the light emitted by the light-emitting part.
[0038] For another example, the light-emitting portion may include multiple sub-light-emitting portions. Suppose the electronic device is in a specified game scene, and the target lighting strategy corresponding to the specified game scene is that some of the multiple sub-light-emitting portions emit light in a corresponding lighting sequence. Then, some of the multiple sub-light-emitting portions can be controlled to emit light in the corresponding lighting sequence, so as to visually present the lighting scene in which the electronic device is located as the specified game scene.
[0039] In the present embodiment, by determining the lighting scene in which the electronic device is located; determining a target lighting strategy corresponding to the lighting scene, wherein the target lighting strategy is determined according to the touch information of the corresponding touch operation sequence; and controlling the lighting of multiple light-emitting parts provided on the electronic device according to the target lighting strategy, it is possible to determine the lighting strategy of the corresponding lighting scene based on the touch information of the touch operation sequence input by the user, and different touch operation sequences and different touch information will result in different lighting strategies for the corresponding lighting scenes, thereby making it possible to achieve higher flexibility in presenting the lighting scene in which the electronic device is located by lighting the light-emitting parts.
[0040] In an optional embodiment, before determining the target light emitting scene in which the electronic device is currently located, the method further includes:
[0041] Get a sample touch operation sequence;
[0042] Determining a sample light emitting strategy according to touch information of each touch operation in the sample touch operation sequence;
[0043] Determine a sample lighting scene corresponding to the sample lighting strategy, and obtain a preset mapping relationship between the lighting strategy and the lighting scene;
[0044] The determining of the target lighting strategy corresponding to the lighting scene includes:
[0045] According to the preset mapping relationship, a target lighting strategy corresponding to the lighting scene is determined.
[0046] The sample touch operation sequence may be input by a user. For example, the user may input multiple touch operations in sequence, so that the electronic device receives the sample touch operation sequence.
[0047] In an optional embodiment, a recording button may be provided. When the user clicks the recording button, the electronic device presents a touch input interface. The user may touch at different positions of the interface in turn, so that the electronic device receives the touch operation input by the user. The interface also includes a save button. When the user clicks the save button, the electronic device may stop receiving the touch operation input by the user. The electronic device may determine the touch operation received by the user between clicking the recording button and clicking the save button as a sample operation sequence, and determine a sample light emission strategy according to the touch information of each touch operation in the sample operation sequence. Through the same process as the above process, the user inputs different touch operation sequences, so that the electronic device can determine different sample light emission strategies. Subsequently, the user can determine different sample light emission scenes for different sample light emission strategies, thereby obtaining a preset mapping relationship between the light emission strategy and the light emission scene, so that after determining the light emission scene in which the electronic device is located, the target light emission strategy corresponding to the light emission scene can be determined according to the preset mapping relationship, and the light emission portion is controlled according to the target light emission strategy.
[0048] In an optional embodiment, the electronic device may also directly provide a touch input interface for the user to input touch operations. When no new touch operations are received from the user within a preset time period, the electronic device may use the currently received touch operation sequence as a sample touch operation sequence.
[0049] In an optional embodiment, the light-emitting unit includes a plurality of sub-light-emitting units, the touch information includes a touch position and a touch sequence, and the determining of the sample light-emitting strategy according to the touch information of each touch operation in the sample touch operation sequence includes:
[0050] Determine a sub-target light-emitting portion from the plurality of sub-light-emitting portions according to a touch position of each of the touch operations, so as to determine a plurality of sub-target light-emitting portions;
[0051] Determining a light-emitting sequence corresponding to each of the sub-target light-emitting parts according to a touch sequence of each of the touch operations;
[0052] The sample light emitting strategy is determined as follows: the plurality of sub-target light emitting parts emit light according to a light emitting sequence corresponding to each of the sub-target light emitting parts.
[0053] Different touch positions correspond to different sub-light-emitting parts. The user inputs different touch operations by touching different touch positions, so that the electronic device obtains a sample touch operation sequence. According to the touch position of each touch operation in the sample touch operation sequence, a sub-target light-emitting part can be determined from multiple sub-light-emitting parts to determine multiple sub-target light-emitting parts. Then, according to the touch sequence of each touch operation in the sample touch operation sequence, a light-emitting sequence corresponding to each sub-target light-emitting part can be determined. Then, the sample light-emitting strategy determined by the electronic device can be: multiple sub-target light-emitting parts emit light according to the light-emitting sequence corresponding to each sub-target light-emitting part.
[0054] For example, assuming that the sample touch operation sequence is touch operations T1, T2, T3, T4 and T5, and the multiple sub-light-emitting portions are sub-light-emitting portions P1, P2, P3, P4 and P5 respectively, the electronic device determines that the sub-target light-emitting portion is the sub-light-emitting portion P2 according to the touch operation T1, the electronic device determines that the sub-target light-emitting portion is the sub-light-emitting portion P3 according to the touch operation T2, the electronic device determines that the sub-target light-emitting portion is the sub-light-emitting portion P5 according to the touch operation T3, the electronic device determines that the sub-target light-emitting portion is the sub-light-emitting portion P2 according to the touch operation T4, and the electronic device determines that the sub-target light-emitting portion is the sub-light-emitting portion P4 according to the touch operation T5, the touch order of the touch operations T1, T2, T3, T4 and T5 is: Touch operation T1, touch operation T2, touch operation T3, touch operation T4, touch operation T5, then, the electronic device can also determine the light-emitting order corresponding to the multiple sub-target light-emitting parts as: sub-target light-emitting part P2, sub-target light-emitting part P3, sub-target light-emitting part P5, sub-target light-emitting part P2, sub-target light-emitting part P4, so that the obtained sample light-emitting strategy is: sub-target light-emitting part P2 emits light → sub-target light-emitting part P2 is turned off, and sub-target light-emitting part P3 emits light → sub-target light-emitting part P3 is turned off, and sub-target light-emitting part P5 emits light → sub-target light-emitting part P5 is turned off, and sub-target light-emitting part P2 emits light → sub-target light-emitting part P2 is turned off, and sub-target light-emitting part P4 emits light.
[0055] In an optional embodiment, the touch information also includes touch duration, and the sample light emitting strategy is determined as follows: before the plurality of sub-target light emitting parts emit light according to the light emitting sequence corresponding to each of the sub-target light emitting parts, the method further includes:
[0056] Determining the light-emitting duration corresponding to each of the sub-target light-emitting parts according to the touch duration of each of the touch operations;
[0057] The sample light emission strategy is to determine that the plurality of sub-target light emitting parts emit light in a light emission sequence corresponding to each of the sub-target light emitting parts, including:
[0058] The sample light emitting strategy is determined as follows: the plurality of sub-target light emitting parts emit light according to a light emitting sequence and light emitting duration corresponding to each of the sub-target light emitting parts.
[0059] In this embodiment, the luminous duration of the sub-target luminous portion can also be controlled by the touch duration. The touch duration is positively correlated with the luminous duration. For example, the luminous duration determined according to the touch duration of a touch operation can be the same as the touch duration of the touch operation.
[0060] For example, assuming that the sample touch operation sequence is touch operations T1, T2, T3, T4 and T5, the touch duration of touch operation T1 is 1 second, the touch duration of touch operation T2 is 2 seconds, the touch duration of touch operation T3 is 3 seconds, the touch duration of touch operation T4 is 2 seconds, and the touch duration of touch operation T5 is 1 second, the multiple sub-light-emitting portions are sub-light-emitting portions P1, P2, P3, P4 and P5, and the electronic device determines that the sub-target light-emitting portion is sub-light-emitting portion P2 according to the touch position of touch operation T1 ... The sub-device determines that the sub-target light-emitting portion is the sub-light-emitting portion P3 according to the touch position of the touch operation T2, the electronic device determines that the sub-target light-emitting portion is the sub-light-emitting portion P5 according to the touch position of the touch operation T3, the electronic device determines that the sub-target light-emitting portion is the sub-light-emitting portion P2 according to the touch position of the touch operation T4, the electronic device determines that the sub-target light-emitting portion is the sub-light-emitting portion P4 according to the touch position of the touch operation T5, and the touch order of the touch operations T1, T2, T3, T4 and T5 is: touch operation T1, touch operation T2, Touch operation T3, touch operation T4, touch operation T5, then, the electronic device may also determine the light-emitting order corresponding to the multiple sub-target light-emitting parts as: sub-target light-emitting part P2, sub-target light-emitting part P3, sub-target light-emitting part P5, sub-target light-emitting part P2, sub-target light-emitting part P4, and the electronic device determines the light-emitting duration corresponding to the multiple sub-target light-emitting parts as: the light-emitting duration corresponding to the sub-target light-emitting part P2 is 1 second, the light-emitting duration corresponding to the sub-target light-emitting part P3 is 2 seconds, and the light-emitting duration corresponding to the sub-target light-emitting part P5 is 2 seconds. The duration is 3 seconds, the corresponding luminous duration of sub-target luminous part P2 is 2 seconds, and the corresponding luminous duration of sub-target luminous part P4 is 1 second, so the obtained sample luminous strategy is: sub-target luminous part P2 emits light for 1 second → sub-target luminous part P2 is turned off, and sub-target luminous part P3 emits light for 2 seconds → sub-target luminous part P3 is turned off, and sub-target luminous part P5 emits light for 3 seconds → sub-target luminous part P5 is turned off, and sub-target luminous part P2 emits light for 2 seconds → sub-target luminous part P2 is turned off, and sub-target luminous part P4 emits light for 1 second.
[0061] In an optional embodiment, determining the sample lighting strategy as: the plurality of sub-target lighting units lighting up according to the lighting sequence and lighting duration corresponding to each of the sub-target lighting units includes:
[0062] Determining adjacent touch operations according to the touch order of each touch operation;
[0063] Determine the touch interval duration between adjacent touch operations;
[0064] Determining adjacent sub-target light-emitting portions from the plurality of sub-target light-emitting portions according to the light-emitting sequence corresponding to each of the sub-target light-emitting portions;
[0065] Determining the light-emitting interval duration between adjacent sub-target light-emitting portions according to the touch interval duration;
[0066] The sample lighting strategy is determined as follows: the plurality of sub-target lighting parts light up according to the lighting sequence and lighting duration corresponding to each of the sub-target lighting parts, and the lighting interval duration between adjacent sub-target lighting parts.
[0067] In this embodiment, the light-emitting interval duration of the adjacent sub-target light-emitting portion can also be controlled by the touch interval duration of the adjacent touch operation. The touch interval duration is positively correlated with the light-emitting interval duration. For example, the light-emitting interval duration determined according to the touch interval duration of a certain adjacent touch operation can be the same as the touch interval duration of the adjacent touch operation.
[0068] For example, assuming that the sample touch operation sequence is touch operations T1, T2, T3, T4 and T5, the touch duration of touch operation T1 is 1 second, the touch duration of touch operation T2 is 2 seconds, the touch duration of touch operation T3 is 3 seconds, the touch duration of touch operation T4 is 2 seconds, and the touch duration of touch operation T5 is 1 second, the multiple sub-light-emitting portions are sub-light-emitting portions P1, P2, P3, P4 and P5 respectively, the electronic device determines that the sub-target light-emitting portion is sub-light-emitting portion P2 according to the touch operation T1, the electronic device determines that the sub-target light-emitting portion is sub-light-emitting portion P3 according to the touch operation T2, the electronic device determines that the sub-target light-emitting portion is sub-light-emitting portion P5 according to the touch operation T3, the electronic device determines that the sub-target light-emitting portion is sub-light-emitting portion P2 according to the touch operation T4, and the electronic device determines that the sub-target light-emitting portion is sub-light-emitting portion P5 according to the touch operation T5. The target light-emitting part is the sub-light-emitting part P4, and the touch order of touch operations T1, T2, T3, T4 and T5 is: touch operation T1, touch operation T2, touch operation T3, touch operation T4, touch operation T5. Then, the electronic device may also determine the light-emitting order corresponding to the multiple sub-target light-emitting parts as: sub-target light-emitting part P2, sub-target light-emitting part P3, sub-target light-emitting part P5, sub-target light-emitting part P2, sub-target light-emitting part P4, and the electronic device determines the light-emitting duration corresponding to the multiple sub-target light-emitting parts as: the light-emitting duration corresponding to the sub-target light-emitting part P2 is 1 second, the light-emitting duration corresponding to the sub-target light-emitting part P3 is 2 seconds, the light-emitting duration corresponding to the sub-target light-emitting part P5 is 3 seconds, the light-emitting duration corresponding to the sub-target light-emitting part P2 is 2 seconds, and the light-emitting duration corresponding to the sub-target light-emitting part P4 is 1 second.
[0069] From the above, it can be seen that adjacent touch operations are touch operation T1 and touch operation T2, touch operation T2 and touch operation T3, touch operation T3 and touch operation T4, touch operation T4 and touch operation T5, among which, touch operation T1 and touch operation T2 are received at an interval of 5 seconds, touch operation T2 and touch operation T3 are received at an interval of 6 seconds, touch operation T3 and touch operation T4 are received at an interval of 1 second, and touch operation T4 and touch operation T5 are received at an interval of 2 seconds. Then, the touch interval duration of touch operation T1 and touch operation T2 is 5 seconds, the touch interval duration of touch operation T2 and touch operation T3 is 6 seconds, the touch interval duration of touch operation T3 and touch operation T4 is 1 second, and the touch interval duration of touch operation T4 and touch operation T5 is 2 seconds.
[0070] Adjacent sub-target light-emitting parts are: sub-target light-emitting part P2 and sub-target light-emitting part P3, sub-target light-emitting part P3 and sub-target light-emitting part P5, sub-target light-emitting part P5 and sub-target light-emitting part P2, sub-target light-emitting part P2 and sub-target light-emitting part P4. The electronic device can determine that the light-emitting interval between sub-target light-emitting part P2 and sub-target light-emitting part P3 is 5 seconds, the light-emitting interval between sub-target light-emitting part P3 and sub-target light-emitting part P5 is 6 seconds, the light-emitting interval between sub-target light-emitting part P5 and sub-target light-emitting part P2 is 1 second, and the light-emitting interval between sub-target light-emitting part P2 and sub-target light-emitting part P4 is 2 seconds.
[0071] The sample light-emitting strategy obtained by the electronic device is: sub-target light-emitting part P2 emits light for 1 second → sub-target light-emitting part P2 goes out → 5 seconds later, sub-target light-emitting part P3 emits light for 2 seconds → sub-target light-emitting part P3 goes out → 6 seconds later, sub-target light-emitting part P5 emits light for 3 seconds → sub-target light-emitting part P5 goes out → 1 second later, sub-target light-emitting part P2 emits light for 2 seconds → sub-target light-emitting part P2 goes out → 2 seconds later, sub-target light-emitting part P4 emits light for 1 second.
[0072] In an optional embodiment, the sample lighting strategy is determined as follows: before the plurality of sub-target lighting units light up according to the lighting sequence and lighting duration corresponding to each of the sub-target lighting units, and the lighting interval duration between adjacent sub-target lighting units, the method further includes:
[0073] In response to the color selection operation, determining the light color corresponding to each of the sub-target light-emitting parts;
[0074] The sample light emission strategy is determined as follows: the plurality of sub-target light emitting parts emit light according to the light emission sequence and light emission duration corresponding to each sub-target light emitting part, and the light emission interval duration between adjacent sub-target light emitting parts, including:
[0075] The sample lighting strategy is determined as follows: the plurality of sub-target lighting units light up according to the lighting sequence, lighting duration and lighting color corresponding to each of the sub-target lighting units, and the lighting interval duration between adjacent sub-target lighting units.
[0076] For example, the electronic device may provide a color selection interface, and the user may perform a color selection operation on the color selection interface, so that the electronic device receives the color selection operation and determines the luminous color corresponding to each sub-target luminous part in response to the color selection operation. The color selection operation may be a single click, double click, long press, or slide operation.
[0077] For example, assuming that the sample touch operation sequence is touch operations T1, T2, T3, T4 and T5, the touch duration of touch operation T1 is 1 second, the touch duration of touch operation T2 is 2 seconds, the touch duration of touch operation T3 is 3 seconds, the touch duration of touch operation T4 is 2 seconds, and the touch duration of touch operation T5 is 1 second, the multiple sub-light-emitting portions are sub-light-emitting portions P1, P2, P3, P4 and P5 respectively, the electronic device determines that the sub-target light-emitting portion is sub-light-emitting portion P2 according to the touch operation T1, the electronic device determines that the sub-target light-emitting portion is sub-light-emitting portion P3 according to the touch operation T2, the electronic device determines that the sub-target light-emitting portion is sub-light-emitting portion P5 according to the touch operation T3, the electronic device determines that the sub-target light-emitting portion is sub-light-emitting portion P2 according to the touch operation T4, and the electronic device determines that the sub-target light-emitting portion is sub-light-emitting portion P5 according to the touch operation T5. The target light-emitting part is the sub-light-emitting part P4, and the touch order of touch operations T1, T2, T3, T4 and T5 is: touch operation T1, touch operation T2, touch operation T3, touch operation T4, touch operation T5. Then, the electronic device may also determine the light-emitting order corresponding to the multiple sub-target light-emitting parts as: sub-target light-emitting part P2, sub-target light-emitting part P3, sub-target light-emitting part P5, sub-target light-emitting part P2, sub-target light-emitting part P4, and the electronic device determines the light-emitting duration corresponding to the multiple sub-target light-emitting parts as: the light-emitting duration corresponding to the sub-target light-emitting part P2 is 1 second, the light-emitting duration corresponding to the sub-target light-emitting part P3 is 2 seconds, the light-emitting duration corresponding to the sub-target light-emitting part P5 is 3 seconds, the light-emitting duration corresponding to the sub-target light-emitting part P2 is 2 seconds, and the light-emitting duration corresponding to the sub-target light-emitting part P4 is 1 second.
[0078] From the above, it can be seen that adjacent touch operations are touch operation T1 and touch operation T2, touch operation T2 and touch operation T3, touch operation T3 and touch operation T4, touch operation T4 and touch operation T5, among which, touch operation T1 and touch operation T2 are received at an interval of 5 seconds, touch operation T2 and touch operation T3 are received at an interval of 6 seconds, touch operation T3 and touch operation T4 are received at an interval of 1 second, and touch operation T4 and touch operation T5 are received at an interval of 2 seconds. Then, the touch interval duration of touch operation T1 and touch operation T2 is 5 seconds, the touch interval duration of touch operation T2 and touch operation T3 is 6 seconds, the touch interval duration of touch operation T3 and touch operation T4 is 1 second, and the touch interval duration of touch operation T4 and touch operation T5 is 2 seconds.
[0079] Adjacent sub-target light-emitting parts are: sub-target light-emitting part P2 and sub-target light-emitting part P3, sub-target light-emitting part P3 and sub-target light-emitting part P5, sub-target light-emitting part P5 and sub-target light-emitting part P2, sub-target light-emitting part P2 and sub-target light-emitting part P4. The electronic device can determine that the light-emitting interval between sub-target light-emitting part P2 and sub-target light-emitting part P3 is 5 seconds, the light-emitting interval between sub-target light-emitting part P3 and sub-target light-emitting part P5 is 6 seconds, the light-emitting interval between sub-target light-emitting part P5 and sub-target light-emitting part P2 is 1 second, and the light-emitting interval between sub-target light-emitting part P2 and sub-target light-emitting part P4 is 2 seconds.
[0080] Assuming that the color corresponding to the sub-target light-emitting part P2 is red, the color corresponding to the sub-target light-emitting part P3 is yellow, the color corresponding to the sub-target light-emitting part P5 is green, and the color corresponding to the sub-target light-emitting part P4 is red, the sample light-emitting strategy obtained by the electronic device is: sub-target light-emitting part P2 emits red light for 1 second → sub-target light-emitting part P2 goes out → 5 seconds later, sub-target light-emitting part P3 emits yellow light for 2 seconds → sub-target light-emitting part P3 goes out → 6 seconds later, sub-target light-emitting part P5 emits green light for 3 seconds → sub-target light-emitting part P5 goes out → 1 second later, sub-target light-emitting part P2 emits red light for 2 seconds → sub-target light-emitting part P2 goes out → 2 seconds later, sub-target light-emitting part P4 emits red light for 1 second.
[0081] In an optional embodiment, after determining the sample light emitting strategy according to the touch information of each touch operation in the sample touch operation sequence, the method further includes:
[0082] In response to the strategy modification operation, modifying the sample light emitting strategy to obtain a modified sample light emitting strategy;
[0083] The determining of the sample lighting scene corresponding to the sample lighting strategy to obtain a preset mapping relationship between the lighting strategy and the lighting scene includes:
[0084] A sample lighting scene corresponding to the modified sample lighting strategy is determined to obtain a preset mapping relationship between the lighting strategy and the lighting scene.
[0085] For example, assuming that the obtained sample light emission strategy is: sub-target light emitting unit P2 emits red light for 1 second → sub-target light emitting unit P2 turns off → 5 seconds later, sub-target light emitting unit P3 emits yellow light for 2 seconds → sub-target light emitting unit P3 turns off → 6 seconds later, sub-target light emitting unit P5 emits green light for 3 seconds → sub-target light emitting unit P5 turns off → 1 second later, sub-target light emitting unit P2 emits red light for 2 seconds → sub-target light emitting unit P2 turns off → 2 seconds later, sub-target light emitting unit P4 emits red light for 1 second, then the electronic device can generate an editable strategy file based on the above sample light emission strategy. The user can open the strategy file to modify the sample light emission strategy, so that the electronic device receives the strategy modification operation. In response to the strategy modification operation, the electronic device can modify the sample light emission strategy to obtain a modified sample light emission strategy. After obtaining the modified sample light emission strategy, the sample light emission scene corresponding to the modified sample light emission strategy can be determined to obtain a preset mapping relationship between the light emission strategy and the light emission scene.
[0086] For example, assuming that the user changes the light emitted by sub-target light-emitting part P5 to blue, the modified sample light-emitting strategy is: sub-target light-emitting part P2 emits red light for 1 second → sub-target light-emitting part P2 goes out → 5 seconds later, sub-target light-emitting part P3 emits yellow light for 2 seconds → sub-target light-emitting part P3 goes out → 6 seconds later, sub-target light-emitting part P5 emits blue light for 3 seconds → sub-target light-emitting part P5 goes out → 1 second later, sub-target light-emitting part P2 emits red light for 2 seconds → sub-target light-emitting part P2 goes out → 2 seconds later, sub-target light-emitting part P4 emits red light for 1 second.
[0087] In an optional embodiment, each time the electronic device receives a touch operation in a touch operation sequence, it can generate a lighting instruction (including lighting color, lighting duration, lighting order, etc.) of the corresponding sub-target lighting unit according to the touch information of the touch operation, and can also generate an idle non-lighting instruction according to the touch interval duration of adjacent touch operations, thereby obtaining multiple instruction sets, and the electronic device can save the multiple instruction sets to a file and name it according to the name entered by the user. The user can click on the file to make the electronic device execute the instructions in the file to control the corresponding sub-target lighting unit to emit light. The user can also set a corresponding lighting scene for the file to obtain a preset mapping relationship between the lighting scene and the lighting strategy.
[0088] In an optional embodiment, a user who is good at music can click on the position corresponding to different sub-light-emitting parts according to the rhythm of each audio, and a corresponding rhythmic lighting strategy of the sub-target light-emitting part will be generated. The next time the user sees the sub-target light-emitting part emit light with the lighting strategy, he can think of the corresponding audio. In addition, the above-mentioned lighting strategy can be corresponded to the corresponding lighting scene. Optionally, the above-mentioned lighting strategy can also be corresponded to the corresponding audio (the user clicks on the rhythm of the audio to make the electronic device generate the corresponding lighting strategy, and then the audio can be corresponded to the lighting strategy), so that the electronic device can think of the rhythm of the audio when seeing the sub-target light-emitting part emit light with the lighting strategy.
[0089] Of course, for users who are not good at music, it also increases the playability. A random click can also generate a corresponding lighting strategy. And it can be set to correspond to the corresponding lighting scene.
[0090] See also Figures 2 to 4 , the light-emitting control method provided in the embodiment of the present application will be further explained by taking the sub-light-emitting portion as a breathing light, the touch operation and the color selection operation as a click operation as an example.
[0091] The electronic device includes a back shell H and a display screen D. The display screen D can display interfaces such as a color selection interface V1 and a touch input interface V2. The back shell H includes a breathing light P1, a breathing light P2, a breathing light P3, a breathing light P4, and a breathing light P5. The user can click to enter the color selection interface V1 to select the luminous color corresponding to each breathing light. The color selection interface V1 can display images of the breathing light P1, the breathing light P2, the breathing light P3, the breathing light P4, and the breathing light P5. The user can select the luminous color corresponding to each breathing light by clicking on each breathing light displayed on the color selection interface V1. The number of clicks corresponds to the color. For example, one click corresponds to green, two clicks correspond to red, and one click corresponds to green. 3 times corresponds to blue, 4 clicks correspond to yellow, 5 clicks correspond to white, and it can be reset after 5 times, that is, 6 clicks correspond to green, 7 clicks correspond to red..., assuming that the user selects red as the luminous color for breathing light P1, yellow as the luminous color for breathing light P2, blue as the luminous color for breathing light P3, white as the luminous color for breathing light P4, and green as the luminous color for breathing light P5, then the luminous color corresponding to breathing light P1 is red, the luminous color corresponding to breathing light P2 is yellow, the luminous color corresponding to breathing light P3 is blue, the luminous color corresponding to breathing light P4 is white, and the luminous color corresponding to breathing light P5 is green.
[0092] Next, the user can click to enter the touch input interface V2 to set the sample luminescence strategy they want. The touch input interface V1 can display the images of breathing light P1, breathing light P2, breathing light P3, breathing light P4, and breathing light P5 according to the layout of breathing light P1, breathing light P2, breathing light P3, breathing light P4, and breathing light P5 on the back shell. Assume that the user first clicks on the touch input interface V2 to display the breathing light P2 for 5 seconds, then clicks on the touch input interface V2 after an interval of 3 seconds to display the breathing light P3 for 2 seconds, then clicks on the touch input interface V2 after an interval of 1 second to display the breathing light P4 for 6 seconds, then clicks on the touch input interface V2 after an interval of 2 seconds to display the breathing light P4 for 6 seconds. 2 displayed breathing light P3 lasts for 4 seconds, after an interval of 3 seconds, the breathing light P5 displayed by clicking the touch input interface V2 lasts for 2 seconds, and after an interval of 4 seconds, the breathing light P1 displayed by clicking the touch input interface V2 lasts for 1 second. The sample lighting strategy T1 determined by the electronic device is: breathing light P2 emits yellow light for 5 seconds → breathing light P2 goes out → after 3 seconds, breathing light P3 emits blue light for 2 seconds → breathing light P3 goes out → after 1 second, breathing light P4 emits white light for 6 seconds → breathing light P4 goes out → after 2 seconds, breathing light P3 emits blue light for 4 seconds → breathing light P3 goes out → after 3 seconds, breathing light P5 emits green light for 2 seconds → breathing light P5 goes out → after 4 seconds, breathing light P1 emits red light for 1 second.
[0093] Through the same process as the above process, the user can also set other sample light-emitting strategies, so that the electronic device can also obtain sample light-emitting strategies T2, T3 and T4... Assuming that the user sets sample light-emitting strategy T1 to correspond to the incoming call reminder scene, sample light-emitting strategy T2 to correspond to the specified game scene, sample light-emitting strategy T3 to correspond to the message reminder scene, and sample light-emitting strategy T4 to correspond to the audio playback scene, if the electronic device receives an incoming call, the electronic device determines that the light-emitting scene of the electronic device is the incoming call reminder scene, then the electronic device can first control the breathing light P2 to emit yellow light for 5 seconds, and then control the breathing light P2 to turn off, and then control the breathing light P3 to emit blue light for 2 seconds after 3 seconds, and then control the breathing light P3 to turn off, and then control the breathing light P4 to emit white light for 6 seconds after 1 second, and then control the breathing light P4 to turn off, and then control the breathing light P3 to emit blue light for 4 seconds after 2 seconds, and then control the breathing light P3 to turn off, and then control the breathing light P5 to emit green light for 2 seconds after 3 seconds, and then control the breathing light P5 to turn off, and then control the breathing light P1 to emit red light for 1 second after 4 seconds.
[0094] See also Figure 5 , Figure 5 The light control device 200 is applied to an electronic device, which is provided with a light emitting unit, and includes a scene determination module 201 , a strategy determination module 202 and a light control module 203 .
[0095] The scene determination module 201 is used to determine the lighting scene in which the electronic device is located.
[0096] The strategy determination module 202 is used to determine a target lighting strategy corresponding to the lighting scene, wherein the target lighting strategy is determined according to touch information of a corresponding touch operation sequence.
[0097] The light emitting control module 203 is used to control the light emitting unit to emit light according to the target light emitting strategy.
[0098] In an optional embodiment, the light control device 200 may further include a relationship determination module, which may be used to: obtain a sample touch operation sequence; determine a sample light strategy according to touch information of each touch operation in the sample touch operation sequence; determine a sample light scene corresponding to the sample light strategy, and obtain a preset mapping relationship between the light strategy and the light scene;
[0099] The strategy determination module 202 may be configured to determine a target lighting strategy corresponding to the lighting scene according to the preset mapping relationship.
[0100] In an optional embodiment, the light-emitting portion includes multiple sub-light-emitting portions, and the touch information includes a touch position and a touch order. The relationship determination module can be used to: determine a sub-target light-emitting portion from the multiple sub-light-emitting portions according to the touch position of each of the touch operations to determine multiple sub-target light-emitting portions; determine a light-emitting order corresponding to each of the sub-target light-emitting portions according to the touch order of each of the touch operations; and determine a sample light-emitting strategy as follows: the multiple sub-target light-emitting portions emit light according to the light-emitting order corresponding to each of the sub-target light-emitting portions.
[0101] In an optional embodiment, the touch information also includes touch duration, and the relationship determination module can be used to: determine the corresponding luminous duration of each sub-target luminous part according to the touch duration of each touch operation; determine the sample luminous strategy as: multiple sub-target luminous parts emit light according to the luminous order and luminous duration corresponding to each sub-target luminous part.
[0102] In an optional embodiment, the relationship determination module can be used to: determine adjacent touch operations according to the touch order of each touch operation; determine the touch interval duration between adjacent touch operations; determine adjacent sub-target light-emitting parts from a plurality of sub-target light-emitting parts according to the light-emitting order corresponding to each sub-target light-emitting part; determine the light-emitting interval duration between adjacent sub-target light-emitting parts according to the touch interval duration; determine the sample light-emitting strategy as follows: the plurality of sub-target light-emitting parts emit light according to the light-emitting order and light-emitting duration corresponding to each sub-target light-emitting part, and the light-emitting interval duration between adjacent sub-target light-emitting parts.
[0103] In an optional embodiment, the relationship determination module can be used to: determine the luminous color corresponding to each of the sub-target light-emitting parts in response to a color selection operation; determine the sample lighting strategy as: multiple sub-target light-emitting parts emit light according to the lighting order, lighting duration and lighting color corresponding to each of the sub-target light-emitting parts, and the lighting interval duration between adjacent sub-target light-emitting parts.
[0104] In an optional embodiment, the relationship determination module can be used to: modify the sample lighting strategy in response to a strategy modification operation to obtain a modified sample lighting strategy; determine the sample lighting scene corresponding to the modified sample lighting strategy to obtain a preset mapping relationship between the lighting strategy and the lighting scene.
[0105] The embodiment of the present application also provides a light-emitting control device, which uses the embodiment of the present application to provide a computer-readable storage medium on which a computer program is stored. When the computer program is executed on a computer, the computer executes the light-emitting control method provided in the present embodiment.
[0106] An embodiment of the present application also provides an electronic device, including a memory and a processor, wherein the processor is used to execute the light emission control method provided in the present embodiment by calling a computer program stored in the memory.
[0107] For example, the electronic device may be a mobile terminal such as a tablet computer or a smart phone. Figure 6 , Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0108] The electronic device 300 may include components such as a processor 301 and a memory 302. Those skilled in the art will appreciate that Figure 6 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, the electronic device 300 may also include a screen, a light-emitting unit, and so on.
[0109] It is understandable that the light emitting control method can also be executed by the electronic device 300 to control the light emitting portion of other electronic devices provided with a light emitting portion.
[0110] The processor 301 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or executing applications stored in the memory 302 and calling data stored in the memory 302, thereby monitoring the electronic device as a whole.
[0111] The memory 302 may be used to store applications and data. The applications stored in the memory 302 include executable codes. The applications may be composed of various functional modules. The processor 301 executes various functional applications and data processing by running the applications stored in the memory 302.
[0112] In this embodiment, the processor 301 in the electronic device will load the executable code corresponding to the process of one or more application programs into the memory 302 according to the following instructions, and the processor 301 will run the application program stored in the memory 302, thereby achieving:
[0113] Determining a lighting scene in which the electronic device is located;
[0114] Determining a target lighting strategy corresponding to the lighting scene, wherein the target lighting strategy is determined according to touch information of a corresponding touch operation sequence;
[0115] The light emitting portion is controlled to emit light according to the target light emitting strategy.
[0116] In an optional embodiment, before the processor 301 executes the determination of the target luminous scene in which the electronic device is currently located, it can also execute: obtaining a sample touch operation sequence; determining a sample luminous strategy based on the touch information of each touch operation in the sample touch operation sequence; determining a sample luminous scene corresponding to the sample luminous strategy, and obtaining a preset mapping relationship between the luminous strategy and the luminous scene; when determining the target luminous strategy corresponding to the luminous scene, it can execute: determining the target luminous strategy corresponding to the luminous scene based on the preset mapping relationship.
[0117] In an optional embodiment, the light-emitting portion includes a plurality of sub-light-emitting portions, and the touch information includes a touch position and a touch order. When the processor 301 executes the touch information of each touch operation in the sample touch operation sequence to determine the sample light-emitting strategy, the following may be performed: according to the touch position of each touch operation, a sub-target light-emitting portion is determined from the plurality of sub-light-emitting portions to determine a plurality of sub-target light-emitting portions; according to the touch order of each touch operation, a light-emitting order corresponding to each sub-target light-emitting portion is determined; and the sample light-emitting strategy is determined as follows: the plurality of sub-target light-emitting portions emit light according to the light-emitting order corresponding to each sub-target light-emitting portion.
[0118] In an optional embodiment, the touch information also includes touch duration, and the processor 301 executes the sample light-emitting strategy to determine that before the multiple sub-target light-emitting parts emit light in the light-emitting sequence corresponding to each of the sub-target light-emitting parts, the processor 301 may also execute: determining the light-emitting duration corresponding to each of the sub-target light-emitting parts according to the touch duration of each of the touch operations; when the processor 301 executes the sample light-emitting strategy to determine that when the multiple sub-target light-emitting parts emit light in the light-emitting sequence corresponding to each of the sub-target light-emitting parts, the processor 301 may execute: determining the sample light-emitting strategy to determine that the multiple sub-target light-emitting parts emit light in the light-emitting sequence and light-emitting duration corresponding to each of the sub-target light-emitting parts.
[0119] In an optional embodiment, the processor 301 executes the determination of the sample lighting strategy as follows: when the multiple sub-target light-emitting parts emit light in accordance with the lighting order and lighting duration corresponding to each of the sub-target light-emitting parts, the processor 301 may execute: determining adjacent touch operations according to the touch order of each touch operation; determining the touch interval duration between adjacent touch operations; determining adjacent sub-target light-emitting parts from the multiple sub-target light-emitting parts according to the lighting order corresponding to each of the sub-target light-emitting parts; determining the lighting interval duration between adjacent sub-target light-emitting parts according to the touch interval duration; determining the sample lighting strategy as follows: the multiple sub-target light-emitting parts emit light in accordance with the lighting order and lighting duration corresponding to each of the sub-target light-emitting parts, and the lighting interval duration between adjacent sub-target light-emitting parts.
[0120] In an optional embodiment, before the processor 301 executes the step of determining the sample light-emitting strategy as: the plurality of sub-target light-emitting parts emit light in accordance with the light-emitting sequence and light-emitting duration corresponding to each sub-target light-emitting part, as well as the light-emitting interval duration between adjacent sub-target light-emitting parts, it may also execute: in response to a color selection operation, determining the light-emitting color corresponding to each sub-target light-emitting part; when the processor 301 executes the step of determining the sample light-emitting strategy as: the plurality of sub-target light-emitting parts emit light in accordance with the light-emitting sequence and light-emitting duration corresponding to each sub-target light-emitting part, as well as the light-emitting interval duration between adjacent sub-target light-emitting parts, it may execute: determining the sample light-emitting strategy as: the plurality of sub-target light-emitting parts emit light in accordance with the light-emitting sequence, light-emitting duration and light-emitting color corresponding to each sub-target light-emitting part, as well as the light-emitting interval duration between adjacent sub-target light-emitting parts.
[0121] In an optional embodiment, after the processor 301 executes the touch information of each touch operation in the sample touch operation sequence to determine the sample lighting strategy, it can also execute: in response to the strategy modification operation, modify the sample lighting strategy to obtain a modified sample lighting strategy; when the processor 301 executes the determination of the sample lighting scene corresponding to the sample lighting strategy to obtain a preset mapping relationship between the lighting strategy and the lighting scene, it can execute: determine the sample lighting scene corresponding to the modified sample lighting strategy to obtain a preset mapping relationship between the lighting strategy and the lighting scene.
[0122] In the above embodiments, the description of each embodiment has its own emphasis. For the part that is not described in detail in a certain embodiment, please refer to the detailed description of the light emitting control method above, and will not be repeated here.
[0123] The luminous control device provided in the embodiment of the present application belongs to the same concept as the luminous control method in the above embodiment. Any method provided in the luminous control method embodiment can be run on the luminous control device. The specific implementation process is detailed in the luminous control method embodiment, which will not be repeated here.
[0124] It should be noted that, for the light control method of the embodiment of the present application, a person skilled in the art can understand that all or part of the process of implementing the light control method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor, and the execution process may include the process of the embodiment of the light control method. Among them, the computer-readable storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), etc.
[0125] It is understandable that in the specific implementation of this application, user information is involved, such as application usage behavior data, logs and other related data. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0126] For the light control device of the embodiment of the present application, each functional module can be integrated into a processing chip, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, a disk or an optical disk.
[0127] The above is a detailed introduction to a light emitting control method, device, storage medium and electronic device provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A light emitting control method, applied to an electronic device, wherein the electronic device is provided with a light emitting unit, characterized in that: include: Determining a lighting scene in which the electronic device is located; Determining a target lighting strategy corresponding to the lighting scene, wherein the target lighting strategy is determined according to touch information of a corresponding touch operation sequence; The light emitting portion is controlled to emit light according to the target light emitting strategy.
2. The light emission control method according to claim 1, characterized in that: Before determining the target lighting scene currently located by the electronic device, the method further includes: Get a sample touch operation sequence; Determining a sample light emitting strategy according to touch information of each touch operation in the sample touch operation sequence; Determine a sample lighting scene corresponding to the sample lighting strategy, and obtain a preset mapping relationship between the lighting strategy and the lighting scene; The determining of the target lighting strategy corresponding to the lighting scene includes: According to the preset mapping relationship, a target lighting strategy corresponding to the lighting scene is determined.
3. The light emission control method according to claim 2, characterized in that: The light-emitting unit includes a plurality of sub-light-emitting units, the touch information includes a touch position and a touch sequence, and the sample light-emitting strategy is determined according to the touch information of each touch operation in the sample touch operation sequence, including: Determine a sub-target light-emitting portion from the plurality of sub-light-emitting portions according to a touch position of each of the touch operations, so as to determine a plurality of sub-target light-emitting portions; Determining a light-emitting sequence corresponding to each of the sub-target light-emitting parts according to a touch sequence of each of the touch operations; The sample light emitting strategy is determined as follows: the plurality of sub-target light emitting parts emit light according to a light emitting sequence corresponding to each of the sub-target light emitting parts.
4. The light emission control method according to claim 3, characterized in that: The touch information also includes the touch duration, and the sample light emitting strategy is determined as follows: before the plurality of sub-target light emitting parts emit light in the light emitting sequence corresponding to each of the sub-target light emitting parts, the method further includes: Determining the light-emitting duration corresponding to each of the sub-target light-emitting parts according to the touch duration of each of the touch operations; The sample light emission strategy is to determine that the plurality of sub-target light emitting parts emit light in a light emission sequence corresponding to each of the sub-target light emitting parts, including: The sample light emitting strategy is determined as follows: the plurality of sub-target light emitting parts emit light according to a light emitting sequence and light emitting duration corresponding to each of the sub-target light emitting parts.
5. The light emission control method according to claim 4, characterized in that: The sample light emission strategy is determined as follows: the plurality of sub-target light emitting parts emit light according to the light emission sequence and light emission duration corresponding to each sub-target light emitting part, including: Determining adjacent touch operations according to the touch order of each touch operation; Determine the touch interval duration between adjacent touch operations; Determining adjacent sub-target light-emitting portions from the plurality of sub-target light-emitting portions according to the light-emitting sequence corresponding to each of the sub-target light-emitting portions; Determining the light-emitting interval duration between adjacent sub-target light-emitting portions according to the touch interval duration; The sample lighting strategy is determined as follows: the plurality of sub-target lighting units light up according to the lighting sequence and lighting duration corresponding to each of the sub-target lighting units, and the lighting interval duration between adjacent sub-target lighting units.
6. The light emission control method according to claim 5, characterized in that: The sample light emission strategy is determined as follows: before the plurality of sub-target light emitting parts emit light according to the light emission sequence and light emission duration corresponding to each sub-target light emitting part, and the light emission interval duration between adjacent sub-target light emitting parts, the method further includes: In response to the color selection operation, determining the light color corresponding to each of the sub-target light-emitting parts; The sample light emission strategy is determined as follows: the plurality of sub-target light emitting parts emit light according to the light emission sequence and light emission duration corresponding to each sub-target light emitting part, and the light emission interval duration between adjacent sub-target light emitting parts, including: The sample lighting strategy is determined as follows: the plurality of sub-target lighting units light up according to the lighting sequence, lighting duration and lighting color corresponding to each of the sub-target lighting units, and the lighting interval duration between adjacent sub-target lighting units.
7. The light emission control method according to claim 2, characterized in that: After determining the sample light emitting strategy according to the touch information of each touch operation in the sample touch operation sequence, the method further includes: In response to the strategy modification operation, modifying the sample light emitting strategy to obtain a modified sample light emitting strategy; The determining of the sample lighting scene corresponding to the sample lighting strategy to obtain a preset mapping relationship between the lighting strategy and the lighting scene includes: A sample lighting scene corresponding to the modified sample lighting strategy is determined to obtain a preset mapping relationship between the lighting strategy and the lighting scene.
8. A light emitting control device, applied to an electronic device, wherein the electronic device is provided with a light emitting unit, characterized in that: include: A scene determination module, used to determine the light-emitting scene in which the electronic device is located; A strategy determination module, used to determine a target lighting strategy corresponding to the lighting scene, wherein the target lighting strategy is determined according to touch information of a corresponding touch operation sequence; A light emitting control module is used to control the light emitting portion to emit light according to the target light emitting strategy.
9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is run on a computer, the computer executes the light emission control method according to any one of claims 1 to 7.
10. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein a computer program is stored in the memory, and the processor is used to execute the light emission control method according to any one of claims 1 to 7 by calling the computer program stored in the memory.
