CN107041038A - The control method and mobile terminal of a kind of breath light - Google Patents

The control method and mobile terminal of a kind of breath light Download PDF

Info

Publication number
CN107041038A
CN107041038A CN201710289482.0A CN201710289482A CN107041038A CN 107041038 A CN107041038 A CN 107041038A CN 201710289482 A CN201710289482 A CN 201710289482A CN 107041038 A CN107041038 A CN 107041038A
Authority
CN
China
Prior art keywords
led
color
pwm
triode
pwm signal
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
CN201710289482.0A
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710289482.0A priority Critical patent/CN107041038A/en
Publication of CN107041038A publication Critical patent/CN107041038A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/20Controlling the colour of the light

Landscapes

  • Illuminated Signs And Luminous Advertising (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The invention discloses a kind of control method of breath light and mobile terminal, this method includes:According to the color to be shown of breath light, the ratio of the glow color of the glow color for constituting first LED needed for the color to be shown, the glow color of second LED and the 3rd LED is calculated;According to the ratio of the glow color of three kinds of LEDs, the first pulse width modulation (PWM) signal of generation, the second pwm signal and the 3rd pwm signal, three kinds of pwm signals are related to the color-ratio of three kinds of LEDs;Using first pwm signal, second pwm signal and the 3rd pwm signal, three kinds of LEDs are driven respectively.The present invention makes breath light show different colors according to the different demands of user, easy to operate, and intelligence degree is high.

Description

The control method and mobile terminal of a kind of breath light
Technical field
The present invention relates to the control method and mobile terminal of moving communicating field, more particularly to a kind of breath light.
Background technology
Life of today, with the development of society, the progress of science and technology, people also increasingly pursue personalized and fashion-orientation, Many times, people are often not content with homogeneity, the object of uniformity, if same equipment, it appears such as two people Wear same clothes, but meet mutually, it is just very awkward, therefore, modern in life, it is necessary to in seek different, institute can be avoided The homogeneity of meaning;Make widely known the individual character of user.
Mobile terminal device, especially breath light are also the same, the breath light of mobile terminal, be all often have information or Reminded during missed call by way of giving a green light, same to Mobile phone (such as vivo X7) for a user, breath light Display methods and color are all identicals, and homogeneity is serious.
The content of the invention
The embodiment of the present invention provides the control method and mobile terminal of a kind of breath light, mobile to solve in the prior art The problem of display mode and color of the breath light of terminal are homogeneous.
In a first aspect, the embodiments of the invention provide a kind of control method of breath light, it is described to exhale applied to mobile terminal Inhaling lamp includes the first LED lamp, the second LED and the 3rd LED, first LED, second LED Glow color with the 3rd LED is different, it is characterised in that methods described includes:
According to the color to be shown of the breath light, first LED constituted needed for the color to be shown is calculated Glow color, the ratio of the glow color of the glow color of second LED and the 3rd LED;
According to the glow color of first LED, the glow color of second LED and the 3rd LED The ratio of glow color, the first pulse width modulation (PWM) signal of generation, the second pwm signal and the 3rd pwm signal, described first The dutycycle of pwm signal, second pwm signal and the 3rd pwm signal and the glow color of first LED, institute The glow color for stating the second LED is related to the ratio of the glow color of the 3rd LED;
Using first pwm signal, second pwm signal and the 3rd pwm signal, described first is driven respectively LED, second LED and the 3rd LED.
On the other hand, the embodiment of the present invention additionally provides a kind of mobile terminal, including:
First LED lamp, the second LED and the 3rd LED, first LED, second LED Glow color with the 3rd LED is different, it is characterised in that methods described includes:
According to the color to be shown of the breath light, first LED constituted needed for the color to be shown is calculated Glow color, the ratio of the glow color of the glow color of second LED and the 3rd LED;
According to the glow color of first LED, the glow color of second LED and the 3rd LED The ratio of glow color, the first pulse width modulation (PWM) signal of generation, the second pwm signal and the 3rd pwm signal, described first The dutycycle of pwm signal, second pwm signal and the 3rd pwm signal and the glow color of first LED, institute The glow color for stating the second LED is related to the ratio of the glow color of the 3rd LED;
Using first pwm signal, second pwm signal and the 3rd pwm signal, described first is driven respectively LED, second LED and the 3rd LED.
The embodiment of the present invention makes breath light show different colors according to the different demands of user, easy to operate, intelligent Degree is high.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is a kind of schematic flow sheet of the first embodiment of the control method of breath light of the present invention;
Fig. 2 is a kind of schematic flow sheet of the second embodiment of the control method of breath light of the present invention;
Fig. 3 is the structural representation of the embodiment of the mobile terminal of the present invention;
Fig. 4 is the structural representation of the adjustment module of the embodiment of the mobile terminal of the present invention;
Fig. 5 is the structural representation of the control submodule of the embodiment of the mobile terminal of the present invention;
Fig. 6 is the block diagram of mobile terminal embodiment of the present invention.
Embodiment
In order that technical problem solved by the invention, technical scheme and beneficial effect are more clearly understood, below in conjunction with Drawings and Examples, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only used To explain the present invention, it is not intended to limit the present invention.
When the embodiment of the present invention refers to the ordinal numbers such as " first ", " second ", unless based on context it expresses suitable really The meaning of sequence, it should be understood that only play differentiation and be used.
As shown in figure 1, the schematic flow sheet of the first embodiment for a kind of control method of breath light of the present invention, described Breath light includes the first LED lamp, the second LED and the 3rd LED, first LED, the 2nd LED Lamp and the glow color of the 3rd LED are different, and methods described includes:
S101, according to the color to be shown of the breath light, calculates described first constituted needed for the color to be shown The ratio of the glow color of the glow color of LED, the glow color of second LED and the 3rd LED;
In this step, user, which is set, needs the color system in the color of breath light to be shown, mobile terminal, according to treating Display color, calculates the hair of the glow color, the glow color of second LED and the 3rd LED of the first LED Light color, the secondary colour for example chosen according to user, is calculated, the display color ratio of feux rouges, blue light and gold-tinted in the secondary colour Example.
S102, according to the glow color of first LED, the glow color of second LED and the 3rd LED The ratio of the glow color of lamp, the first pulse width modulation (PWM) signal of generation, the second pwm signal and the 3rd pwm signal are described The dutycycle of first pwm signal, second pwm signal and the 3rd pwm signal and the luminous face of first LED Color, the glow color of second LED are related to the ratio of the glow color of the 3rd LED;
In this step, according to the color-ratio of three kinds of LEDs in step S101, generation the first pulse width modulation (PWM) letter Number, the second pwm signal and the 3rd pwm signal, and the dutycycle of these three pwm signals and the color-ratio of three kinds of glow colors It is related.
S103, using first pwm signal, second pwm signal and the 3rd pwm signal, drives institute respectively State the first LED, second LED and the 3rd LED.
In this step, in the color chosen according to user, the first LED to be shown, the second LED and the 3rd LED Color-ratio, using first pwm signal, second pwm signal and the 3rd pwm signal, drives described respectively One LED, second LED and the 3rd LED;Exemplary, if the first LED, the second LED and the 3rd LED It is 40% that lamp color to be shown corresponds to red, green and the ratio of blueness respectively:30%:30%, then by adjusting the first PWM letters Number, the dutycycle of second pwm signal and the 3rd pwm signal, the ratio for making the color of three kinds of lamps is also 40%: 30%:30%.
The embodiment of the present invention makes breath light show different colors according to the different demands of user, easy to operate, intelligent Degree is high, and personalized strong, practicality is high.
As shown in Fig. 2 the schematic flow sheet of the second embodiment for a kind of control method of breath light of the present invention;This reality Apply in example, comprise the following steps:
S201, in the virtual color saucer, user sets the color to be shown of the breath light;
In the present embodiment, the mobile terminal includes virtual color saucer, and the virtual color saucer is used to set the breathing The color to be shown of lamp.
S202, according to the color to be shown of the breath light, calculates described first constituted needed for the color to be shown The ratio of the glow color of the glow color of LED, the glow color of second LED and the 3rd LED;
This step, it is identical with a kind of principle of the first embodiment of the control method of breath light of the present invention, herein no longer Repeat.
S203, sets breath light control circuit, and the breath light control circuit includes three LED display circuits, every LED Display circuit is provided with PWM device, triode and display LED;
In the present embodiment, by setting breath light control circuit, the breath light control circuit includes three LED display electricity Road, every LED display circuit is provided with PWM device, triode and display LED;Therefore, three articles of LED display circuits correspond to the respectively One LED display circuit, the second LED display circuit and the 3rd LED display circuit.
The first LED display circuit includes the first pulse width modulation circuit (the first PWM), the first triode and the One LED;First PWM is connected with the ground level of first triode, first LED and first triode Emitter stage is connected;Resistance is additionally provided between first PWM and first triode;
The second LED display circuit includes the second pulse width modulation circuit (the 2nd PWM), the second triode and the Two LEDs;2nd PWM is connected with the ground level of second triode, second LED and second triode Emitter stage is connected;Resistance is additionally provided between 2nd PWM and second triode;
The 3rd LED display circuit includes the 3rd pulse width modulation circuit (the 3rd PWM), the 3rd triode and the Three LEDs;3rd PWM is connected with the ground level of the 3rd triode, the 3rd LED and the 3rd triode Emitter stage is connected;Resistance is additionally provided between 3rd PWM and the 3rd triode.
S204, by adjusting the dutycycle of PWM device, controls the display LED luminosity being connected with PWM device.
This step, is specifically included:
The dutycycle of the first pwm signal is adjusted, in the color that the luminosity and user for making first LED are chosen The color-ratio of first LED display color is corresponding;
In this step, the dutycycle for the first pwm signal being connected with the first LED is adjusted, makes the hair of first LED Brightness is corresponding with the proportion of composing of the color of the first LED in the color that user chooses.For example, by analysis, obtaining In the color that user chooses, red accounting ratio is 40%, then in this step, and by adjusting the first PWM, being allowed to dutycycle is 40, then further such that the brightness of R colored lights is 40 grades.
The dutycycle of the second pwm signal is adjusted, in the color that the luminosity and user for making second LED are chosen The proportion of composing of second LED is corresponding;
In this step, the dutycycle for the second pwm signal being connected with the second LED is adjusted, second LED is shown The luminosity of lamp bead is corresponding with the proportion of composing of the second LED in the color that user chooses.For example, by analysis, obtaining In the color for taking family selection, green accounting ratio is 30%, then in this step, by adjusting the 2nd PWM, is allowed to dutycycle For 30, then further such that the brightness of the second LED is 30 grades.
The dutycycle of the 3rd pwm signal is adjusted, in the color that the luminosity and user for making the 3rd LED are chosen The proportion of composing of 3rd LED is corresponding.
In this step, the dutycycle for the 3rd pwm signal being connected with the 3rd LED is adjusted, makes the hair of the 3rd LED Brightness is corresponding with the blue proportion of composing for the 3rd LED that user chooses.For example, by analysis, obtaining user and choosing Color in, blue accounting ratio is 30%, then in this step, and by adjusting the 3rd PWM, it is 30 to be allowed to dutycycle, then enters One step causes the brightness of the 3rd LED to be 30 grades.
In the present embodiment, by setting breath light control circuit, the control circuit includes three LED display circuits, every LED display circuit corresponds to the first LED, second respectively provided with PWM device, triode and display LED, three LED display circuits LED, the 3rd LED, by adjusting the dutycycle of PWM device, adjust the brightness of three kinds of lamps.Therefore, the embodiment of the present invention Intelligence degree is higher, and color control is more accurate, and cost is low, personalized strong.
The embodiment for the method for opening application to the mobile terminal of the present invention above is discussed in detail.It will correspond to below The mobile terminal of the above method is further elaborated.Wherein, mobile terminal can be mobile phone, tablet personal computer, MP3, MP4 or notes This computer etc..
As shown in figure 3, the structural representation of the embodiment for the mobile terminal of the present invention;In the present invention, the breath light Including the first LED, the second LED and the 3rd LED, first LED, second LED and the 3rd LED Glow color it is different, the present invention in, mobile terminal includes:
Computing module 310, for the color to be shown according to the breath light, calculating is constituted needed for the color to be shown The glow color of first LED, the glow color of the glow color of second LED and the 3rd LED Ratio;
In the present invention, user, which is set, needs the color system in the color of breath light to be shown, mobile terminal, according to treating Display color, calculates the hair of the glow color, the glow color of second LED and the 3rd LED of the first LED Light color, the secondary colour for example chosen according to user, is calculated, the display color ratio of feux rouges, blue light and gold-tinted in the secondary colour Example.
Generation module 320, for the glow color according to first LED, the glow color of second LED and The ratio of the glow color of 3rd LED, the first pulse width modulation (PWM) signal of generation, the second pwm signal and the 3rd Pwm signal, dutycycle and the first LED of first pwm signal, second pwm signal and the 3rd pwm signal The glow color of lamp, the glow color of second LED are related to the ratio of the glow color of the 3rd LED;
In the present invention, the color-ratio of three kinds of LEDs, the first pulse width modulation (PWM) signal of generation, the second pwm signal With the 3rd pwm signal, and the dutycycle of these three pwm signals is related to the color-ratio of three kinds of glow colors.
Drive module 330, for using first pwm signal, second pwm signal and the 3rd pwm signal, First LED, second LED and the 3rd LED are driven respectively.
In the color chosen according to user, the color-ratio of the first LED to be shown, the second LED and the 3rd LED, Using first pwm signal, second pwm signal and the 3rd pwm signal, first LED, institute are driven respectively State the second LED and the 3rd LED;Exemplary, if the first LED, the second LED and the 3rd LED face to be shown It is 40% that color corresponds to red, green and the ratio of blueness respectively:30%:30%, then by adjusting the first pwm signal, described the The dutycycle of two pwm signals and the 3rd pwm signal, the ratio for making the color of three kinds of lamps is also 40%:30%:30%.
The embodiment of the present invention can make breath light show different colors according to the different demands of user, easy to operate, intelligence Change degree is high, and personalized strong, practicality is high.
As shown in figure 4, the structural representation of the adjustment module for the embodiment of the mobile terminal of the present invention;
As the presently preferred embodiments, generation module 320 includes circuit setting submodule 321, wherein:
Circuit sets submodule 321, and for setting breath light control circuit, the breath light control circuit includes three LED display circuit, every LED display circuit is provided with PWM device, triode and display LED.
In the present embodiment, by setting breath light control circuit, the breath light control circuit includes three LED display electricity Road, every LED display circuit is provided with PWM device, triode and display LED;Therefore, three articles of LED display circuits correspond to the respectively One LED display circuit, the second LED display circuit and the 3rd LED display circuit.
The first LED display circuit includes the first pulse width modulation circuit (the first PWM), the first triode and the One LED;First PWM is connected with the ground level of first triode, first LED and first triode Emitter stage is connected;Resistance is additionally provided between first PWM and first triode;
The second LED display circuit includes the second pulse width modulation circuit (the 2nd PWM), the second triode and the Two LEDs;2nd PWM is connected with the ground level of second triode, second LED and second triode Emitter stage is connected;Resistance is additionally provided between 2nd PWM and second triode;
The 3rd LED display circuit includes the 3rd pulse width modulation circuit (the 3rd PWM), the 3rd triode and the Three LEDs;3rd PWM is connected with the ground level of the 3rd triode, the 3rd LED and the 3rd triode Emitter stage is connected;Resistance is additionally provided between 3rd PWM and the 3rd triode.
As shown in figure 5, the structural representation of the control submodule for the embodiment of the mobile terminal of the present invention;As entering one The preferred scheme of step, in addition to control submodule 330, for the dutycycle by adjusting PWM device, control connects with PWM device The display LED connect luminosity.
Including:First adjustment subelement 331, the second adjustment adjustment subelement 333 of subelement 332 and the 3rd.
First adjustment subelement 3311, the dutycycle for adjusting the first pwm signal makes the luminous of first LED Brightness is corresponding with the color-ratio of the first LED display color in the color that user chooses;
Subunit, adjusts the dutycycle for the first pwm signal being connected with the first LED, makes the hair of first LED Brightness is corresponding with the proportion of composing of the color of the first LED in the color that user chooses.For example, by analysis, obtaining In the color that user chooses, red accounting ratio is 40%, then in this step, and by adjusting the first PWM, being allowed to dutycycle is 40, then further such that the brightness of R colored lights is 40 grades.
Second adjustment subelement 3321, adjusts the dutycycle of the second pwm signal, makes the luminosity of second LED Proportion of composing with the second LED in the color that user chooses is corresponding;
In subunit, the dutycycle for the second pwm signal being connected with the second LED is adjusted, shows second LED The proportion of composing of the second LED in the color that the luminosity and user for showing lamp bead are chosen is corresponding.For example, by analysis, Obtain in the color that user chooses, green accounting ratio is 30%, then in this step, by adjusting the 2nd PWM, is allowed to duty Than for 30, then further such that the brightness of the second LED is 30 grades.
3rd adjustment subelement 3331, adjusts the dutycycle of the 3rd pwm signal, makes the luminosity of the 3rd LED Proportion of composing with the 3rd LED in the color that user chooses is corresponding.
In subunit, the dutycycle for the 3rd pwm signal being connected with the 3rd LED is adjusted, makes the 3rd LED Luminosity is corresponding with the blue proportion of composing for the 3rd LED that user chooses.For example, by analysis, obtaining user's choosing In the color taken, blue accounting ratio is 30%, then in this step, by adjusting the 3rd PWM, and it is 30 to be allowed to dutycycle, then Further such that the brightness of the 3rd LED is 30 grades.
In the present embodiment, by setting breath light control circuit, the control circuit includes three LED display circuits, every LED display circuit corresponds to the first LED, second respectively provided with PWM device, triode and display LED, three LED display circuits LED, the 3rd LED, by adjusting the dutycycle of PWM device, adjust the brightness of three kinds of lamps.Therefore, the embodiment of the present invention Intelligence degree is higher, and color control is more accurate, and cost is low, personalized strong.
Fig. 6 is the block diagram of mobile terminal embodiment of the present invention.Mobile terminal 600 shown in Fig. 6 includes:At least one processing Device 601, memory 602, at least one network interface 604 and user interface 603.Each component in mobile terminal 600 passes through Bus system 605 is coupled.It is understood that bus system 605 is used to realize the connection communication between these components.Total linear system System 605 is in addition to including data/address bus, in addition to power bus, controlling bus and status signal bus in addition.But for clear theory For the sake of bright, various buses are all designated as bus system 605 in figure 6.
Wherein, user interface 603 can include button, especially various acceleration transducers, gravity sensor and gyro Instrument.
It is appreciated that the memory 602 in the embodiment of the present invention can be volatile memory or nonvolatile memory, Or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, EEPROM) or Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside high Speed caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memory 602 of system and method described herein be intended to including but not limited to these and it is any its It is adapted to the memory of type.
In some embodiments, memory 602 stores following element, and predetermined threshold value can perform module or number According to structure, either their subset or their superset:Operating system 6021 and application program 6022.
Wherein, operating system 6021, comprising various system programs, such as ccf layer, core library layer, driving layer, are used for Realize various basic businesses and handle hardware based task.Application program 6022, includes various application programs, such as media Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention The program of method may be embodied in application program 6022.
In embodiments of the present invention, by calling program or the instruction of the storage of memory 602, specifically, applied to movement Terminal, the breath light includes the first light emitting diode (hereinafter referred to as LED) lamp, the second LED and the 3rd LED, described the The glow color of one LED, second LED and the 3rd LED is different, it is characterised in that methods described bag Include:According to the color to be shown of the breath light, calculate and constitute the luminous of first LED needed for the color to be shown The ratio of the glow color of color, the glow color of second LED and the 3rd LED;According to first LED Glow color, the ratio of the glow color of the glow color of second LED and the 3rd LED, generate the first arteries and veins Rush width modulated pwm signal, the second pwm signal and the 3rd pwm signal, first pwm signal, second pwm signal and The dutycycle of 3rd pwm signal and the glow color of first LED, the glow color of second LED and institute The ratio for stating the glow color of the 3rd LED is related;
Using first pwm signal, second pwm signal and the 3rd pwm signal, described first is driven respectively LED, second LED and the 3rd LED.
The method that the embodiments of the present invention are disclosed can apply in processor 601, or be realized by processor 601. Processor 601 is probably a kind of IC chip, the disposal ability with signal.In implementation process, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 601 or the instruction of software form.
Above-mentioned processor 601 can be general processor, digital signal processor (Digital Signal Processor, DSP), it is application specific integrated circuit (Application Specific Integrated Circuit ASIC), existing Into programmable gate array (Field Programmable Gate Array, FPGA) or other PLDs, discrete Door or transistor logic, discrete hardware components.It can realize or perform the disclosed each side in the embodiment of the present invention Method, step and logic diagram.General processor can be microprocessor or the processor can also be any conventional processing Device etc..The step of method with reference to disclosed in the embodiment of the present invention, can be embodied directly in hardware decoding processor and perform completion, Or perform completion with the hardware in decoding processor and software module combination.Software module can be located at random access memory, dodge Deposit, read-only storage, this area such as programmable read only memory or electrically erasable programmable memory, register is ripe to deposit In storage media.The storage medium is located at memory 602, and processor 601 reads the information in memory 602, complete with reference to its hardware The step of into the above method.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its Combine to realize.Realized for hardware, processing unit can be realized in one or more application specific integrated circuit (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor, In controller, microcontroller, microprocessor, other electronic units for performing herein described function or its combination.
Realize, can be realized by performing the module (such as process, function) of function described herein herein for software Described technology.Software code is storable in memory and by computing device.Memory can within a processor or Realized outside processor.
Alternatively, as another embodiment, processor 601 is additionally operable to set the color to be shown of the breath light.
Optionally, as another embodiment, processor 601 is additionally operable to set breath light control circuit, the breath light Circuit is controlled to include three LED display circuits, every LED display circuit is provided with PWM device, triode and display LED.
Alternatively, as another embodiment, processor 601 is additionally operable to:
The dutycycle of the first pwm signal is adjusted, in the color that the luminosity and user for making first LED are chosen The proportion of composing of first LED is corresponding;Adjust the dutycycle of the second pwm signal, make the luminosity of second LED with The proportion of composing of the second LED in the color that user chooses is corresponding;The dutycycle of the 3rd pwm signal is adjusted, makes described Three LED luminosity is corresponding with the proportion of composing of the 3rd LED in the color that user chooses.
Mobile terminal 600 can realize each process that mobile terminal is realized in previous embodiment, to avoid repeating, here Repeat no more.The embodiment of the present invention can make breath light show different colors, easy to operate, intelligence according to the different demands of user Degree can be changed high, personalized strong, practicality is high.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed The scope of the present invention.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, others can be passed through Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is only A kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of device or unit by some interfaces Connect, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized using in the form of SFU software functional unit and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially in other words The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are to cause a computer equipment (can be individual People's computer, server, or network equipment etc.) perform all or part of step of each of the invention embodiment methods described. And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes Medium.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (10)

1. a kind of control method of breath light, applied to mobile terminal, the breath light include the first LED lamp, Second LED and the 3rd LED, the glow color of first LED, second LED and the 3rd LED are each not It is identical, it is characterised in that methods described includes:
According to the color to be shown of the breath light, the hair of first LED needed for the calculating composition color to be shown The ratio of the glow color of light color, the glow color of second LED and the 3rd LED;
According to the luminous of the glow color of first LED, the glow color of second LED and the 3rd LED The ratio of color, the first pulse width modulation (PWM) signal of generation, the second pwm signal and the 3rd pwm signal, the first PWM letters Number, the glow color of the dutycycle of second pwm signal and the 3rd pwm signal and first LED, described second The glow color of LED is related to the ratio of the glow color of the 3rd LED;
Using first pwm signal, second pwm signal and the 3rd pwm signal, the first LED is driven respectively Lamp, second LED and the 3rd LED.
2. according to the method described in claim 1, it is characterised in that the mobile terminal includes virtual color saucer, described virtual Color saucer is used for the color to be shown for setting the breath light.
3. method according to claim 2, it is characterised in that the glow color according to first LED, described The ratio of the glow color of second LED and the glow color of the 3rd LED, generation the first pulse width modulation (PWM) letter Number, the second pwm signal and the 3rd pwm signal, including:
Breath light control circuit is set, and the breath light control circuit includes three LED display circuits, every LED display circuit Provided with PWM device, triode and display LED;
By adjusting the dutycycle of PWM device, the display LED luminosity being connected with PWM device is controlled.
4. method according to claim 3, it is characterised in that three LED display circuits include:First LED shows Show circuit, the second LED display circuit and the 3rd LED display circuit;
The first LED display circuit includes the first pwm circuit, the first triode and the first LED;The first PWM electricity Road is connected with the ground level of first triode, and first LED is connected with the emitter stage of first triode;Described Resistance is additionally provided between one pwm circuit and first triode;
The second LED display circuit includes the second pwm circuit, the second triode and the second LED;The 2nd PWM electricity Road is connected with the ground level of second triode, and second LED is connected with the emitter stage of second triode;Described Resistance is additionally provided between two pwm circuits and second triode;
The 3rd LED display circuit includes the 3rd pwm circuit, the 3rd triode and the 3rd LED;The 3rd PWM electricity Road is connected with the ground level of the 3rd triode, and the 3rd LED is connected with the emitter stage of the 3rd triode;Described Resistance is additionally provided between three pwm circuits and the 3rd triode.
5. method according to claim 4, it is characterised in that described to use first pwm signal, the 2nd PWM Signal and the 3rd pwm signal, drive the step of first LED, second LED and the 3rd LED respectively Suddenly include:
The dutycycle of the first pwm signal is adjusted, the red in the color that the luminosity and user for making first LED are chosen Proportion of composing it is corresponding;
The dutycycle of the second pwm signal is adjusted, the green in the color that the luminosity and user for making second LED are chosen Proportion of composing it is corresponding;
The dutycycle of the 3rd pwm signal is adjusted, it is blue in the color that the luminosity and user for making the 3rd LED are chosen Proportion of composing is corresponding.
6. a kind of mobile terminal, including breath light, the breath light include the first LED, the second LED and the 3rd LED, institute The glow color for stating the first LED, second LED and the 3rd LED is different, it is characterised in that described to move Dynamic terminal includes:
Computing module, for the color to be shown according to the breath light, calculate constitute it is described needed for the color to be shown The ratio of the glow color of the glow color of first LED, the glow color of second LED and the 3rd LED;
Generation module, for the glow color according to first LED, the glow color of second LED and described The ratio of the glow color of three LEDs, the first pulse width modulation (PWM) signal of generation, the second pwm signal and the 3rd pwm signal, The dutycycle of first pwm signal, second pwm signal and the 3rd pwm signal is luminous with first LED Color, the glow color of second LED are related to the ratio of the glow color of the 3rd LED;
Drive module, for using first pwm signal, second pwm signal and the 3rd pwm signal, driving respectively Dynamic first LED, second LED and the 3rd LED.
7. mobile terminal according to claim 1, it is characterised in that the mobile terminal includes virtual color saucer, described Virtual color saucer is used for the color to be shown for setting the breath light.
8. mobile terminal according to claim 7, it is characterised in that the generation module includes:
Circuit sets submodule, and for setting breath light control circuit, the breath light control circuit includes three LED display electricity Road, every LED display circuit is provided with PWM device, triode and display LED;
Control submodule, for the dutycycle by adjusting PWM device, controls the display LED luminance being connected with PWM device Degree.
9. mobile terminal according to claim 8, it is characterised in that three LED display circuits include:First LED Lamp display circuit, the second LED display circuit and the 3rd LED display circuit;
The first LED display circuit includes the first pwm circuit, the first triode and the first LED;The first PWM electricity Road is connected with the ground level of first triode, and first LED is connected with the emitter stage of first triode;Described Resistance is additionally provided between one pwm circuit and first triode;
The second LED display circuit includes the second pwm circuit, the second triode and the second LED;The 2nd PWM electricity Road is connected with the ground level of second triode, and second LED is connected with the emitter stage of second triode;Described Resistance is additionally provided between two pwm circuits and second triode;
The 3rd LED display circuit includes the 3rd pwm circuit, the 3rd triode and the 3rd LED;The 3rd PWM electricity Road is connected with the ground level of the 3rd triode, and the 3rd LED is connected with the emitter stage of the 3rd triode;Described Resistance is additionally provided between three pwm circuits and the 3rd triode.
10. mobile terminal according to claim 9, it is characterised in that the drive module includes:
First adjustment submodule, the dutycycle for adjusting the first pwm signal makes the luminosity and use of first LED The color-ratio of the first LED display color in the color that family is chosen is corresponding;
Second adjustment submodule, the dutycycle for adjusting the second pwm signal makes the luminosity and use of second LED The color-ratio of the second LED display color in the color that family is chosen is corresponding;
3rd adjustment submodule, the dutycycle for adjusting the 3rd pwm signal makes the luminosity and use of the 3rd LED The color-ratio of the 3rd LED display color in the color that family is chosen is corresponding.
CN201710289482.0A 2017-04-27 2017-04-27 The control method and mobile terminal of a kind of breath light Pending CN107041038A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710289482.0A CN107041038A (en) 2017-04-27 2017-04-27 The control method and mobile terminal of a kind of breath light

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710289482.0A CN107041038A (en) 2017-04-27 2017-04-27 The control method and mobile terminal of a kind of breath light

Publications (1)

Publication Number Publication Date
CN107041038A true CN107041038A (en) 2017-08-11

Family

ID=59536709

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710289482.0A Pending CN107041038A (en) 2017-04-27 2017-04-27 The control method and mobile terminal of a kind of breath light

Country Status (1)

Country Link
CN (1) CN107041038A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108366456A (en) * 2018-03-05 2018-08-03 上海艾为电子技术股份有限公司 A kind of driving method, driving device and the mobile device of mobile device indicator light
CN108377594A (en) * 2018-03-05 2018-08-07 上海艾为电子技术股份有限公司 A kind of driving method, driving device and the mobile device of mobile device indicator light

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102307413A (en) * 2011-06-07 2012-01-04 青岛海信宽带多媒体技术有限公司 Method and device for displaying any color by using RGB (Red, Green and Blue) three-color indicating lamps
CN204697337U (en) * 2015-05-18 2015-10-07 泉州师范学院 A kind of Scene Simulation illuminator
CN105611694A (en) * 2015-12-30 2016-05-25 北京经纬恒润科技有限公司 Color configuration method and apparatus for atmosphere lamp
CN106162981A (en) * 2016-05-22 2016-11-23 上海大学 Light mixing method based on three-primary color LED
CN106535406A (en) * 2016-11-29 2017-03-22 科博达技术有限公司 Brightness correction method of three primary color LED light source

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102307413A (en) * 2011-06-07 2012-01-04 青岛海信宽带多媒体技术有限公司 Method and device for displaying any color by using RGB (Red, Green and Blue) three-color indicating lamps
CN204697337U (en) * 2015-05-18 2015-10-07 泉州师范学院 A kind of Scene Simulation illuminator
CN105611694A (en) * 2015-12-30 2016-05-25 北京经纬恒润科技有限公司 Color configuration method and apparatus for atmosphere lamp
CN106162981A (en) * 2016-05-22 2016-11-23 上海大学 Light mixing method based on three-primary color LED
CN106535406A (en) * 2016-11-29 2017-03-22 科博达技术有限公司 Brightness correction method of three primary color LED light source

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108366456A (en) * 2018-03-05 2018-08-03 上海艾为电子技术股份有限公司 A kind of driving method, driving device and the mobile device of mobile device indicator light
CN108377594A (en) * 2018-03-05 2018-08-07 上海艾为电子技术股份有限公司 A kind of driving method, driving device and the mobile device of mobile device indicator light
CN108377594B (en) * 2018-03-05 2020-09-15 上海艾为电子技术股份有限公司 Driving method and driving device for indicator light of mobile equipment and mobile equipment

Similar Documents

Publication Publication Date Title
CN106384573B (en) The OLED module Gamma adjusting process calculated based on linear interpolation
US8901405B1 (en) Electronic piano training device
JP7466709B2 (en) Backlight driving method, device and computer equipment
CN107037659B (en) A kind of sheen lamp control method and mobile terminal
CN102460348A (en) User interface behaviors for input device with individually controlled illuminated input elements
CN106357926A (en) Display method of mobile terminal and mobile terminal
JP2006054362A (en) Led control circuit
CN107041038A (en) The control method and mobile terminal of a kind of breath light
CN106332408A (en) Signal generation method and circuit for controlling brightness of light emitting diode
CN106898329A (en) A kind of method for processing brightness of display screen, device and mobile terminal
CN105741769B (en) A kind of adjusting method of display screen, adjusting means and terminal
CN106855744A (en) A kind of screen display method and mobile terminal
JP2006041043A (en) Led drive circuit
US20160363912A1 (en) Systems and methods for dimming an alarm clock with three displays
CN102375475B (en) Portable electronic equipment and light effect displaying method thereof
CN105931603A (en) Color temperature adjusting method, color temperature adjusting apparatus, backlight drive circuit and terminal equipment
CN104754798B (en) The brightness control method and device of key-press backlight
CN107172754A (en) A kind of light filling lamp driving method, light filling circuit and mobile terminal
CN116368946A (en) LED illumination system
CN107517347A (en) A kind of asterism image pickup method and mobile terminal
CN109410813A (en) A kind of method of adjustment and device of touch-control blank
CN104636239A (en) Interaction method and user equipment
CN106528384A (en) Method and terminal for displaying state information of application program
EP3987509A1 (en) Controlling display brightness when rendering composed scene-referred and output-referred content
CN110809346A (en) Light adjusting method, light adjusting device and terminal equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170811