Search

CN-122028258-A - Lighting control method and electronic equipment

CN122028258ACN 122028258 ACN122028258 ACN 122028258ACN-122028258-A

Abstract

The application provides an illumination control method and electronic equipment. In the method, the electronic equipment displays a flashlight function interface in response to a first operation of a user, and controls a flash lamp to flash according to a flash sequence corresponding to a first Morse code in response to a second operation of the user, wherein the second operation is an operation acting on a play control in the flashlight function interface, the first Morse code is selected by the user from at least one Morse code, and the at least one Morse code comprises a Morse code customized by the user. Through the scheme, the flashlight function of the electronic device supports user-defined Morse codes, a user can trigger and play the Morse codes in a flashlight function interface, the electronic device can control the flash lamp to flash according to the flash sequence corresponding to the Morse codes, and the flash lamp can flash according to the rule of the Morse codes, so that a visual broadcasting effect is provided, and the user can conveniently ask for help or communicate.

Inventors

  • ZHOU YANG

Assignees

  • 华为技术有限公司

Dates

Publication Date
20260512
Application Date
20250819

Claims (13)

  1. 1. A lighting control method applied to an electronic device, the method comprising: responding to a first operation of a user, and displaying a flashlight function interface; And responding to a second operation of the user, and controlling the flash lamp to flash according to a flash sequence corresponding to a first Morse code, wherein the second operation is an operation acting on a play control in the flashlight function interface, the first Morse code is selected by the user from at least one Morse code, and the at least one Morse code comprises a Morse code customized by the user.
  2. 2. The method of claim 1, wherein the method further comprises: Responding to a third operation of a user, and displaying a control for editing the user-defined Morse code, wherein the third operation is an operation acting on the control for newly adding the user-defined Morse code in the flashlight function interface; Receiving first content input by a user through the control, determining a second Morse code corresponding to the first content, and displaying preview content corresponding to the second Morse code; and responding to a fourth operation of a user, wherein the fourth operation is an operation acting on a save control, the first content and the second Morse code are saved, and the first content and the second Morse code are displayed in the flashlight function interface.
  3. 3. The method according to claim 1 or 2, wherein said controlling the flash to flash according to the flash sequence corresponding to the first morse code comprises: And controlling the flash lamp to circularly execute the flashing process corresponding to the flashing sequence for N times according to the flashing sequence corresponding to the first Morse code, wherein N is a positive integer.
  4. 4. A method according to any one of claims 1-3, wherein in response to a second operation by the user, after controlling the flashing of the flash according to a flash sequence corresponding to the first morse code, the method further comprises: and responding to a fifth operation of a user, controlling the flash lamp to flash in the background according to a flash sequence corresponding to the first Morse code, wherein the fifth operation is used for switching the background operation of the flashlight function or switching the electronic equipment to be in a screen-off state.
  5. 5. A method according to any one of claims 1-3, wherein in response to a second operation by the user, after controlling the flashing of the flash according to a flash sequence corresponding to the first morse code, the method further comprises: And responding to a sixth operation of a user, running the first application in the foreground, and controlling the flash lamp to flash according to a flash sequence corresponding to the first Morse code in the background, wherein the sixth operation is used for running the first application.
  6. 6. The method of any one of claims 1-5, wherein the method further comprises: Responding to a seventh operation of a user, editing the second content, and generating edited third content, wherein the seventh operation is an operation acting on an editing control corresponding to the second content in the flashlight function interface, and the second content is content which is selected to be edited by the user in at least one content corresponding to the at least one Morse code; determining a third Morse code corresponding to the third content, and displaying preview content corresponding to the third Morse code; And responding to an eighth operation of a user, wherein the eighth operation is an operation acting on a save control, and the third content and the third Morse code are saved and are used for replacing the Morse code corresponding to the second content and the second content in the flashlight function interface.
  7. 7. The method of any of claims 1-6, wherein prior to said controlling the flash to flash according to a flash sequence corresponding to the first morse code in response to a second operation by the user, the method further comprises: and entering a target contextual model.
  8. 8. The method of any one of claims 1-7, wherein the method further comprises: Responding to a ninth operation of a user, and acquiring a strobe frequency set by the user, wherein the ninth operation is an operation acted on a control for setting the strobe frequency in the flashlight function interface; And responding to tenth operation of a user, and controlling the flash lamp to flash according to the strobe frequency set by the user, wherein the tenth operation is an operation acted on a strobe starting control in the flashlight function interface.
  9. 9. The method of any one of claims 1-8, wherein the method further comprises: And responding to the operation of migrating the data of the electronic equipment to other electronic equipment, acquiring the data of the user-defined Morse code in the at least one Morse code, and transmitting the data of the user-defined Morse code to the other electronic equipment.
  10. 10. The method of any of claims 1-9, wherein the flashlight function interface includes at least one of a switch control for a lighting function, the at least one morse code, at least one content corresponding to the at least one morse code and a play control corresponding to each morse code, a control for a new added morse code, a strobe mode related control.
  11. 11. An electronic device comprising at least one processor coupled to at least one memory, the at least one processor configured to read a computer program stored by the at least one memory to perform the method of any of claims 1-10.
  12. 12. A computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of any of claims 1-10.
  13. 13. A computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the method of any of claims 1-10.

Description

Lighting control method and electronic equipment Technical Field The present application relates to the field of terminal technologies, and in particular, to an illumination control method and an electronic device. Background With the increasing diversity of functions of electronic devices, the demands of users for electronic devices are also increasing. Currently, flashlight functions provided by electronic devices are mostly limited to providing basic lighting functions, such as the electronic devices support the lighting functions of turning on or off the flashlight, and some lighting functions also support adjusting the lighting brightness. In the actual use process, users often face various use scenes, such as outdoor hiking, mountain climbing and other exploration sports, the sports are usually far away from cities and are in the nature of forests, wilderness and the like, signals of electronic equipment are weak, the trails are relatively rare, and once emergency situations are met, the provision of guarantee for the safety of an explorer is one of basic and important requirements under the scenes. These scenes place higher demands on the lighting function of the electronic device. At present, a more diversified flashlight function is urgently needed to meet the requirements of emergency rescue scenes. Disclosure of Invention The application provides a lighting control method and electronic equipment, which are used for providing a lighting scheme based on the Moss code rule flicker. In a first aspect, the application provides a lighting control method which can be executed by electronic equipment, and the method comprises the steps that the electronic equipment displays a flashlight function interface in response to a first operation of a user, and controls a flash lamp to flash according to a flash sequence corresponding to a first Morse code in response to a second operation of the user, wherein the second operation is an operation acting on a play control in the flashlight function interface, the first Morse code is selected by the user from at least one Morse code, and the at least one Morse code comprises a Morse code customized by the user. In the above method, the flashlight function of the electronic device supports user-defined morse code, and the electronic device may store at least one morse code, which may include the user-defined morse code. The user can trigger and play the Morse code in the flashlight function interface, the electronic equipment can control the flash lamp to flash according to the flash sequence corresponding to the Morse code, and the flash lamp can flash according to the rule of the Morse code, so that a visual broadcasting effect is provided, and the user can conveniently ask for help or communicate. In one possible design, the method further comprises the steps of responding to a third operation of a user, displaying a control for editing user-defined Morse codes, wherein the third operation is an operation acting on the control for newly adding user-defined Morse codes in the flashlight function interface, receiving first content input by the user through the control, determining second Morse codes corresponding to the first content, displaying preview content corresponding to the second Morse codes, responding to a fourth operation of the user, storing the first content and the second Morse codes, and displaying the first content and the second Morse codes in the flashlight function interface, wherein the fourth operation is an operation acting on the storage control. Through the design, the flashlight function of the electronic equipment supports the user-defined Morse code, and when the user uses the flashlight function, the Morse code can be added according to the user's own requirements so as to meet the personalized help-seeking or communication requirements of the user. In one possible design, the controlling the flash lamp to flash according to the flash sequence corresponding to the first Morse code includes controlling the flash lamp to circularly execute the flash process corresponding to the flash sequence for N times according to the flash sequence corresponding to the first Morse code, wherein N is a positive integer. Through the design, the scheme of executing the Moss code flashing for a plurality of times after the single operation of the user is provided, the operation of the user is simplified, and the flashing process of the flash lamp is executed for a plurality of times so as to achieve the aim of asking for help or communication. In one possible design, after the flash lamp is controlled to flash according to the flash sequence corresponding to the first morse code in response to the second operation of the user, the flash lamp is controlled to flash according to the flash sequence corresponding to the first morse code in the background in response to a fifth operation of switching the background operation of the flashlight function or swit