WO2020155031A1 - Display control method, electronic torch, and storage medium - Google Patents

Display control method, electronic torch, and storage medium Download PDF

Info

Publication number
WO2020155031A1
WO2020155031A1 PCT/CN2019/074210 CN2019074210W WO2020155031A1 WO 2020155031 A1 WO2020155031 A1 WO 2020155031A1 CN 2019074210 W CN2019074210 W CN 2019074210W WO 2020155031 A1 WO2020155031 A1 WO 2020155031A1
Authority
WO
WIPO (PCT)
Prior art keywords
acceleration
flame pattern
electronic torch
display control
control method
Prior art date
Application number
PCT/CN2019/074210
Other languages
French (fr)
Chinese (zh)
Inventor
文丹
李晓峰
Original Assignee
深圳市柔宇科技有限公司
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 深圳市柔宇科技有限公司 filed Critical 深圳市柔宇科技有限公司
Priority to PCT/CN2019/074210 priority Critical patent/WO2020155031A1/en
Priority to CN201980074381.9A priority patent/CN113260972A/en
Publication of WO2020155031A1 publication Critical patent/WO2020155031A1/en

Links

Images

Classifications

    • 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

Definitions

  • the present invention relates to the field of communication technology, in particular to a display control method, an electronic torch and a storage medium.
  • the torch is a sacred symbol, and the torches are ignited at some large-scale sports games.
  • the realization of the torch relay has become an important event to celebrate the opening of the games.
  • the flame of a traditional torch is produced by burning chemical fuels, and the combustion of chemical fuels will produce exhaust gas, which has a negative impact on the environment. Therefore, the electronic torch came into being.
  • the electronic torch displays the dynamic pattern of the flame by controlling the display screen to vividly simulate and restore the flame of the traditional torch, so as to fully demonstrate the beauty of civilization and technology.
  • the purpose of the present invention is to provide a display control method, an electronic torch and a storage medium.
  • the object of the present invention is achieved by adopting the following technical solutions: to provide a display control method applied to an electronic torch, the electronic torch includes a display screen, and the display control method includes: displaying a first flame pattern on the display screen; The movement information of the electronic torch; judging whether the movement state of the electronic torch has changed according to the detected movement information; and when the movement state of the electronic torch changes, the display screen is controlled to display according to the movement information The first flame pattern is switched to a second flame pattern, and the second flame pattern is different from the first flame pattern.
  • the present invention also provides an electronic torch.
  • the electronic torch includes: a display screen for displaying flame patterns; a sensor for detecting movement information of the electronic torch; and a memory for storing a computer-readable display control program And a processor, which implements the aforementioned display control method when the processor calls the display control program.
  • the present invention also provides a storage medium that stores a computer-executable display control program, and when the computer-executable display control program is called by a computer, the computer executes the aforementioned display control method.
  • the display control method, electronic torch and storage medium provided by the present invention can simulate the flame in the traditional torch by displaying the first flame pattern on the display screen when the electronic torch is turned on.
  • a sensor is installed on the electronic torch, the sensor is used to detect the movement information of the electronic torch, and according to the detected movement information, it is judged whether the movement state of the electronic torch has changed.
  • the control display screen switches the first flame pattern to the second flame pattern, where the first flame pattern and the second display pattern are different to simulate the movement of the flame of the traditional torch, the flame changes following the movement of the torch.
  • FIG. 1 is a flow chart of the steps of a display control method provided by an embodiment of the present invention.
  • Fig. 2 is a schematic diagram showing the first flame pattern on the display screen of the electronic torch.
  • Fig. 3 is a flowchart of specific steps of step S103 in Fig. 1.
  • FIG. 4A is a flowchart of specific steps of step S104 in FIG. 1.
  • Fig. 4B is a graph showing the relationship between acceleration and tilt.
  • Fig. 5A shows the second flame pattern displayed on the display screen when the electronic torch is along the first acceleration direction and the acceleration is a1.
  • Fig. 5B is the second flame pattern displayed on the electronic torch display screen when the electronic torch is along the first acceleration direction and the acceleration is a2, and a2 is greater than a1.
  • Figure 5C shows the second flame pattern displayed on the display screen when the electronic torch is in the second acceleration direction and the acceleration is a3.
  • Figure 5D shows the second flame pattern displayed on the electronic torch display screen when the electronic torch is along the second acceleration direction, and the acceleration is a4, and
  • FIG. 6 is a flowchart of steps of a display control method provided by another embodiment of the present invention.
  • FIG. 7A is a flowchart of specific steps of step S106 in FIG. 6.
  • Fig. 7B is a diagram showing the positional relationship between the third flame pattern and the first flame pattern and the second flame pattern displayed on the display screen when the electronic torch makes a decelerating movement after displaying the second flame pattern.
  • Fig. 7C is a diagram showing the positional relationship between the third flame pattern and the first flame pattern and the second flame pattern displayed on the display screen when the electronic torch performs an accelerated motion after displaying the second flame pattern.
  • Fig. 8 is a structural block diagram of an electronic torch provided by the present invention.
  • the first electronic torch in the present invention may include other functions such as personal digital assistant (PDA) and/or portable multimedia player (PMP) functions such as portable communication devices, such as electronic paper, e-books, car monitors, tablet computers, smart phones , Smart watches, smart bracelets, etc.
  • PDA personal digital assistant
  • PMP portable multimedia player
  • portable communication devices such as electronic paper, e-books, car monitors, tablet computers, smart phones , Smart watches, smart bracelets, etc.
  • Exemplary embodiments of the portable electronic device include, but are not limited to, a portable first electronic torch equipped with other operating systems of iOS@Android@Windows Phone@ ⁇ .
  • the first electronic torch generally supports multiple applications, such as one or more of the following: drawing applications, rendering applications, word processing applications, web page creation applications, disk editing applications, spreadsheet applications, games Apps, phone apps, video conferencing apps, email apps, instant messaging apps, exercise support apps, photo management apps, digital camera apps, digital video camera apps, web browsing apps, digital music Player application, and/or digital video player application.
  • applications such as one or more of the following: drawing applications, rendering applications, word processing applications, web page creation applications, disk editing applications, spreadsheet applications, games Apps, phone apps, video conferencing apps, email apps, instant messaging apps, exercise support apps, photo management apps, digital camera apps, digital video camera apps, web browsing apps, digital music Player application, and/or digital video player application.
  • the present invention provides a display control method, an electronic torch and a storage medium.
  • the electronic torch has a display screen.
  • a first flame pattern is displayed on the display screen to simulate the flames in a traditional torch.
  • a sensor is installed on the electronic torch, the sensor is used to detect the movement information of the electronic torch, and according to the detected movement information, it is judged whether the movement state of the electronic torch has changed.
  • the control display screen switches the first flame pattern to the second flame pattern, where the first flame pattern and the second display pattern are different to simulate the movement of the flame of the traditional torch, the flame changes following the movement of the torch.
  • an embodiment of the present invention provides a display control method applied to an electronic torch.
  • the display control method includes the steps:
  • Step S101 Display a first flame pattern on the display screen.
  • the electronic torch 10 includes a display screen 101 and a handle 102.
  • the display screen 101 is used to display a flame pattern to simulate the flame of a traditional torch.
  • the handle 102 is connected to the display screen 101 for holding by the user, so that the user can hold the electronic torch 10 through the handle 102.
  • the display screen 101 of the electronic torch 10 is activated, the first flame pattern is displayed on the display screen 101.
  • Step S102 Detect the movement information of the electronic torch.
  • the electronic torch 10 is also provided with a detection unit 103, which is installed on the handle 102 or integrated in the display screen 101 for acquiring the movement information of the electronic torch 10.
  • the detection unit 103 may be a speed sensor or an acceleration sensor.
  • Step S103 Determine whether the movement state of the electronic torch has changed according to the detected movement information.
  • the motion state of the electronic torch 10 refers to the state of the motion speed relative to the ground when the torch is in motion.
  • the motion information of the electronic torch 10 includes acceleration, and the acceleration includes the magnitude and direction of the acceleration.
  • the electronic torch 10 starts to move from a stationary state as an example for description.
  • the speed of the electronic torch 10 can be obtained by detecting the acceleration of the electronic torch 10 by the detection unit 103, that is, by detecting the acceleration of the electronic torch 10 It can be known whether the movement state of the electronic torch 10 has changed.
  • the detection unit 103 is an acceleration sensor, and the acceleration sensor is used to obtain the acceleration of the electronic torch 10.
  • step S103 includes:
  • Step S1031 Determine whether the electronic torch performs a variable speed motion according to the acceleration.
  • the electronic torch 10 When the acceleration is greater than zero, the electronic torch 10 is determined to be accelerating. When the acceleration is less than zero, the electronic torch 10 is determined to be decelerating. When the acceleration is equal to zero, it is determined that the electronic torch 10 is moving at a constant speed or the electronic torch 10 is stationary. Wherein, when the electronic torch 10 performs a variable speed movement such as an acceleration movement or a deceleration movement, it is determined that the movement state of the electronic torch 10 has changed.
  • a variable speed movement such as an acceleration movement or a deceleration movement
  • Step S1032 When the electronic torch moves at a variable speed, it is determined that the movement state of the electronic torch has changed.
  • the movement state refers to the state of the movement speed relative to the ground when the torch is moving.
  • the electronic torch 10 performs a variable speed movement such as acceleration or deceleration, the speed and/or direction of the electronic torch 10 changes, that is, it is determined
  • the movement state of the electronic torch 10 changes.
  • Step S104 When the motion state of the electronic torch changes, control the display screen to switch the displayed first flame pattern to a second flame pattern according to the motion information, and the second flame pattern is the same as the second flame pattern.
  • the first flame pattern is different.
  • the first flame pattern is the flame pattern displayed when the electronic torch 10 is at rest.
  • the acceleration includes the magnitude and direction of acceleration, and the direction of acceleration includes the first acceleration direction and the second acceleration direction.
  • the first acceleration direction and the second acceleration direction are opposite to each other.
  • the acceleration direction of the electronic torch 10 is the speed direction of the electronic torch 10.
  • step S104 includes:
  • Step S1041 Calculate the amount of tilt according to the magnitude and direction of acceleration.
  • the amount of inclination is calculated according to the magnitude of acceleration and the direction of acceleration, which specifically includes, preset the corresponding relationship between the magnitude of acceleration, direction of acceleration, and amount of inclination, and calculate the corresponding amount of inclination by obtaining the magnitude and direction of acceleration. .
  • Step S1042 Obtain a flame pattern corresponding to the tilt amount as the second flame pattern according to the corresponding relationship between the tilt amount and the preset tilt amount and flame pattern.
  • the corresponding relationship between the inclination amount and the flame pattern is preset, and after the inclination amount is calculated by obtaining the magnitude and direction of acceleration, the flame pattern corresponding to the inclination amount is obtained as the second flame pattern.
  • the acceleration direction is the first acceleration direction and the acceleration magnitude is a1
  • the corresponding tilt is calculated as ⁇ 1
  • the flame pattern corresponding to ⁇ 1 As shown in FIG. 5A, the flame pattern is shifted in the direction opposite to the acceleration, and the flame pattern corresponding to the inclination amount ⁇ 1 is used as the second flame pattern.
  • the acceleration direction is the first acceleration direction
  • the acceleration magnitude is a2, and a2 is greater than a1
  • the calculated inclination amount is ⁇ 2
  • the flame pattern corresponding to ⁇ 2 is shown in Figure 5B.
  • the flame pattern shifts in the direction opposite to the acceleration ,
  • the flame pattern corresponding to the inclination amount ⁇ 2 is used as the second flame pattern.
  • the tilt amount of the second flame pattern in the second acceleration direction is greater than the tilt amount of the second flame pattern in the second acceleration direction when the acceleration magnitude is a1.
  • the acceleration direction is the second acceleration direction and the acceleration magnitude is a3, that is, when the electronic torch 10 is accelerating on the second acceleration square, the calculated inclination amount is ⁇ 3, and the flame pattern corresponding to ⁇ 3 is shown in Figure 5C , The flame pattern shifts to the direction opposite to the acceleration, and the flame pattern corresponding to the inclination amount ⁇ 3 is used as the second flame pattern.
  • the acceleration direction is the second acceleration direction
  • the acceleration magnitude is a4
  • is greater than
  • the calculated inclination is ⁇ 4
  • the flame pattern corresponding to ⁇ 4 is shown in Figure 5D.
  • the flame pattern is opposite to the acceleration The direction is shifted, and the flame pattern corresponding to the tilt amount ⁇ 4 is used as the second flame pattern.
  • the acceleration magnitude is a4
  • the tilt amount of the second flame pattern in the first acceleration direction is greater than the tilt amount of the second flame pattern in the first acceleration direction when the acceleration magnitude is a3.
  • the greater the absolute value of the acceleration the greater the inclination of the second flame pattern in the direction opposite to the acceleration, that is, the greater the deviation of the second flame pattern from the first flame pattern.
  • Step S1043 Display the acquired second flame pattern.
  • the display control method further includes:
  • Step S105 Detect whether the acceleration changes.
  • the detection unit 103 detects whether the acceleration of the electronic torch 10 changes.
  • Step S106 When the acceleration changes, control the display screen to switch the displayed second flame pattern to the third flame pattern, and the third flame pattern is different from the second flame pattern.
  • step S106 includes:
  • Step S1061 When the acceleration changes, obtain the acceleration magnitude and acceleration direction of the acceleration.
  • the direction of acceleration is obtained to determine whether the electronic torch 10 is accelerating or decelerating.
  • the magnitude of the acceleration is obtained to determine the amount of speed change per unit time when the electronic torch 10 is accelerating or decelerating. .
  • Step S1062 Calculate the tilt compensation amount according to the corresponding relationship between the acceleration magnitude, the acceleration direction and the preset acceleration magnitude, the acceleration direction and the tilt compensation amount.
  • the corresponding relationship between the acceleration magnitude, acceleration direction, and tilt compensation amount is preset, and the corresponding tilt compensation amount can be calculated by obtaining the acceleration magnitude and acceleration direction.
  • Step S1063 Obtain a third flame pattern according to the tilt compensation amount and the corresponding relationship between the preset tilt compensation amount and the third flame pattern.
  • the corresponding relationship between the tilt compensation amount and the third flame pattern is preset, and the corresponding third flame pattern is obtained by obtaining the tilt compensation amount.
  • Step S1064 controlling the display screen to switch the displayed second flame pattern to the third flame pattern.
  • the movement information of the electronic torch 10 also includes speed, where the speed includes the magnitude and direction of the speed.
  • the speed direction is the direction of movement of the electronic torch 10.
  • the electronic torch 10 10 After the second flame pattern is displayed on the display screen 101, the electronic torch 10 makes a decelerating motion, and the display position of the third flame pattern is between the display position of the second flame pattern and the display position of the first flame pattern, as shown in FIG. 7B .
  • the electronic torch 10 further includes a processor 104 and a memory 105.
  • the memory 104, the display screen 101, and the detection unit 103 are connected to the processor 105 through a bus 106.
  • the detection unit 103 is used to detect movement information of the electronic torch 10, and the movement information includes the speed and/or acceleration of the electronic torch 10.
  • the memory 104 includes at least one of the following: a random access memory, a non-volatile memory, and an external memory.
  • the memory 104 can be used to store a computer-executable program.
  • the computer-executable program includes a computer-executable display control program.
  • the processor 105 executes any of the foregoing display control methods by calling a computer-executable display control program stored in the memory 104.
  • the memory 104 mainly includes a program storage area and a data storage area.
  • the program storage area can store an operating system, an application program required by at least one function, etc.; the data storage area can store data created according to the use of the terminal, etc., that is, the memory 104 is a computer-readable storage medium.
  • the processor 105 is the control center of the electronic torch 10, which uses various interfaces and lines to connect the various parts of the entire electronic torch 10, and calls the programs and/or units stored in the memory 104 by running or executing the programs and/or units stored in the memory 104 104 to perform various functions of the terminal device and process data.
  • the processor 105 can be composed of an integrated circuit (Integrated Circuit, IC for short), for example, can be composed of a single packaged IC, or can be composed of multiple packaged ICs with the same function or different functions.
  • the processor 105 may only include a central processing unit, or a combination of a CPU, a digital signal processor (Digital Signal Processor, DSP for short), a GPU, and various control chips.
  • the CPU may be a single computing core or may include multiple computing cores.

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)
  • Pharmaceuticals Containing Other Organic And Inorganic Compounds (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

Disclosed in the present invention are a display control method, an electronic torch, and a storage medium. The display control method is applied to an electronic torch, and the electronic torch comprises a display screen. The display control method comprises: displaying a first flame pattern on the display screen; detecting motion information of the electronic torch; determining, according to the detected motion information, whether the motion state of the electronic torch changes; and if the motion state of the electronic torch changes, controlling the display screen to switch from the displayed first flame pattern to a second flame pattern according to the motion information, the second flame pattern being different from the first flame pattern.

Description

一种显示控制方法、电子火炬及存储介质Display control method, electronic torch and storage medium 技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种显示控制方法、电子火炬及存储介质。The present invention relates to the field of communication technology, in particular to a display control method, an electronic torch and a storage medium.
背景技术Background technique
火炬作为一种神圣的象征,在一些大型的运动会上火炬相互点燃,实现火炬传递已经转变成为庆祝运动会开幕的一项重要活动。The torch is a sacred symbol, and the torches are ignited at some large-scale sports games. The realization of the torch relay has become an important event to celebrate the opening of the games.
传统火炬的火苗是通过燃烧化学燃料产生,而化学燃料的燃烧会产生废气,对环境造成不良影响。因此,电子火炬应运而生,电子火炬是通过控制显示屏显示火苗的动态图案,从而生动的模拟还原传统火炬的火苗,以将人文之美和科技之美展现得淋漓尽致。The flame of a traditional torch is produced by burning chemical fuels, and the combustion of chemical fuels will produce exhaust gas, which has a negative impact on the environment. Therefore, the electronic torch came into being. The electronic torch displays the dynamic pattern of the flame by controlling the display screen to vividly simulate and restore the flame of the traditional torch, so as to fully demonstrate the beauty of humanity and technology.
现有的电子火炬在跟随使用者运动过程中,其显示的火苗无法模拟还原传统火炬的火苗在火炬运动过程中的状态变化。When the existing electronic torch follows the movement of the user, the displayed flame cannot simulate and restore the state change of the flame of the traditional torch during the movement of the torch.
发明内容Summary of the invention
为了克服现有技术的不足,本发明的目的在于提供一种显示控制方法、电子火炬及存储介质。In order to overcome the shortcomings of the prior art, the purpose of the present invention is to provide a display control method, an electronic torch and a storage medium.
本发明的目的采用如下技术方案实现:提供一种显示控制方法,应用于电子火炬,所述电子火炬包括显示屏,所述显示控制方法包括:显示第一火焰图案于所述显示屏;检测所述电子火炬的运动信息;根据检测到的运动信息判断所述电子火炬的运动状态是否发生变化;以及当所述电子火炬的运动状态发生变化时,根据所述运动信息控制所述显示屏将显示的所述第一火焰图案切换为第二火焰图案,所述第二火焰图案与所述第一火焰图案不同。The object of the present invention is achieved by adopting the following technical solutions: to provide a display control method applied to an electronic torch, the electronic torch includes a display screen, and the display control method includes: displaying a first flame pattern on the display screen; The movement information of the electronic torch; judging whether the movement state of the electronic torch has changed according to the detected movement information; and when the movement state of the electronic torch changes, the display screen is controlled to display according to the movement information The first flame pattern is switched to a second flame pattern, and the second flame pattern is different from the first flame pattern.
本发明还提供一种电子火炬,所述电子火炬包括:显示屏,用于显示火焰图案的显示屏;传感器,用于检测电子火炬的运动信息;存储器,用于储存计算机可读的显示控制程序;以及处理器,所述处理器调用所述显示控制程序时,实现前述的显示控制方法。The present invention also provides an electronic torch. The electronic torch includes: a display screen for displaying flame patterns; a sensor for detecting movement information of the electronic torch; and a memory for storing a computer-readable display control program And a processor, which implements the aforementioned display control method when the processor calls the display control program.
本发明还提供一种存储介质,所述存储介质存储有计算机可执行的显示控制程序,所述计算机可执行的显示控制程序在被计算机调用时,使所述计算机执行前述的显示控制方法。The present invention also provides a storage medium that stores a computer-executable display control program, and when the computer-executable display control program is called by a computer, the computer executes the aforementioned display control method.
与现有技术相比,本发明所提供的一种显示控制方法、电子火炬及存储介质,通过在电子火炬开启时,显示第一火焰图案于显示屏,以模拟传统火炬中的火苗。同时,在电子火炬上设置传感器,利用传感器检测电子火炬的运动信息,并根据检测到的运动信息判断电子火炬的运动状态是否发生变化,当电子火炬的运动发生变化时,根据电子火炬的运动信息控制显示屏将第一火焰图案切换为第二火焰图案,其中,第一火焰图案和第二显示图案不相同,以模拟传统火炬的火苗在运动过程中,火苗跟随火炬运动而发生变化。Compared with the prior art, the display control method, electronic torch and storage medium provided by the present invention can simulate the flame in the traditional torch by displaying the first flame pattern on the display screen when the electronic torch is turned on. At the same time, a sensor is installed on the electronic torch, the sensor is used to detect the movement information of the electronic torch, and according to the detected movement information, it is judged whether the movement state of the electronic torch has changed. When the movement of the electronic torch changes, according to the movement information of the electronic torch The control display screen switches the first flame pattern to the second flame pattern, where the first flame pattern and the second display pattern are different to simulate the movement of the flame of the traditional torch, the flame changes following the movement of the torch.
附图说明Description of the drawings
图1为本发明一实施例提供的显示控制方法的步骤流程图。FIG. 1 is a flow chart of the steps of a display control method provided by an embodiment of the present invention.
图2为显示第一火焰图案于电子火炬的显示屏的示意图。Fig. 2 is a schematic diagram showing the first flame pattern on the display screen of the electronic torch.
图3为图1中的步骤S103的具体步骤流程图。Fig. 3 is a flowchart of specific steps of step S103 in Fig. 1.
图4A为图1中的步骤S104的具体步骤流程图。FIG. 4A is a flowchart of specific steps of step S104 in FIG. 1.
图4B为加速度和倾斜量之间的曲线关系图。Fig. 4B is a graph showing the relationship between acceleration and tilt.
图5A为电子火炬沿第一加速度方向,且加速度大小为a1时,显示屏所显示的第二火焰图案。Fig. 5A shows the second flame pattern displayed on the display screen when the electronic torch is along the first acceleration direction and the acceleration is a1.
图5B为电子火炬沿第一加速度方向,且加速度大小为a2,a2大于a1时,电子火炬显示屏所显示的第二火焰图案。Fig. 5B is the second flame pattern displayed on the electronic torch display screen when the electronic torch is along the first acceleration direction and the acceleration is a2, and a2 is greater than a1.
图5C为电子火炬沿第二加速度方向,且加速度大小为a3时,显示屏所显示 的第二火焰图案。Figure 5C shows the second flame pattern displayed on the display screen when the electronic torch is in the second acceleration direction and the acceleration is a3.
图5D为电子火炬沿第二加速度方向,且加速度大小为a4,且|a4|大于|a3|时,电子火炬显示屏所显示的第二火焰图案。Figure 5D shows the second flame pattern displayed on the electronic torch display screen when the electronic torch is along the second acceleration direction, and the acceleration is a4, and |a4| is greater than |a3|.
图6为本发明另一实施例提供的显示控制方法的步骤流程图。FIG. 6 is a flowchart of steps of a display control method provided by another embodiment of the present invention.
图7A为图6中的步骤S106的具体步骤流程图。FIG. 7A is a flowchart of specific steps of step S106 in FIG. 6.
图7B为电子火炬在显示第二火焰图案后做减速运动时,显示屏所显示的第三火焰图案与第一火焰图案、第二火焰图案之间的位置关系图。Fig. 7B is a diagram showing the positional relationship between the third flame pattern and the first flame pattern and the second flame pattern displayed on the display screen when the electronic torch makes a decelerating movement after displaying the second flame pattern.
图7C为电子火炬在显示第二火焰图案后做加速运动时,显示屏所显示的第三火焰图案与第一火焰图案、第二火焰图案之间的位置关系图。Fig. 7C is a diagram showing the positional relationship between the third flame pattern and the first flame pattern and the second flame pattern displayed on the display screen when the electronic torch performs an accelerated motion after displaying the second flame pattern.
图8为本发明提供的一种电子火炬结构框图。Fig. 8 is a structural block diagram of an electronic torch provided by the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the objectives, technical solutions, and advantages of the present invention clearer, the following further describes the present invention in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and do not have to be used To describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments described herein can be implemented in an order other than the content illustrated or described herein. In addition, the terms "including" and "having" and any variations of them are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to the clearly listed Those steps or units may include other steps or units that are not clearly listed or are inherent to these processes, methods, products, or equipment.
需要说明的是,在本发明中涉及“第一”、“第二”等的描述仅用于描述目的, 而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本发明要求的保护范围之内。It should be noted that the descriptions related to "first", "second", etc. in the present invention are only for descriptive purposes, and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of indicated technical features . Therefore, the features defined with "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on what can be achieved by those of ordinary skill in the art. When the combination of technical solutions conflicts or cannot be achieved, it should be considered that such a combination of technical solutions does not exist. , Is not within the protection scope of the present invention.
本发明中的第一电子火炬可包含其它功能诸如个人数字助理(PDA)和/或便携式多媒体播放器(PMP)功能的便携式通信设备,诸如电子纸、电子书、车载显示器、平板电脑、智能手机、智能手表、智能手环等。便携式电子设备的示例性实施例包括但不限于搭载iOS@Android@Windows Phone@者其它操作系统的便携式第一电子火炬。第一电子火炬通常支持多种应用程序,诸如以下中的一种或多种:画图应用程序、呈现应用程序、文字处理应用程序、网页创建应用程序、盘编辑应用程序、电子表格应用程序、游戏应用程序、电话应用程序、视频会议应用程序、电子邮件应用程序、即时消息应用程序、锻炼支持应用程序、相片管理应用程序、数字相机应用程序、数字视频摄像机应用程序、网络浏览应用程序、数字音乐播放器应用程序、和/或数字视频播放器应用程序。The first electronic torch in the present invention may include other functions such as personal digital assistant (PDA) and/or portable multimedia player (PMP) functions such as portable communication devices, such as electronic paper, e-books, car monitors, tablet computers, smart phones , Smart watches, smart bracelets, etc. Exemplary embodiments of the portable electronic device include, but are not limited to, a portable first electronic torch equipped with other operating systems of iOS@Android@Windows Phone@者. The first electronic torch generally supports multiple applications, such as one or more of the following: drawing applications, rendering applications, word processing applications, web page creation applications, disk editing applications, spreadsheet applications, games Apps, phone apps, video conferencing apps, email apps, instant messaging apps, exercise support apps, photo management apps, digital camera apps, digital video camera apps, web browsing apps, digital music Player application, and/or digital video player application.
本发明提供有一种一种显示控制方法、电子火炬及存储介质,本发明申请中,电子火炬具有显示屏,电子火炬开启时,显示第一火焰图案于显示屏,以模拟传统火炬中的火苗。同时,在电子火炬上设置传感器,利用传感器检测电子火炬的运动信息,并根据检测到的运动信息判断电子火炬的运动状态是否发生变化,当电子火炬的运动发生变化时,根据电子火炬的运动信息控制显示屏将第一火焰图案切换为第二火焰图案,其中,第一火焰图案和第二显示图案不相同,以模拟传统火炬的火苗在运动过程中,火苗跟随火炬运动而发生变化。The present invention provides a display control method, an electronic torch and a storage medium. In the application of the present invention, the electronic torch has a display screen. When the electronic torch is turned on, a first flame pattern is displayed on the display screen to simulate the flames in a traditional torch. At the same time, a sensor is installed on the electronic torch, the sensor is used to detect the movement information of the electronic torch, and according to the detected movement information, it is judged whether the movement state of the electronic torch has changed. When the movement of the electronic torch changes, according to the movement information of the electronic torch The control display screen switches the first flame pattern to the second flame pattern, where the first flame pattern and the second display pattern are different to simulate the movement of the flame of the traditional torch, the flame changes following the movement of the torch.
请参阅图1,本发明一实施例提供一种显示控制方法,应用于电子火炬,该 显示控制方法包括步骤:Referring to Fig. 1, an embodiment of the present invention provides a display control method applied to an electronic torch. The display control method includes the steps:
步骤S101:显示第一火焰图案于所述显示屏。Step S101: Display a first flame pattern on the display screen.
请参阅图2,电子火炬10包括显示屏101以及手柄102其中,显示屏101用于显示火焰图案,以模拟传统火炬的火苗。手柄102与显示屏101连接,用于为用户握持,如此,用户可以通过手柄102握持该电子火炬10。电子火炬10的显示屏101启动时,显示第一火焰图案于该显示屏101。Referring to FIG. 2, the electronic torch 10 includes a display screen 101 and a handle 102. The display screen 101 is used to display a flame pattern to simulate the flame of a traditional torch. The handle 102 is connected to the display screen 101 for holding by the user, so that the user can hold the electronic torch 10 through the handle 102. When the display screen 101 of the electronic torch 10 is activated, the first flame pattern is displayed on the display screen 101.
步骤S102:检测所述电子火炬的运动信息。Step S102: Detect the movement information of the electronic torch.
电子火炬10还设置有检测单元103,检测单元103安装于手柄102或集成于显示屏101,用于获取电子火炬10的运动信息,该检测单元103可以是速度传感器或加速度传感器。The electronic torch 10 is also provided with a detection unit 103, which is installed on the handle 102 or integrated in the display screen 101 for acquiring the movement information of the electronic torch 10. The detection unit 103 may be a speed sensor or an acceleration sensor.
步骤S103:根据检测到的运动信息判断所述电子火炬的运动状态是否发生变化。Step S103: Determine whether the movement state of the electronic torch has changed according to the detected movement information.
电子火炬10的运动状态是指火炬进行运动时相对地面的运动速度的状态,其中,电子火炬10的运动信息包括加速度,加速度包括加速度大小和加速度方向。The motion state of the electronic torch 10 refers to the state of the motion speed relative to the ground when the torch is in motion. The motion information of the electronic torch 10 includes acceleration, and the acceleration includes the magnitude and direction of the acceleration.
本实施例中,以电子火炬10从静止状态开始运动为例进行说明,通过检测单元103检测该电子火炬10的加速度即可获取该电子火炬10的速度,也即通过检测该电子火炬10的加速度即可获知该电子火炬10的运动状态是否发生变化。In this embodiment, the electronic torch 10 starts to move from a stationary state as an example for description. The speed of the electronic torch 10 can be obtained by detecting the acceleration of the electronic torch 10 by the detection unit 103, that is, by detecting the acceleration of the electronic torch 10 It can be known whether the movement state of the electronic torch 10 has changed.
具体地,检测单元103为加速度传感器,利用加速度传感器获取电子火炬10的加速度。Specifically, the detection unit 103 is an acceleration sensor, and the acceleration sensor is used to obtain the acceleration of the electronic torch 10.
请参阅图3,具体地,步骤S103包括:Please refer to FIG. 3. Specifically, step S103 includes:
步骤S1031:根据加速度判断所述电子火炬是否进行变速运动。Step S1031: Determine whether the electronic torch performs a variable speed motion according to the acceleration.
当加速度大于零时,判断电子火炬10进行加速运动,当加速度小于零时,判断电子火炬10进行减速运动,加速度等于零时,判断电子火炬10进行匀速运动或该电子火炬10静止。其中,电子火炬10进行加速运动或减速运动等变速运动时,判断该电子火炬10的运动状态发生改变。When the acceleration is greater than zero, the electronic torch 10 is determined to be accelerating. When the acceleration is less than zero, the electronic torch 10 is determined to be decelerating. When the acceleration is equal to zero, it is determined that the electronic torch 10 is moving at a constant speed or the electronic torch 10 is stationary. Wherein, when the electronic torch 10 performs a variable speed movement such as an acceleration movement or a deceleration movement, it is determined that the movement state of the electronic torch 10 has changed.
步骤S1032:当所述电子火炬进行变速运动时,判断出所述电子火炬的运动状态发生变化。Step S1032: When the electronic torch moves at a variable speed, it is determined that the movement state of the electronic torch has changed.
其中,运动状态是指火炬进行运动时相对地面的运动速度的状态,当电子火炬10进行加速运动或减速运动等变速运动时,该电子火炬10的速度大小和/或方向发生改变,即判断该电子火炬10的运动状态发生改变。Among them, the movement state refers to the state of the movement speed relative to the ground when the torch is moving. When the electronic torch 10 performs a variable speed movement such as acceleration or deceleration, the speed and/or direction of the electronic torch 10 changes, that is, it is determined The movement state of the electronic torch 10 changes.
当判断电子火炬10进行匀速运动时,判断该电子火炬10的运动状态未发生改变。When it is determined that the electronic torch 10 is moving at a constant speed, it is determined that the motion state of the electronic torch 10 has not changed.
步骤S104:当所述电子火炬的运动状态发生变化时,根据所述运动信息控制所述显示屏将显示的所述第一火焰图案切换为第二火焰图案,所述第二火焰图案与所述第一火焰图案不同。Step S104: When the motion state of the electronic torch changes, control the display screen to switch the displayed first flame pattern to a second flame pattern according to the motion information, and the second flame pattern is the same as the second flame pattern. The first flame pattern is different.
第一火焰图案为电子火炬10静止时显示的火焰图案,加速度包括加速度大小和加速度方向,加速度方向包括第一加速度方向和第二加速度方向,第一加速度方向和第二加速度方向互为相反。The first flame pattern is the flame pattern displayed when the electronic torch 10 is at rest. The acceleration includes the magnitude and direction of acceleration, and the direction of acceleration includes the first acceleration direction and the second acceleration direction. The first acceleration direction and the second acceleration direction are opposite to each other.
当电子火炬10从静止开始运动时,电子火炬10的加速度方向即为电子火炬10的速度方向。When the electronic torch 10 starts to move from a standstill, the acceleration direction of the electronic torch 10 is the speed direction of the electronic torch 10.
请参阅图4A,具体地,步骤S104包括:Please refer to FIG. 4A. Specifically, step S104 includes:
步骤S1041:根据所述加速度大小和加速度方向计算出倾斜量。Step S1041: Calculate the amount of tilt according to the magnitude and direction of acceleration.
部分实施例中,根据所述加速度大小和加速度方向计算出倾斜量,具体包括,预设加速度大小、加速度方向和倾斜量的对应关系,通过获取加速度大小 和加速度方向,从而计算出对应的倾斜量。In some embodiments, the amount of inclination is calculated according to the magnitude of acceleration and the direction of acceleration, which specifically includes, preset the corresponding relationship between the magnitude of acceleration, direction of acceleration, and amount of inclination, and calculate the corresponding amount of inclination by obtaining the magnitude and direction of acceleration. .
在部分实施例中,当所述加速度方向为第一加速度方向时,根据第一公式计算出所述倾斜量,其中,所述第一公式为:θ=(2θ m)/π*arctan|a|,其中,θ用于表示倾斜量,θ≥0,a用于表示加速度,θ m为预设值,如图4B所示。 In some embodiments, when the acceleration direction is the first acceleration direction, the inclination amount is calculated according to a first formula, where the first formula is: θ=(2θ m )/π*arctan|a |, where θ is used to indicate the amount of tilt, θ≥0, a is used to indicate acceleration, and θ m is a preset value, as shown in Figure 4B.
当所述加速度方向为第二加速度方向时,根据第二公式计算出所述倾斜量,其中,所述第二公式为:θ=-(2θ m)/π*arctan|a|,其中,θ用于表示倾斜量,θ<0,a用于表示加速度,θ m为预设值,如图4B所示。 When the acceleration direction is the second acceleration direction, the tilt amount is calculated according to a second formula, where the second formula is: θ=-(2θ m )/π*arctan|a|, where θ It is used to indicate the amount of tilt, θ<0, a is used to indicate acceleration, and θ m is a preset value, as shown in Figure 4B.
步骤S1042:根据所述倾斜量与预设所述倾斜量与火焰图案的对应关系,获取与所述倾斜量所对应的火焰图案作为所述第二火焰图案。Step S1042: Obtain a flame pattern corresponding to the tilt amount as the second flame pattern according to the corresponding relationship between the tilt amount and the preset tilt amount and flame pattern.
预设倾斜量和火焰图案的对应关系,通过获取加速度大小和加速度方向计算出倾斜量后,获取根据倾斜量所对应的火焰图案作为所述第二火焰图案。The corresponding relationship between the inclination amount and the flame pattern is preset, and after the inclination amount is calculated by obtaining the magnitude and direction of acceleration, the flame pattern corresponding to the inclination amount is obtained as the second flame pattern.
例如,当加速度方向为第一加速度方向,加速度大小为a1时,即电子火炬10在第一加速度方向上做加速度为a1的加速运动时,计算出对应的倾斜量为θ1,θ1对应的火焰图案如图5A所示,该火焰图案向与加速度相反的方向偏移,将该对应倾斜量为θ1的火焰图案作为第二火焰图案。For example, when the acceleration direction is the first acceleration direction and the acceleration magnitude is a1, that is, when the electronic torch 10 accelerates in the first acceleration direction with the acceleration a1, the corresponding tilt is calculated as θ1, and the flame pattern corresponding to θ1 As shown in FIG. 5A, the flame pattern is shifted in the direction opposite to the acceleration, and the flame pattern corresponding to the inclination amount θ1 is used as the second flame pattern.
当加速度方向为第一加速度方向,加速度大小为a2,且a2大于a1时,计算出对应的倾斜量为θ2,θ2对应的火焰图案如图5B所示,火焰图案向与加速度相反的方向偏移,将该对应倾斜量为θ2的火焰图案作为第二火焰图案。且加速度大小为a2时,第二火焰图案向第二加速度方向的倾斜量大于加速度大小为a1时第二火焰图案向第二加速度方向的倾斜量。When the acceleration direction is the first acceleration direction, the acceleration magnitude is a2, and a2 is greater than a1, the calculated inclination amount is θ2, and the flame pattern corresponding to θ2 is shown in Figure 5B. The flame pattern shifts in the direction opposite to the acceleration , The flame pattern corresponding to the inclination amount θ2 is used as the second flame pattern. And when the acceleration magnitude is a2, the tilt amount of the second flame pattern in the second acceleration direction is greater than the tilt amount of the second flame pattern in the second acceleration direction when the acceleration magnitude is a1.
当加速度方向为第二加速度方向,加速度大小为a3时,即电子火炬10在做第二加速度方形上做加速运动时,计算出对应的倾斜量为θ3,θ3对应的火焰图案如图5C所示,该火焰图案向与加速度相反的方向偏移,将该对应倾斜量为 θ3的火焰图案作为第二火焰图案。When the acceleration direction is the second acceleration direction and the acceleration magnitude is a3, that is, when the electronic torch 10 is accelerating on the second acceleration square, the calculated inclination amount is θ3, and the flame pattern corresponding to θ3 is shown in Figure 5C , The flame pattern shifts to the direction opposite to the acceleration, and the flame pattern corresponding to the inclination amount θ3 is used as the second flame pattern.
当加速度方向为第二加速度方向,加速度大小为a4,且|a4|大于|a3|时,计算出倾斜量为θ4,θ4对应的火焰图案如图5D所示,该火焰图案向与加速度相反的方向偏移,将该对应倾斜量为θ4的火焰图案作为第二火焰图案。且加速度大小为a4时,第二火焰图案向第一加速度方向的倾斜量大于加速度大小为a3时第二火焰图案向第一加速度方向的倾斜量。When the acceleration direction is the second acceleration direction, the acceleration magnitude is a4, and |a4| is greater than |a3|, the calculated inclination is θ4, and the flame pattern corresponding to θ4 is shown in Figure 5D. The flame pattern is opposite to the acceleration The direction is shifted, and the flame pattern corresponding to the tilt amount θ4 is used as the second flame pattern. And when the acceleration magnitude is a4, the tilt amount of the second flame pattern in the first acceleration direction is greater than the tilt amount of the second flame pattern in the first acceleration direction when the acceleration magnitude is a3.
即加速度的绝对值越大,第二火焰图案向与加速度相反方向的倾斜量越大,也即第二火焰图案相对第一火焰图案的偏移量越大。That is, the greater the absolute value of the acceleration, the greater the inclination of the second flame pattern in the direction opposite to the acceleration, that is, the greater the deviation of the second flame pattern from the first flame pattern.
步骤S1043:显示获取到的所述第二火焰图案。Step S1043: Display the acquired second flame pattern.
显示第二火焰图案于显示屏,以替换第一火焰图案。Display the second flame pattern on the display screen to replace the first flame pattern.
请参阅图6,在部分实施例中,在显示所述第二火焰图案之后,所述显示控制方法还包括:Referring to FIG. 6, in some embodiments, after displaying the second flame pattern, the display control method further includes:
步骤S105:检测所述加速度是否变化。Step S105: Detect whether the acceleration changes.
当电子火炬10的显示屏101显示第二火焰图案时,通过检测单元103,检测电子火炬10的加速度是否发生变化。When the display screen 101 of the electronic torch 10 displays the second flame pattern, the detection unit 103 detects whether the acceleration of the electronic torch 10 changes.
步骤S106:当所述加速度变化时,控制所述显示屏将显示的所述第二火焰图案切换为所述第三火焰图案,所述第三火焰图案与第二火焰图案不同。Step S106: When the acceleration changes, control the display screen to switch the displayed second flame pattern to the third flame pattern, and the third flame pattern is different from the second flame pattern.
请参阅图7A,部分实施例中,步骤S106包括:Referring to FIG. 7A, in some embodiments, step S106 includes:
步骤S1061:当所述加速度变化时,获取所述加速度的加速度大小和加速度方向。Step S1061: When the acceleration changes, obtain the acceleration magnitude and acceleration direction of the acceleration.
当加速度变化时,获取加速度方向,从而判断电子火炬10在做加速运动或减速运动,同时获取加速度的加速度大小,从而判断电子火炬10在做加速运动或减速运动时在单位时间内的速度变化量。When the acceleration changes, the direction of acceleration is obtained to determine whether the electronic torch 10 is accelerating or decelerating. At the same time, the magnitude of the acceleration is obtained to determine the amount of speed change per unit time when the electronic torch 10 is accelerating or decelerating. .
步骤S1062:根据加速度大小、加速度方向及预设加速度大小、加速度方向和倾斜补偿量之间的对应关系,计算出倾斜补偿量。Step S1062: Calculate the tilt compensation amount according to the corresponding relationship between the acceleration magnitude, the acceleration direction and the preset acceleration magnitude, the acceleration direction and the tilt compensation amount.
预设加速度大小、加速度方向和倾斜补偿量之间的对应关系,通过获取加速度大小、加速度方向即可计算出对应的倾斜补偿量。The corresponding relationship between the acceleration magnitude, acceleration direction, and tilt compensation amount is preset, and the corresponding tilt compensation amount can be calculated by obtaining the acceleration magnitude and acceleration direction.
步骤S1063:根据所述倾斜补偿量及预设倾斜补偿量和第三火焰图案的对应关系,获取第三火焰图案。Step S1063: Obtain a third flame pattern according to the tilt compensation amount and the corresponding relationship between the preset tilt compensation amount and the third flame pattern.
预设倾斜补偿量和第三火焰图案的对应关系,通过获取倾斜补偿量从而获得对应的第三火焰图案。The corresponding relationship between the tilt compensation amount and the third flame pattern is preset, and the corresponding third flame pattern is obtained by obtaining the tilt compensation amount.
步骤S1064:控制所述显示屏将显示的所述第二火焰图案切换为所述第三火焰图案。Step S1064: controlling the display screen to switch the displayed second flame pattern to the third flame pattern.
具体地,电子火炬10的运动信息还包括速度,其中,速度包括速度大小和速度方向,该速度方向即是电子火炬10的运动方向,当电子火炬10的速度方向和加速度方向相反时,电子火炬10在显示屏101显示第二火焰图案后,电子火炬10做减速运动,第三火焰图案的显示位置位于第二火焰图案的显示位置和第一火焰图案的显示位置之间,如图7B所示。Specifically, the movement information of the electronic torch 10 also includes speed, where the speed includes the magnitude and direction of the speed. The speed direction is the direction of movement of the electronic torch 10. When the speed direction of the electronic torch 10 is opposite to the acceleration direction, the electronic torch 10 10 After the second flame pattern is displayed on the display screen 101, the electronic torch 10 makes a decelerating motion, and the display position of the third flame pattern is between the display position of the second flame pattern and the display position of the first flame pattern, as shown in FIG. 7B .
当电子火炬10的速度方向和加速度方向相同时,电子火炬10在显示屏101显示第二火焰图案后,电子火炬10做加速运动,第三火焰图案的显示位置向远离第二火焰图案的显示位置一侧偏移,且偏移方向与速度方向或加速度方向相反,如图7C所示。When the speed direction of the electronic torch 10 is the same as the acceleration direction, after the electronic torch 10 displays the second flame pattern on the display 101, the electronic torch 10 accelerates, and the display position of the third flame pattern moves away from the display position of the second flame pattern One side offset, and the offset direction is opposite to the speed direction or the acceleration direction, as shown in Figure 7C.
请参阅图8,电子火炬10还包括处理器104以及存储器105。存储器104、显示屏101以及检测单元103通过总线106与处理器105连接。Please refer to FIG. 8, the electronic torch 10 further includes a processor 104 and a memory 105. The memory 104, the display screen 101, and the detection unit 103 are connected to the processor 105 through a bus 106.
检测单元103用于检测电子火炬10的运动信息,该运动信息包括电子火炬10的速度和/或加速度。The detection unit 103 is used to detect movement information of the electronic torch 10, and the movement information includes the speed and/or acceleration of the electronic torch 10.
存储器104包括以下至少一种:随机存取存贮器、非易失性存储器外部存储器,所述存储器104可用于存储计算机可执行程序,该计算机可执行程序包括计算机可执行的显示控制程序,所述处理器105通过调用存储在所述存储器104中的计算机可执行的显示控制程序,从而执行上述任意一种显示控制方法。存储器104主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序等;数据存储区可存储根据终端的使用所创建的数据等,也即存储器104为计算机可读存储介质。The memory 104 includes at least one of the following: a random access memory, a non-volatile memory, and an external memory. The memory 104 can be used to store a computer-executable program. The computer-executable program includes a computer-executable display control program. The processor 105 executes any of the foregoing display control methods by calling a computer-executable display control program stored in the memory 104. The memory 104 mainly includes a program storage area and a data storage area. The program storage area can store an operating system, an application program required by at least one function, etc.; the data storage area can store data created according to the use of the terminal, etc., that is, the memory 104 is a computer-readable storage medium.
处理器105为电子火炬10的控制中心,利用各种接口和线路连接整个电子火炬10的各个部分,通过运行或执行存储在所述存储器104内的程序和/或单元,调用存储在所述存储器104内的数据,以执行所述终端设备的各种功能和处理数据。所述处理器105可以由集成电路(Integrated Circuit,简称IC)组成,例如可以由单颗封装的IC所组成,也可以由连接多颗相同功能或不同功能的封装IC而组成。举例来说,处理器105可以仅包括中央处理器,也可以是CPU、数字信号处理器(Digital Signal Processor,简称DSP)、GPU及各种控制芯片的组合。在本发明实施方式中,CPU可以是单运算核心,也可以包括多运算核心。The processor 105 is the control center of the electronic torch 10, which uses various interfaces and lines to connect the various parts of the entire electronic torch 10, and calls the programs and/or units stored in the memory 104 by running or executing the programs and/or units stored in the memory 104 104 to perform various functions of the terminal device and process data. The processor 105 can be composed of an integrated circuit (Integrated Circuit, IC for short), for example, can be composed of a single packaged IC, or can be composed of multiple packaged ICs with the same function or different functions. For example, the processor 105 may only include a central processing unit, or a combination of a CPU, a digital signal processor (Digital Signal Processor, DSP for short), a GPU, and various control chips. In the embodiment of the present invention, the CPU may be a single computing core or may include multiple computing cores.
上述实施方式仅为本发明的优选实施方式,不能以此来限定本发明保护的范围,本领域的技术人员在本发明的基础上所做的任何非实质性的变化及替换均属于本发明所要求保护的范围。The foregoing embodiments are only preferred embodiments of the present invention, and cannot be used to limit the scope of protection of the present invention. Any insubstantial changes and substitutions made by those skilled in the art on the basis of the present invention belong to the present invention. The scope of protection required.

Claims (10)

  1. 一种显示控制方法,应用于电子火炬,所述电子火炬包括显示屏,其特征在于:所述显示控制方法包括:A display control method is applied to an electronic torch, the electronic torch includes a display screen, and is characterized in that the display control method includes:
    显示第一火焰图案于所述显示屏;Displaying the first flame pattern on the display screen;
    检测所述电子火炬的运动信息;Detecting movement information of the electronic torch;
    根据检测到的运动信息判断所述电子火炬的运动状态是否发生变化;以及Determine whether the motion state of the electronic torch has changed according to the detected motion information; and
    当所述电子火炬的运动状态发生变化时,根据所述运动信息控制所述显示屏将显示的所述第一火焰图案切换为第二火焰图案,所述第二火焰图案与所述第一火焰图案不同。When the motion state of the electronic torch changes, the display screen is controlled to switch the displayed first flame pattern to a second flame pattern according to the motion information, and the second flame pattern is the same as the first flame pattern. The patterns are different.
  2. 如权利要求1所述的显示控制方法,其特征在于,所述检测所述电子火炬的运动信息具体包括:利用加速度传感器获取所述电子火炬的加速度;5. The display control method according to claim 1, wherein the detecting the movement information of the electronic torch specifically comprises: obtaining the acceleration of the electronic torch by using an acceleration sensor;
    所述根据所述检测到的运动信息判断所述电子火炬的运动状态是否发生变化具体包括:The judging whether the movement state of the electronic torch has changed according to the detected movement information specifically includes:
    根据所述加速度判断所述电子火炬是否进行变速运动;以及Judging whether the electronic torch performs a variable speed movement according to the acceleration; and
    当所述电子火炬进行变速运动时,判断出所述电子火炬的运动状态发生变化。When the electronic torch moves at a variable speed, it is determined that the movement state of the electronic torch has changed.
  3. 如权利要求2所述的显示控制方法,其特征在于,所述第一火焰图案为所述电子火炬静止时显示的火焰图案;所述加速度包括加速度大小和加速度方向,根据所述运动信息调整所述第一火焰图案为所述第二火焰图案具体包括:The display control method of claim 2, wherein the first flame pattern is the flame pattern displayed when the electronic torch is stationary; the acceleration includes the magnitude and direction of the acceleration, and the movement information is adjusted according to the movement information. The first flame pattern is the second flame pattern specifically including:
    根据所述加速度大小和加速度方向计算出倾斜量;Calculating the amount of tilt according to the magnitude and direction of acceleration;
    根据所述倾斜量与预设所述倾斜量与火焰图案的对应关系,获取与所述倾斜量所对应的火焰图案作为所述第二火焰图案;以及Acquiring a flame pattern corresponding to the tilt amount as the second flame pattern according to the corresponding relationship between the tilt amount and the preset tilt amount and the flame pattern; and
    显示获取到的所述第二火焰图案。The acquired second flame pattern is displayed.
  4. 如权利要求3所述的显示控制方法,其特征在于,所述加速度方向包括互为相反的为第一加速度方向和第二加速度方向,所述根据所述加速度大小和加速度方向计算出倾斜量包括:The display control method of claim 3, wherein the acceleration direction includes a first acceleration direction and a second acceleration direction that are opposite to each other, and the calculation of the tilt amount according to the acceleration magnitude and the acceleration direction includes :
    当所述加速度方向为第一加速度方向时,根据第一公式计算出所述倾斜量,其中,所述第一公式为:θ=(2θ m)/π*arctan|a|,其中,θ用于表示倾斜量,θ≥0,a用于表示加速度,θ m为预设值。 When the acceleration direction is the first acceleration direction, the tilt amount is calculated according to the first formula, where the first formula is: θ=(2θ m )/π*arctan|a|, where θ is Where represents the amount of tilt, θ≥0, a is used to represent acceleration, and θ m is the preset value.
  5. 如权利要求3所述的显示控制方法,其特征在于,所述加速度方向包括互为相反的为第一加速度方向和第二加速度方向,所述根据所述加速度大小和加速度方向计算出倾斜量包括:The display control method of claim 3, wherein the acceleration direction includes a first acceleration direction and a second acceleration direction that are opposite to each other, and the calculation of the tilt amount according to the acceleration magnitude and the acceleration direction includes :
    当所述加速度方向为第二加速度方向时,根据第二公式计算出所述倾斜量,其中,所述第二公式为:θ=-(2θ m)/π*arctan|a|,其中,θ用于表示倾斜量,θ<0,a用于表示加速度,θ m为预设值。 When the acceleration direction is the second acceleration direction, the tilt amount is calculated according to a second formula, where the second formula is: θ=-(2θ m )/π*arctan|a|, where θ Used to indicate the amount of tilt, θ<0, a is used to indicate acceleration, and θ m is the preset value.
  6. 如权利要求3所述的显示控制方法,其特征在于,在显示所述第二火焰图案之后,所述显示控制方法还包括:5. The display control method according to claim 3, wherein after displaying the second flame pattern, the display control method further comprises:
    检测所述加速度是否变化;Detecting whether the acceleration changes;
    当所述加速度变化时,控制所述显示屏将显示的所述第二火焰图案切换为所述第三火焰图案,所述第三火焰图案与所述第二火焰图案不同。When the acceleration changes, the display screen is controlled to switch the displayed second flame pattern to the third flame pattern, and the third flame pattern is different from the second flame pattern.
  7. 如权利要求6所述的显示控制方法,其特征在于,所述控制所述显示屏将显示的所述第二火焰图案切换为所述第三火焰图案,包括:7. The display control method according to claim 6, wherein the controlling the display screen to switch the displayed second flame pattern to the third flame pattern comprises:
    当所述加速度变化时,获取所述加速度的加速度大小和加速度方向;When the acceleration changes, obtain the magnitude and direction of the acceleration of the acceleration;
    根据加速度大小、加速度方向及预设加速度大小、加速度方向和倾斜补偿量之间的对应关系,计算出倾斜补偿量;Calculate the tilt compensation amount according to the corresponding relationship between the acceleration magnitude, acceleration direction and preset acceleration magnitude, acceleration direction and tilt compensation amount;
    根据所述倾斜补偿量及预设倾斜补偿量和第三火焰图案的对应关系,获取第三火焰图案;Acquiring the third flame pattern according to the tilt compensation amount and the corresponding relationship between the preset tilt compensation amount and the third flame pattern;
    控制所述显示屏将显示的所述第二火焰图案切换为所述第三火焰图案。Controlling the display screen to switch the displayed second flame pattern to the third flame pattern.
  8. 如权利要求7所述的显示控制方法,其特征在于,所述运动信息还包括速度方向,所述显示控制方法还包括:8. The display control method of claim 7, wherein the motion information further includes a speed direction, and the display control method further includes:
    当所述速度方向和所述加速度方向相反时,所述第三火焰图案的显示位置位于所述第二火焰图案的显示位置和第一火焰图案的显示位置之间。When the speed direction and the acceleration direction are opposite, the display position of the third flame pattern is located between the display position of the second flame pattern and the display position of the first flame pattern.
  9. 一种电子火炬,其特征在于,所述电子火炬包括:An electronic torch, characterized in that, the electronic torch comprises:
    显示屏,用于显示火焰图案的显示屏;Display screen, used to display the flame pattern;
    传感器,用于检测电子火炬的运动信息;Sensor, used to detect the movement information of the electronic torch;
    存储器,用于储存计算机可读的显示控制程序;以及A memory for storing a computer-readable display control program; and
    处理器,所述处理器调用所述显示控制程序时,实现如权利要求1-8任意一项所述的显示控制方法。A processor, which implements the display control method according to any one of claims 1-8 when the processor invokes the display control program.
  10. 一种存储介质,其特征在于,所述存储介质存储有计算机可执行的显示控制程序,所述计算机可执行的显示控制程序在被计算机调用时,使所述计算机执行如权利要求1-8任意一项所述的显示控制方法。A storage medium, wherein the storage medium stores a computer-executable display control program, and when the computer-executable display control program is called by a computer, the computer executes any of claims 1-8. The display control method described in one item.
PCT/CN2019/074210 2019-01-31 2019-01-31 Display control method, electronic torch, and storage medium WO2020155031A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2019/074210 WO2020155031A1 (en) 2019-01-31 2019-01-31 Display control method, electronic torch, and storage medium
CN201980074381.9A CN113260972A (en) 2019-01-31 2019-01-31 Display control method, electronic torch and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/074210 WO2020155031A1 (en) 2019-01-31 2019-01-31 Display control method, electronic torch, and storage medium

Publications (1)

Publication Number Publication Date
WO2020155031A1 true WO2020155031A1 (en) 2020-08-06

Family

ID=71840731

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/074210 WO2020155031A1 (en) 2019-01-31 2019-01-31 Display control method, electronic torch, and storage medium

Country Status (2)

Country Link
CN (1) CN113260972A (en)
WO (1) WO2020155031A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113075998A (en) * 2021-02-22 2021-07-06 余军涛 Online torch transmission method and intelligent motion equipment and server used by same
CN113075999A (en) * 2021-02-22 2021-07-06 余军涛 Mobile terminal, system and method for online torch transmission

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019549A (en) * 2012-11-28 2013-04-03 深圳市中兴移动通信有限公司 Method and device for scrolling contents based on mobile terminal
CN106293561A (en) * 2015-05-28 2017-01-04 北京智谷睿拓技术服务有限公司 Display control method and device, display device
CN107678660A (en) * 2011-10-06 2018-02-09 索尼公司 Display control unit
WO2018109988A1 (en) * 2016-12-16 2018-06-21 シャープ株式会社 Display device, display control method and program
CN108806566A (en) * 2018-06-07 2018-11-13 叶华秀 Move display control method, device and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108391002A (en) * 2018-02-05 2018-08-10 广东欧珀移动通信有限公司 Display control method and device, terminal, computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107678660A (en) * 2011-10-06 2018-02-09 索尼公司 Display control unit
CN103019549A (en) * 2012-11-28 2013-04-03 深圳市中兴移动通信有限公司 Method and device for scrolling contents based on mobile terminal
CN106293561A (en) * 2015-05-28 2017-01-04 北京智谷睿拓技术服务有限公司 Display control method and device, display device
WO2018109988A1 (en) * 2016-12-16 2018-06-21 シャープ株式会社 Display device, display control method and program
CN108806566A (en) * 2018-06-07 2018-11-13 叶华秀 Move display control method, device and electronic equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113075998A (en) * 2021-02-22 2021-07-06 余军涛 Online torch transmission method and intelligent motion equipment and server used by same
CN113075999A (en) * 2021-02-22 2021-07-06 余军涛 Mobile terminal, system and method for online torch transmission
CN113075998B (en) * 2021-02-22 2024-03-29 余军涛 Online torch transfer method, intelligent sports equipment and server used by same
CN113075999B (en) * 2021-02-22 2024-03-29 余军涛 Mobile terminal, system and method for on-line torch transfer

Also Published As

Publication number Publication date
CN113260972A (en) 2021-08-13

Similar Documents

Publication Publication Date Title
US20230244317A1 (en) Proxy Gesture Recognizer
JP5980784B2 (en) Migrating application display between single and multiple displays
US20160291864A1 (en) Method of interacting with a portable electronic device
JP5618665B2 (en) Control device, control method, and program
US20100302172A1 (en) Touch pull-in gesture
US20080042984A1 (en) Device and method for scrolling through list in portable terminal with touch pad
TW201602893A (en) Method for providing auxiliary information and touch control display apparatus using the same
US10152220B2 (en) System and method to control a touchscreen user interface
WO2020155031A1 (en) Display control method, electronic torch, and storage medium
JP2011170834A (en) Information processing apparatus, operation prediction method, and operation prediction program
KR101504310B1 (en) User terminal and interfacing method of the same
US9495014B2 (en) Portable playback device, and control method for portable playback device, program, and information storage medium capable of facilitating an operation for changing a reproduction of content data
CN103777755B (en) A kind of information processing method and electronic equipment
US20190102058A1 (en) Media resource loading method and terminal
TW202145206A (en) Method for turning on single-handed operation mode, terminal and computer storage medium
WO2022227784A1 (en) Picture display method and apparatus, device, and storage medium
WO2021232956A1 (en) Device control method and apparatus, and storage medium and electronic device
KR101231513B1 (en) Contents control method and device using touch, recording medium for the same and user terminal having it
CN104636068A (en) Application icon operating method and touch terminal
CN104503697A (en) Information handling method and electronic device
US10241659B2 (en) Method and apparatus for adjusting the image display
EP3244595B1 (en) Terminal wallpaper control method and terminal
WO2020133395A1 (en) Display method, storage medium, and electronic device
JP2016224688A (en) Information processing device, control method, control program, and recording medium
WO2013145485A1 (en) Information processing device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19912331

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19912331

Country of ref document: EP

Kind code of ref document: A1