CN111385414A - Flashlight control method and device, electronic equipment and storage medium - Google Patents

Flashlight control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111385414A
CN111385414A CN202010144876.9A CN202010144876A CN111385414A CN 111385414 A CN111385414 A CN 111385414A CN 202010144876 A CN202010144876 A CN 202010144876A CN 111385414 A CN111385414 A CN 111385414A
Authority
CN
China
Prior art keywords
flashlight
adjusting
user
path
touch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010144876.9A
Other languages
Chinese (zh)
Inventor
王建华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Wentai Information Technology Co Ltd
Original Assignee
Shanghai Wentai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Wentai Information Technology Co Ltd filed Critical Shanghai Wentai Information Technology Co Ltd
Priority to CN202010144876.9A priority Critical patent/CN111385414A/en
Publication of CN111385414A publication Critical patent/CN111385414A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • G06F3/04855Interaction with scrollbars
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a flashlight control method, a flashlight control device, electronic equipment and a storage medium, wherein a graphic symbol representing the flashlight function is displayed on a touch display of the electronic equipment, different functions are realized according to different touch operations of a user on the graphic symbol, and when the user touches the graphic symbol and the duration is less than a time threshold, the flashlight is controlled to switch the state of the flashlight, for example, the flashlight is turned on or turned off; when the user touches the graphical symbol and the duration time is longer than the time threshold, a first control interface is displayed, so that the target working mode of the flashlight is set according to the touch operation of the user on the first control interface, the switching function of the flashlight can be realized, the working mode of the flashlight can be set, the use scene of the flashlight is expanded, and the user experience is improved.

Description

Flashlight control method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a flashlight control method, a flashlight control device, electronic equipment and a storage medium.
Background
At present, a camera light supplement lamp is used as a flashlight for a mobile phone, a user can only turn on and off and adjust the brightness, but the brightness effect is too monotonous and hard for some scenes for reading or household use, for example, the cold day cannot realize a warm light effect, and the hot day cannot realize a cold light effect; the user can not adjust and control the color temperature of the mobile phone because the user can not use the single warm light lamp when reading a book.
Disclosure of Invention
In view of the above, an object of the embodiments of the present invention is to provide a flashlight control method, device, electronic device and storage medium, so as to improve the above-mentioned problems.
The technical scheme adopted by the invention is as follows:
in a first aspect, the invention provides a flashlight control method, which is applied to an electronic device, wherein a touch display is arranged on the electronic device, and graphic symbols are displayed on the touch display; the flashlight control method comprises the following steps:
acquiring first touch information of a user on the graphic symbol; the graphical symbol is used for a flashlight control function of the electronic device;
when the first touch information is that the graphic symbol is touched and the duration time is less than a time threshold, controlling to switch the state of the flashlight, wherein the state of the flashlight comprises a lighting state or a closing state;
and when the first touch information is that the graphical symbol is touched and the duration time is longer than a time threshold value, displaying a first control interface to set a target working mode of the flashlight according to the touch operation of a user on the first control interface.
In an optional embodiment, the step of displaying a first control interface to set the target operation mode of the flashlight according to the touch operation of the user on the first control interface includes:
acquiring second touch information of a user on the first control interface, wherein the second touch information comprises a function mode selected by the user, and the function mode comprises a cold light mode, a warm light mode or a cold and warm mixing mode;
setting the functional mode selected by the user as a target functional mode of the flashlight.
In an optional embodiment, after the step of displaying the first control interface to set the target operation mode of the flashlight according to the touch operation of the user on the first control interface, the method further comprises:
and when the flashlight is in the lighting state, controlling the flashlight to light according to the target working mode.
In an alternative embodiment, when the state of the flashlight is an illuminated state, the flashlight control method further comprises:
displaying a second control interface on a touch display of the electronic equipment, wherein the second control interface comprises an adjusting path and an adjusting block on the adjusting path;
responding to touch and movement of a user on the adjusting path, and dynamically adjusting the relative position of the adjusting block and the adjusting path;
and adjusting the color temperature of the flashlight light according to the relative position of the adjusting block and the adjusting path.
In an optional embodiment, the step of adjusting the color temperature of the flashlight light according to the relative position of the adjusting block and the adjusting path comprises:
when the adjusting block is relatively located at the middle point of the adjusting path, the color temperature of the flashlight light is adjusted to be the same as the intensity of the cold light and the warm light.
In an alternative embodiment, the adjustment path includes opposing first and second ends; the step of adjusting the color temperature of the flashlight light according to the relative position of the adjusting block and the adjusting path further comprises:
when the position of the adjusting block relative to the adjusting path moves from the middle point of the adjusting path to the first end, the intensity of the cold light for adjusting the flashlight is uniformly increased, and when the position of the adjusting block relative to the adjusting path is located at the first end, the intensity of the cold light is increased to the maximum;
the warm light intensity of the flashlight is adjusted to be uniformly reduced, and when the adjusting block is located at the first end relative to the position of the adjusting path, the warm light intensity is reduced to be minimum.
In an optional embodiment, the step of adjusting the color temperature of the flashlight light according to the relative position of the adjusting block and the adjusting path further includes:
when the position of the adjusting block relative to the adjusting path moves from the middle point of the adjusting path to the second end, the warm light intensity of the flashlight is adjusted to be uniformly increased, and when the position of the adjusting block relative to the adjusting path is located at the second end, the warm light intensity is increased to be maximum;
the cold light intensity of the flashlight is adjusted to be uniformly reduced, and the cold light intensity is reduced to the minimum when the adjusting block is located at the second end relative to the position of the adjusting path.
In a second aspect, the present invention provides a flashlight control device applied to an electronic device, the flashlight control device being configured to perform the method according to any one of the preceding embodiments, the flashlight control device comprising:
the display module is used for displaying a graphic symbol on a touch display of the electronic equipment, and the graphic symbol is used for a flashlight control function of the electronic equipment;
the acquisition module is used for acquiring first touch information of the user on the graphic symbol;
the control module is used for controlling to switch the state of the flashlight when the first touch information is that the graphic symbol is touched and the time is less than a time threshold, wherein the state of the flashlight comprises a lighting state or a closing state;
the control module is further used for displaying a first control interface to set a target working mode of the flashlight according to the touch operation of a user on the first control interface when the first touch information is that the graphical symbol is touched and the time is greater than a time threshold.
In a third aspect, the present invention provides an electronic device comprising a processor configured to execute computer-readable instructions to implement the steps of the method according to any one of the preceding embodiments.
In a fourth aspect, the present invention provides a storage medium storing computer readable instructions which, when executed by a processor, implement the steps of the method according to any one of the preceding embodiments. Compared with the prior art, the invention has the following beneficial effects:
according to the flashlight control method, the flashlight control device, the storage medium and the electronic equipment, the graphical symbol representing the flashlight function is displayed on the touch display of the electronic equipment, different functions are realized according to different touch operations of a user on the graphical symbol, and when the user touches the graphical symbol and the duration is less than a time threshold, the flashlight is controlled to switch the state of the flashlight, for example, the flashlight is turned on or turned off; when the user touches the graphical symbol and the duration time is longer than the time threshold, a first control interface is displayed, so that the target working mode of the flashlight is set according to the touch operation of the user on the first control interface, the switching function of the flashlight can be realized, the working mode of the flashlight can be set, the use scene of the flashlight is expanded, and the user experience is improved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 shows a schematic diagram of an electronic device provided by the present invention.
Fig. 2 shows a flow chart of a flashlight control method provided by the invention.
Fig. 3 is a flow chart illustrating another flashlight control method provided by the present invention.
Fig. 4 is a flow chart illustrating another flashlight control method provided by the present invention.
Fig. 5 shows a functional module schematic diagram of a flashlight control device provided by the invention.
Icon: 200-an electronic device; 211-a memory; 212-a storage controller; 213-a processor; 214-peripheral interface; 215-input-output unit; 216-a display unit; 300-flashlight controls; 310-a display module; 320-an acquisition module; 330-control module.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present invention, it should be noted that the terms "upper", "lower", "left", "right", "inner", "outer", and the like indicate orientations or positional relationships based on orientations or positional relationships shown in the drawings or orientations or positional relationships that are conventionally arranged when the products of the present invention are used, and are used for convenience of description and simplicity of description only, and do not indicate or imply that the devices or elements indicated must have a specific orientation, be constructed in a specific orientation, and be operated, and thus, should not be construed as limiting the present invention.
In the description of the present invention, it should also be noted that, unless otherwise explicitly specified or limited, the terms "disposed," "mounted," "connected," and "connected" are to be construed broadly and may, for example, be fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements.
In the description of the present invention, it should also be noted that relational terms such as first and second, and the like, may be used solely herein to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. The terms "horizontal", "vertical", "overhang" and the like do not imply that the components are required to be absolutely horizontal or overhang, but may be slightly inclined. For example, "horizontal" merely means that the direction is more horizontal than "vertical" and does not mean that the structure must be perfectly horizontal, but may be slightly inclined. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
At present, a camera light supplement lamp is used as a flashlight for a mobile phone, a user can only turn on and off and adjust the brightness, but the brightness effect is too monotonous and hard for some scenes for reading or household use, for example, the cold day cannot realize a warm light effect, and the hot day cannot realize a cold light effect; the user can not adjust and control the color temperature of the mobile phone because the user can not use the single warm light lamp when reading a book.
Referring to fig. 1, the present embodiment provides an electronic device 200, where the electronic device 200 may be, but is not limited to, a mobile terminal such as a smart phone, a tablet computer, a personal digital assistant, and the like. The electronic device 200 includes a flashlight control device, a memory 211, a memory controller 212, a processor 213, a peripheral interface 214, an input/output unit 215, and a display unit 216.
The memory 211, the memory controller 212, the processor 213, the peripheral interface 214, the input/output unit 215, and the display unit 216 are electrically connected to each other directly or indirectly to implement data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The flashlight control device includes at least one software function module which may be stored in the memory 211 in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the electronic device. The processor 213 is used to execute executable modules stored in the memory 211, such as software functional modules and computer programs included in the flashlight control device.
The Memory 211 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 211 is used for storing programs (including operating system programs), and the processor 213 executes the programs after receiving the execution instructions. Access to the memory 211 by the processor 213 and possibly other components may be under the control of the memory controller 212.
The processor 213 may be an integrated circuit chip having signal processing capabilities. The Processor 213 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor 213 may be any conventional processor or the like.
The peripheral interface 214 couples various input/output devices (e.g., an input/output unit 215 and a display unit 216) to the processor 213 and the memory 211. In some embodiments, the peripheral interface 214, the processor 213, and the memory controller 212 may be implemented in a single chip. In other examples, they may be implemented separately from the individual chips.
The input/output unit 215 is used for providing input data for a user to realize the interaction of the user and the electronic device. The input/output unit 215 may be, but is not limited to, a touch screen, a virtual keyboard, a voice input circuit, and the like.
The display unit 216 provides an interactive interface (e.g., a user operation interface) between the electronic device and a user or for displaying image data. In this embodiment, the display unit 216 may be a touch display. In the case of a touch display, the display can be a capacitive touch screen or a resistive touch screen, which supports single-point and multi-point touch operations. Supporting single-point and multi-point touch operations means that the touch display can sense touch operations generated from one or more locations on the touch display, and the sensed touch operations are sent to the processor 213 for calculation and processing.
The electronic device is further provided with at least two types of LED lamps (not shown), including a cold light LED lamp and a warm light LED lamp, which are electrically connected to the processor 213 for adjusting the operating state under the control of the processor 213.
In order to solve the problems that the existing electronic equipment such as a mobile phone cannot select a light mode and cannot adjust color temperature, the embodiment provides a flashlight control method based on the electronic equipment. Referring to fig. 2, fig. 2 is a schematic flow chart illustrating a flashlight control method according to the present embodiment. The flashlight control method comprises the steps 110 to 140.
Step 110: acquiring first touch information of a user on a graphic symbol; the graphical symbol is for a flashlight control function of the electronic device.
The electronic equipment comprises a touch display, and a graphic symbol is displayed on the touch display of the electronic equipment and represents a flashlight control function of the electronic equipment. In a possible implementation manner, the graphic symbol may be displayed as an icon of a flashlight, but is not limited thereto, and the graphic symbol may be an image symbol, a text symbol, and the like, which is not limited in this embodiment.
When the user controls the graphic symbol, first touch information of the user on the graphic symbol is obtained. It can be understood that the user can perform touch operations such as long pressing, short pressing, clicking dragging and the like on the graphic symbol, and different functional interfaces can be accessed according to different operations of the user on the graphic symbol, so that different functions are provided.
Step 120: when the first touch information is a touch graphic symbol and the duration time is less than a time threshold, controlling to switch the state of the flashlight, wherein the state of the flashlight comprises a lighting state or a closing state.
When the first touch information controlled by the user is used for controlling the graphic symbol and the duration time is less than the time threshold, determining that the user performs short-press operation on the graphic symbol, controlling the flashlight to switch the state of the flashlight at the moment, wherein the state of the flashlight comprises a lighting state or a closing state, and if the current state of the flashlight is the lighting state, switching the state of the flashlight to the closing state after the user presses the graphic symbol for a short time; and if the current state of the flashlight is the off state, switching the state of the flashlight into the lighting state after the user presses the graphic symbol for a short time.
In one possible embodiment, the time threshold may be set to 800 milliseconds, but is not limited thereto, and may be set to other time lengths.
Step 130: and when the first touch information is a touch graphic symbol and the duration time is greater than a time threshold, displaying a first control interface to set a target working mode of the flashlight according to the touch operation of a user on the first control interface.
When the first touch information is a touch graphic symbol and the duration is greater than a time threshold, determining that the user presses the graphic symbol for a long time, and when the user presses the graphic symbol for a long time, displaying a first control interface, wherein the first control interface is used for providing the user with an operation mode of setting a flashlight, such as a cold light mode, a warm light mode or a cold and warm mixing mode.
According to the flashlight control method, the graphical symbols representing the flashlight functions are displayed on the touch display of the electronic equipment, different functions are realized according to different touch operations of a user on the graphical symbols, and when the user presses a short time, the flashlight is controlled to switch the state of the flashlight, for example, the flashlight is turned on or turned off; when a user presses the graphical symbol for a long time, the first control interface is displayed, so that the target working mode of the flashlight is set according to the touch operation of the user on the first control interface, the switch function of the flashlight can be realized, the working mode of the flashlight can be set, the use scene of the flashlight is expanded, and the user experience is improved.
The first control interface is used for setting the working modes of the flashlight for a user, and the working modes comprise a cold light mode, a warm light mode and a cold and warm mixing mode. In a possible implementation manner, a plurality of display regions are provided on the first control interface, each display region corresponds to one working mode, and the display regions corresponding to the cold light mode, the warm light mode, and the cool-warm mixing mode may be simultaneously displayed on the first control interface, or of course, at least one of the display regions may be displayed, and the switching is performed by using a switching button. Referring to fig. 3, step 130 includes the following sub-steps.
Step 130-1: and acquiring second touch information of the user on the first control interface, wherein the touch information of the second touch gesture comprises a function mode selected by the user, and the function mode comprises a cold light mode, a warm light mode or a cold and warm mixing mode.
When a user performs a touch operation on a display area corresponding to a cold light mode, a warm light mode, or a cool-warm mixing mode on the first control interface, second touch information of the user on the first control interface is obtained, for example, the second touch information may be a setting of the cold light mode, the warm light mode, or the cool-warm mixing mode.
Step 130-2: the functional mode selected by the user is set to the target functional mode of the flashlight.
The functional mode selected by the user is set to the target functional mode of the flashlight. If the user touches or clicks the display area corresponding to the cold light mode, setting the target working mode of the flashlight as the cold light mode; and if the user touches or clicks the display area corresponding to the warm light mode, setting the target working mode of the flashlight to be the warm light mode, and if the user touches or clicks the display area corresponding to the cold-warm mixing mode, setting the target working mode of the flashlight to be the cold-warm mixing mode.
After the target working mode of the flashlight is set, if the state of the flashlight is the lighting state, the flashlight is directly lit according to the corresponding target working mode, referring to fig. 4, the flashlight control method further includes the following steps:
step 140: and when the flashlight is in the lighting state, controlling the flashlight to light according to the target working mode.
And after the working mode of the flashlight is set, the first control interface is exited, and at the moment, if the current state of the flashlight is the lighting state, the flashlight is controlled to be lit according to the set target working mode.
For example, if the target operation mode of the flashlight is a cold light mode, the flashlight is controlled to emit cold light; and if the target working mode of the flashlight is a warm light mode, controlling the flashlight to emit warm light.
It should be noted that, after the first control interface is exited, when the current state of the flashlight is the off state, the flashlight function is exited.
Step 150: displaying a second control interface on a touch display of the electronic equipment, wherein the second control interface is used for providing users with the color temperature of flashlight light; the second control interface includes an adjustment path and an adjustment block on the adjustment path.
When the flashlight is in a lighting state, displaying a second control interface on a touch display of the electronic equipment, wherein the second control interface is used for providing users with the color temperature of the flashlight light; the second control interface comprises an adjusting path, the adjusting path comprises a first end and a second end which are opposite, wherein the first end of the adjusting path represents cold light, the second end of the adjusting path represents warm light, an adjusting block is displayed on the adjusting path, the adjusting block can be a graph or a symbol representing a sliding block or a scale, a pointer and the like, and the relative position of the adjusting block and the adjusting path represents the color temperature of flashlight light. For example, when the relative position of the adjusting block and the adjusting path is the middle point of the adjusting path, it indicates that the cold light and the warm light are the same in intensity. If the adjusting block is located in the area between the middle point and the first end of the adjusting path, the adjusting block is a cold light area and a warm light area, and if the adjusting block is located in the area between the middle point and the second end of the adjusting path, the adjusting block is a warm light area stronger than the cold light area.
Step 151: and responding to the touch and the movement of the user on the adjustment path, and dynamically adjusting the relative position of the adjusting block and the adjustment path.
When a user touches or moves on the adjusting path, the relative position of the adjusting block and the adjusting path is dynamically adjusted. In one possible implementation manner, the adjusting block may be moved on the adjusting path in response to the touch and movement of the user on the adjusting path to change the position of the adjusting block relative to the adjusting path.
In a possible implementation manner, the adjustment path may be a straight line, an arc, or a ring, and the present embodiment is not limited thereto.
Step 152: and adjusting the color temperature of the flashlight light according to the relative position of the adjusting block and the adjusting path.
When the relative position of the adjusting block and the adjusting path changes, the color temperature of the flashlight light is adjusted according to the relative position of the adjusting block and the adjusting path.
When the adjusting block is relatively located at the middle point of the adjusting path, the color temperature of the flashlight light is adjusted to be the same as the intensity of the cold light and the warm light.
When the position of the adjusting block relative to the adjusting path moves from the middle point of the adjusting path to the first end, the cold light intensity of the adjusting flashlight is uniformly increased, and when the position of the adjusting block relative to the adjusting path is located at the first end, the cold light intensity is increased to the maximum; the intensity of the warm light of the flashlight is adjusted to be uniformly reduced, and the intensity of the warm light is reduced to be minimum when the adjusting block is positioned at the first end relative to the position of the adjusting path.
When the adjusting block moves from the middle point of the adjusting path to the second end when the position of the adjusting block relative to the adjusting path, the warm light intensity of the adjusting flashlight is uniformly increased, and when the position of the adjusting block relative to the adjusting path is located at the second end, the warm light intensity is increased to the maximum; the cold light intensity of the adjusting flashlight is uniformly reduced, and the cold light intensity is reduced to the minimum when the adjusting block is positioned at the second end relative to the position of the adjusting path. In one possible implementation, the intensity of the luminescence may be at least zero.
Through the adjusting path and the adjusting block on the second control interface, a user can easily control and adjust the color temperature of the flashlight light, and the proper light is selected according to different use scenes.
It should be noted that, the current second control interface is used to adjust the cold/warm light mode of the flashlight, in other embodiments of this embodiment, the second control interface may also be used to adjust the brightness, the flicker frequency, and the like of the flashlight, which is not limited in this embodiment; the first control interface and the second control interface may be two different operation interfaces on the touch display, or may be integrated in the same operation interface.
To execute the corresponding steps in the above embodiments and various possible embodiments, an implementation of a flashlight control device is given below, please refer to fig. 5, and fig. 5 is a schematic functional block diagram of a flashlight control device 300 provided by the present invention. It should be noted that the basic principle and the technical effects of the flashlight control device 300 according to the embodiment of the present invention are the same as those of the foregoing method embodiment, and for the sake of brief description, reference may be made to the corresponding contents of the foregoing method embodiment for the non-mentioned portions of the embodiment. The flashlight control device 300 is described below with reference to fig. 2 to 5, and the flashlight control device 300 includes: a display module 310, an acquisition module 320, and a control module 330.
The display module 310 is configured to display a graphic symbol on a touch display of the electronic device, where the graphic symbol represents a flashlight control function for the electronic device.
The obtaining module 320 is configured to obtain first touch information of the user on the graphic symbol.
Optionally, in a possible implementation manner, the obtaining module 320 may be configured to execute step 110 in each of the above-mentioned figures to achieve a corresponding technical effect.
The control module 330 is configured to control the flashlight to switch the state of the flashlight when the first touch information is the touch graphic symbol and the time is less than the time threshold, where the state of the flashlight includes an on state or an off state.
Optionally, in a possible implementation manner, the control module 330 may be configured to execute step 120 in each of the above-mentioned figures to achieve a corresponding technical effect.
The control module 330 is further configured to display the first control interface to set a target operating mode of the flashlight according to a touch operation of a user on the first control interface when the first touch information is the touch graphical symbol and the duration is greater than the time threshold.
Optionally, in a possible implementation manner, the control module 330 may be configured to execute the step 130 in each of the above figures to achieve the corresponding technical effect.
The control module 330 is configured to obtain second touch information of the first control interface, where the touch information of the second touch gesture includes a function mode selected by the user, the function mode includes a cold light mode, a warm light mode, and a cold/warm mixing mode, and the function mode selected by the user is set as a target function mode of the flashlight.
Optionally, in a possible implementation manner, the control module 330 may be configured to execute steps 130-1 to 130-2 in the above-mentioned figures to achieve corresponding technical effects.
The control module 330 is further configured to control the flashlight to light according to the target operating mode if the flashlight is in the lighting state.
Optionally, in a possible implementation manner, the control module 330 may be configured to execute step 140 in each of the above-mentioned figures to achieve a corresponding technical effect.
The display module 310 is further configured to display a second control interface on the touch display of the electronic device, where the second control interface is used for providing a user with a color temperature for adjusting flashlight light; the second control interface includes an adjustment path and an adjustment block on the adjustment path.
Optionally, in a possible implementation manner, the display module 310 may be configured to execute the step 150 in each of the above figures to achieve the corresponding technical effect.
The display module 310 is further configured to dynamically adjust the relative position of the adjustment block and the adjustment path in response to the touch and movement of the user on the adjustment path.
Optionally, in a possible implementation manner, the display module 310 may be configured to perform step 151 in each of the above-mentioned figures to achieve a corresponding technical effect.
The control module 330 is further configured to adjust the color temperature of the flashlight light according to the relative position of the adjustment block and the adjustment path.
Optionally, in a possible implementation manner, the control module 330 may be configured to execute step 152 in each of the above-mentioned figures to achieve a corresponding technical effect.
The present invention also provides a storage medium storing computer readable program instructions, such as the flashlight control device described above, which when executed by a processor implement the steps of the flashlight control method described above.
In summary, the present invention provides a flashlight control method, an apparatus, an electronic device and a storage medium, in which a graphic symbol representing a flashlight function is displayed on a touch display of the electronic device, different functions are implemented according to different touch operations of a user on the graphic symbol, and when the user touches the graphic symbol and the duration time is less than a time threshold, the flashlight is controlled to switch the state of the flashlight, for example, turn on the flashlight or turn off the flashlight; when the user touches the graphical symbol and the duration time is longer than the time threshold, a first control interface is displayed, so that the target working mode of the flashlight is set according to the touch operation of the user on the first control interface, the switching function of the flashlight can be realized, the working mode of the flashlight can be set, the use scene of the flashlight is expanded, and the user experience is improved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A flashlight control method is characterized in that the flashlight control method is applied to electronic equipment, a touch display is arranged on the electronic equipment, and graphic symbols are displayed on the touch display; the flashlight control method comprises the following steps:
acquiring first touch information of a user on the graphic symbol; the graphical symbol is used for a flashlight control function of the electronic device;
when the first touch information is that the graphic symbol is touched and the duration time is less than a time threshold, controlling to switch the state of the flashlight, wherein the state of the flashlight comprises a lighting state or a closing state;
and when the first touch information is that the graphical symbol is touched and the duration time is longer than a time threshold value, displaying a first control interface to set a target working mode of the flashlight according to the touch operation of a user on the first control interface.
2. The method of claim 1, wherein the step of displaying the first control interface to set the target operating mode of the flashlight according to the user's touch operation on the first control interface comprises:
acquiring second touch information of a user on the first control interface, wherein the second touch information comprises a function mode selected by the user, and the function mode comprises a cold light mode, a warm light mode or a cold and warm mixing mode;
setting the functional mode selected by the user as a target functional mode of the flashlight.
3. The method of claim 2, wherein after the step of displaying the first control interface to set the target operating mode of the flashlight according to the user's touch operation on the first control interface, the method further comprises:
and when the flashlight is in the lighting state, controlling the flashlight to light according to the target working mode.
4. The flashlight control method of claim 1, wherein when the state of the flashlight is an illuminated state, the flashlight control method further comprises:
displaying a second control interface on a touch display of the electronic equipment, wherein the second control interface comprises an adjusting path and an adjusting block on the adjusting path;
responding to touch and movement of a user on the adjusting path, and dynamically adjusting the relative position of the adjusting block and the adjusting path;
and adjusting the color temperature of the flashlight light according to the relative position of the adjusting block and the adjusting path.
5. The flashlight control method of claim 4, wherein the step of adjusting the color temperature of the flashlight light based on the relative position of the adjustment block and the adjustment path comprises:
when the adjusting block is relatively located at the middle point of the adjusting path, the color temperature of the flashlight light is adjusted to be the same as the intensity of the cold light and the warm light.
6. The method of claim 5, wherein the adjustment path includes opposing first and second ends; the step of adjusting the color temperature of the flashlight light according to the relative position of the adjusting block and the adjusting path further comprises:
when the position of the adjusting block relative to the adjusting path moves from the middle point of the adjusting path to the first end, the intensity of the cold light for adjusting the flashlight is uniformly increased, and when the position of the adjusting block relative to the adjusting path is located at the first end, the intensity of the cold light is increased to the maximum;
the warm light intensity of the flashlight is adjusted to be uniformly reduced, and when the adjusting block is located at the first end relative to the position of the adjusting path, the warm light intensity is reduced to be minimum.
7. The method of claim 6, wherein the step of adjusting the color temperature of the flashlight light according to the relative position of the adjustment block and the adjustment path further comprises:
when the position of the adjusting block relative to the adjusting path moves from the middle point of the adjusting path to the second end, the warm light intensity of the flashlight is adjusted to be uniformly increased, and when the position of the adjusting block relative to the adjusting path is located at the second end, the warm light intensity is increased to be maximum;
the cold light intensity of the flashlight is adjusted to be uniformly reduced, and the cold light intensity is reduced to the minimum when the adjusting block is located at the second end relative to the position of the adjusting path.
8. A flashlight control device applied to an electronic device and used for executing the method of any one of claims 1-7, the flashlight control device comprising:
the display module is used for displaying a graphic symbol on a touch display of the electronic equipment, and the graphic symbol is used for a flashlight control function of the electronic equipment;
the acquisition module is used for acquiring first touch information of the user on the graphic symbol;
the control module is used for controlling to switch the state of the flashlight when the first touch information is that the graphic symbol is touched and the time is less than a time threshold, wherein the state of the flashlight comprises a lighting state or a closing state;
the control module is further used for displaying a first control interface to set a target working mode of the flashlight according to the touch operation of a user on the first control interface when the first touch information is that the graphical symbol is touched and the time is greater than a time threshold.
9. An electronic device, comprising a processor configured to execute computer-readable instructions to implement the steps of the method according to any one of claims 1 to 7.
10. A storage medium storing computer readable instructions which, when executed by a processor, carry out the steps of the method according to any one of claims 1 to 7.
CN202010144876.9A 2020-03-04 2020-03-04 Flashlight control method and device, electronic equipment and storage medium Pending CN111385414A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010144876.9A CN111385414A (en) 2020-03-04 2020-03-04 Flashlight control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010144876.9A CN111385414A (en) 2020-03-04 2020-03-04 Flashlight control method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111385414A true CN111385414A (en) 2020-07-07

Family

ID=71217102

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010144876.9A Pending CN111385414A (en) 2020-03-04 2020-03-04 Flashlight control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111385414A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112469169A (en) * 2020-10-26 2021-03-09 宁波众心电子科技有限公司 Flashlight control method and device, storage medium and flashlight

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107450726A (en) * 2017-08-01 2017-12-08 上海传英信息技术有限公司 A kind of flashlight brightness adjusting method and terminal, computer-readable recording medium
CN206738987U (en) * 2017-04-07 2017-12-12 北京小米移动软件有限公司 Flashlight

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN206738987U (en) * 2017-04-07 2017-12-12 北京小米移动软件有限公司 Flashlight
CN107450726A (en) * 2017-08-01 2017-12-08 上海传英信息技术有限公司 A kind of flashlight brightness adjusting method and terminal, computer-readable recording medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112469169A (en) * 2020-10-26 2021-03-09 宁波众心电子科技有限公司 Flashlight control method and device, storage medium and flashlight

Similar Documents

Publication Publication Date Title
US10923043B2 (en) Lighting techniques for display devices
CN107637062B (en) Mobile computing device, method for executing mobile computing device and light source module
CN106919301B (en) Wallpaper preview method and system and wallpaper replacement method and system
US20210208746A1 (en) Human-computer interaction method of user terminal, apparatus, and user terminal
US10394346B2 (en) Using a hardware mouse to operate a local application running on a mobile device
CN109753326B (en) Processing method, device, equipment and machine readable medium
US20130176248A1 (en) Apparatus and method for displaying screen on portable device having flexible display
CN106293479B (en) Screen backlight brightness control method and mobile terminal
TWI482077B (en) Electronic device, method for viewing desktop thereof, and computer program product therof
US20150301730A1 (en) Object Suspension Realizing Method and Device
JP2015520465A (en) Split screen display method and apparatus, and electronic device thereof
KR20120093413A (en) Unlocking a touch screen device
US20180348947A1 (en) Control method and control device for working mode of touch screen
CN112114734B (en) Online document display method, device, terminal and storage medium
US11537265B2 (en) Method and apparatus for displaying object
WO2016183912A1 (en) Menu layout arrangement method and apparatus
US20170315703A1 (en) Projector playing control method, device, and computer storage medium
US10261666B2 (en) Context-independent navigation of electronic content
CN111385414A (en) Flashlight control method and device, electronic equipment and storage medium
CN107291235B (en) Control method and device
WO2019085810A1 (en) Processing method, device, apparatus, and machine-readable medium
CN112347294A (en) Method and system for eliminating lighting shadow
CN107257411B (en) Message reminding method and mobile terminal
TW201642112A (en) System and method for changing icon of application
CN108885527B (en) Method and device for operating multiple objects on pressure touch screen

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200707

RJ01 Rejection of invention patent application after publication