A method of control touch-screen background lamp dispersion opening and closing
The application is application number: 2015101697830, the applying date: and on 04 13rd, 2015, a kind of denomination of invention: control
The method of touch-screen background lamp dispersion opening and closing and the divisional application of mobile terminal.
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of side of control touch-screen background lamp dispersion opening and closing
Method and mobile terminal.
Background technique
Currently, carrying out handle game in the equipment such as PC, Xbox, PS3 and intelligence TV is very common entertainment way.With
Smart phone screen enlarging and communication function enhancing can pass through smart phone etc. on the basis of WIFI or bluetooth are supported
Mobile terminal carries out game to serve as handle.Prior art there are the shortcomings that have: terminal is needed when serving as handle use
Screen is lighted always, and for identifying operable area, screen power consumption is big, and prolonged game operation can consume very more electricity
Amount.
Application No. is 201310660060.1 patents to disclose a kind of mobile terminal touch screen control of integrated game handle
Method processed, by being provided with the key mapping equipment with game key mapping on mobile terminals, and by establishing game key mapping and institute
The corresponding relationship for stating key mapping input area on mobile terminal touch screen realizes the simulation of game of mobile terminal handle, Yong Hutong
Cross the game key mapping in pressing key mapping equipment, so that it may input manipulation information;Meanwhile according to current mobile terminal and game station
The input state of key mapping input area manipulation information on communication connection status and touch screen, if normal under game paddle mode
It uses, due to being arranged with key mapping equipment on touch screen, controlling back light lamp is closed, without user when carrying out game operation
Screen is persistently lighted, to achieve the purpose that reduce electric quantity consumption;When mobile terminal and game station disconnect, then can control
Backlight is opened, to meet user to the normal use of mobile terminal other function.
However, the drawbacks of implementing this technical solution is: needing to be arranged key mapping equipment on the touchscreen, increase movement
The complexity of terminal structure also needs to be arranged key mapping equipment on the touchscreen before serving as handle using mobile terminal, to make
Process becomes cumbersome;In addition, mobile terminal backlight during serving as handle and carrying out game manipulation is in off state, if
User is needed to be carried out other operations using mobile terminal and then also needs to reopen backlight, i.e. the switching of backlight will give
User makes troubles.
Therefore, the present inventor, which feels the above problem very, the necessity of its improvement, is engaged in related fields then with its many years
Design and professional manufacturing experience, energetically a kind of method for control touch-screen background lamp dispersion opening and closing and it is mobile eventually
End carries out research improvement, develops the present invention finally under careful consideration of the conditions of all parties.
Summary of the invention
For above situation, the shortcomings that in order to overcome the prior art, the embodiment of the invention provides a kind of control touch screens
The method and mobile terminal of background light dispersion opening and closing, can be big in effective mobile terminal touch screen power consumption solved when serving as handle
The problem of simultaneously, more brief operating process when serving as handle using mobile terminal can more easily switch background light
Open/close states, improve the use degree of user.
The embodiment of the present invention adopts the following technical scheme that
A method of control touch-screen background lamp dispersion opening and closing is applied on the mobile terminal when serving as game paddle,
The touch screen is embedded with background light, and the touch will be controlled when the mobile terminal receives the start command of game paddle
Screen enters game operation and control interface, game control area is shown on the game operation and control interface, the game control area is by multiple
Several virtual operational and controlled key buttons are formed, and the background light is made of N number of fluorescent tube, and N number of fluorescent tube is opened with N number of MOSFET respectively
Powered-down road is correspondingly connected with, and wherein N is the positive integer more than or equal to 1, and the voltage swing that each switch mosfet circuit is exported will
Determine the opening and closing of fluorescent tube connected to it;N number of switch mosfet circuit is connect with a switch controller respectively, the switch
Controller is via I2C bus is connected with the processor of the mobile terminal, wherein the switch controller is described for receiving
The instruction of processor simultaneously gives corresponding switch mosfet circuit according to the high/low level voltage of instruction output;
The dispersion opening and closing of the background light specifically will operate control by a background light control interface: the background light control
Interface processed is merging and generate, the background light display interface according to a background light display interface and the game operation and control interface
That generation is simulated according to present position of the N number of fluorescent tube in the touch screen, the background light display interface with it is described
The amalgamation mode of game operation and control interface are as follows: move the game control area in the game operation and control interface to the background
In lamp display interface;The background light control interface is provided with N number of switch-dividing, and wherein N is the positive integer more than or equal to 1, the N
A switch-dividing is separately positioned on the side in region locating for the icon of N number of fluorescent tube;
Wherein controlling the process that the background light dispersion opens and closes includes:
When the touch screen enters the game operation and control interface, the touch screen will be controlled automatically into the background
Lamp control interface;
User's pressing operation performed by the background light control interface is received, and judges whether the position of pressing is in
On any one switch of N number of switch-dividing;
If so, fluorescent tube corresponding to the switch-dividing that identification is pressed, and issue to close to the switch controller and be somebody's turn to do
The control instruction of fluorescent tube;
The switch controller generate high levle voltage and be input to on switch mosfet circuit corresponding to the fluorescent tube;
The switch mosfet circuit control fluorescent tube is closed.
Preferably, the method is also wrapped before the control instruction for issuing the closing fluorescent tube to the switch controller
It includes:
Judge whether the fluorescent tube corresponding to the switch-dividing being pressed is open state;
If it is not, will then issue the control instruction for opening the fluorescent tube to the switch controller;
The switch controller generate low level voltage and be input to on switch mosfet circuit corresponding to the fluorescent tube;
The switch mosfet circuit control fluorescent tube is opened.
Preferably, the background light control interface is additionally provided with M laterally switch and L longitudinal switch, each cross
A horizontally-arranged fluorescent tube is respectively corresponded to switch, switch respectively corresponds the fluorescent tube of a tandem, described M lateral switch point longitudinally in each
The most left or rightmost side of the icon of every horizontally-arranged fluorescent tube is not set, and the L longitudinal switch is separately positioned on every tandem fluorescent tube
The most upper or lower side of icon, M and L are respectively the positive integer for being more than or equal to 1 and being less than N, wherein receiving user in the back
After pressing operation performed by scape lamp control interface, the method also includes:
Judge whether the position of pressing is on any one switch of described M lateral switch or L longitudinal switch;
If so, horizontally-arranged fluorescent tube or tandem fluorescent tube corresponding to transverse direction switch or longitudinal switch that identification is pressed, and
The control instruction for closing the horizontally-arranged fluorescent tube or tandem fluorescent tube is issued to the switch controller;
The switch controller generate high levle voltage and be input to corresponding to the horizontally-arranged fluorescent tube or tandem fluorescent tube
Switch mosfet;
The switch mosfet circuit control horizontally-arranged fluorescent tube or tandem fluorescent tube are closed.
Preferably, the background light control interface is additionally provided with a master switch, wherein receiving user in the background
After pressing operation performed by lamp control interface, the method also includes:
Judge whether the position of pressing is on the master switch;
If so, issuing the control instruction for closing N number of fluorescent tube to the switch controller;
The switch controller generates high levle voltage and is input to and switch mosfet corresponding to N number of fluorescent tube;
N number of fluorescent tube described in the switch mosfet circuit control is closed.
Preferably, the method also includes:
Receive the END instruction that user is inputted in the background light control interface;
The control instruction for opening N number of fluorescent tube is issued to the switch controller according to the instruction;
The switch controller generates low level voltage and is input to and switch mosfet circuit corresponding to N number of fluorescent tube
On;
The N number of fluorescent tube of the switch mosfet circuit control is opened, while exiting the background light control interface.
A kind of mobile terminal a, comprising: touch screen, the touch screen are embedded with background light;The starting of game operation and control interface is single
Member will control the touch screen and enter game manipulation circle when for receiving the start command of game paddle in the mobile terminal
Face, wherein game control area is shown on the game operation and control interface, the game control area is by a plurality of virtual behaviour
Control key is formed, and the background light is made of N number of fluorescent tube, and N number of fluorescent tube is corresponding with N number of switch mosfet circuit respectively to be connected
It connects, wherein N is the positive integer more than or equal to 1, and decision is connected thereto by the voltage swing that each switch mosfet circuit is exported
Fluorescent tube opening and closing;
N number of switch mosfet circuit is connect with a switch controller respectively, and the switch controller is via I2C bus
It is connected with the processor of the mobile terminal, wherein the switch controller is used to receive the instruction of the processor and basis
The instruction exports high/low level voltage and gives corresponding switch mosfet circuit;
Wherein, the mobile terminal further include:
First generation unit, for according to present position of the N number of fluorescent tube in the touch screen to simulate generation one
Background light display interface;
Second generation unit, for merging the game operation and control interface with the background light display interface to generate a back
Scape lamp control interface;Wherein second generation unit includes an integrated unit, for by the institute in the game operation and control interface
Game control area is stated to move to the background light display interface;
Switch-dividing setting unit, for N number of switch-dividing to be arranged in the background light control interface, wherein N is more than or equal to 1
Positive integer, N number of switch-dividing is separately positioned on the side in region locating for the icon of N number of fluorescent tube;
Display unit, for showing the background light control when the touch screen enters the game operation and control interface
Interface;
First receiving unit, for receiving user's pressing operation performed by the background light control interface;
First judging unit, for judging whether the position of pressing is in any one switch of N number of switch-dividing;
First recognition unit, fluorescent tube corresponding to the switch-dividing being pressed for identification;
First instruction sending unit, for issuing the control instruction for closing the fluorescent tube to the switch controller;
Wherein, the control instruction issued according to first instruction sending unit is also generated Gao Zhun by the switch controller
Position voltage and be input to on switch mosfet circuit corresponding to the fluorescent tube;The switch mosfet circuit will be used to control this
Fluorescent tube is closed.
Preferably, the mobile terminal further include:
Second judgment unit, for judging whether the fluorescent tube corresponding to the switch-dividing being pressed is open state;The
Two instruction sending units, for issuing the control instruction for opening the fluorescent tube to the switch controller;
Wherein, the switch controller also produces the control instruction further issued according to second instruction sending unit
Raw low level voltage and be input to on switch mosfet circuit corresponding to the fluorescent tube;The switch mosfet circuit is further
It is opened for controlling the fluorescent tube.
Preferably, the mobile terminal further include:
Laterally switch setting unit, for also setting up M laterally switch in the background light control interface, wherein each
Laterally switch respectively corresponds a horizontally-arranged fluorescent tube, and described M laterally switchs the most left of the icon for being separately positioned on every horizontally-arranged fluorescent tube
Or the rightmost side, M are the positive integer more than or equal to 1 and less than N;
Longitudinal switch setting unit, for also setting up L longitudinal switch in the background light control interface, wherein each
Longitudinal switch respectively corresponds the fluorescent tube of a tandem, and the L longitudinal switch is separately positioned on the most upper of the icon of every tandem fluorescent tube
Or lower side, L are the positive integer more than or equal to 1 and less than N;
Third judging unit laterally switchs or L longitudinal switch for judging whether the position of pressing is in described M
On any one switch;
Second recognition unit, horizontally-arranged fluorescent tube or vertical corresponding to the transverse direction switch or longitudinal switch being pressed for identification
Bank light pipe;
Third instruction sending unit, for issuing the control for closing the horizontally-arranged fluorescent tube or tandem fluorescent tube to the switch controller
System instruction;
Wherein, the switch controller also produces the control instruction further issued according to the third instruction sending unit
It gives birth to high levle voltage and is input to and switch mosfet corresponding to the horizontally-arranged fluorescent tube or tandem fluorescent tube;The switch mosfet electricity
Road is further used for controlling the horizontally-arranged fluorescent tube or tandem fluorescent tube is closed.
Preferably, the mobile terminal further include:
Master switch setting unit, for a master switch to be arranged in the background light control interface;
4th judging unit, for judging whether the position of pressing is in the master switch;
4th instruction sending unit, for issuing the control instruction for closing N number of fluorescent tube to the switch controller;
Wherein, the switch controller also produces the control instruction further issued according to the 4th instruction sending unit
It gives birth to high levle voltage and is input to and switch mosfet corresponding to N number of fluorescent tube;The switch mosfet circuit is further
It is closed for controlling N number of fluorescent tube.
Preferably, the mobile terminal further include:
Second receiving unit, the END instruction inputted for receiving user in the background light control interface;
5th instruction sending unit, for being controlled according to the received END instruction of second receiving unit to the switch
Device processed issues the control instruction for opening N number of fluorescent tube;
Wherein, the switch controller also produces the control instruction further issued according to the 5th instruction sending unit
Raw low level voltage and be input to on switch mosfet circuit corresponding to N number of fluorescent tube;The switch mosfet circuit is into one
Step is opened for controlling N number of fluorescent tube;
The mobile terminal further includes that unit is exited at an interface, for exiting the background when N number of fluorescent tube is opened
Lamp control interface.
Technical solution provided in an embodiment of the present invention has the benefit that using technical solution of the present invention, will carry on the back
Scape lamp is arranged to be made of N number of fluorescent tube, and the open/close states of N number of fluorescent tube as described in user's control, specifically, the background
It is provided with N number of switch-dividing in lamp control interface, user can be closed by any one point of pressing so that its corresponding fluorescent tube is closed, such as
After user presses a switch-dividing, system will identify fluorescent tube corresponding to the switch-dividing, and issues and close to the switch controller
The control instruction of the fluorescent tube, the switch controller generate high levle voltage and are input to and open with MOSFET corresponding to the fluorescent tube
Powered-down road, the switch mosfet circuit control fluorescent tube are closed;When the touch screen is in the background light control interface
When, user can be not covered with switch-dividing corresponding to the fluorescent tube of the game control area by pressing to control fluorescent tube pass
It closes, in this way, then when the touch screen is on game operation and control interface, so that it may which only control covers the game control area
Fluorescent tube is opened, i.e., the described game control area is bright screen state, and other regions are black state, can be effectively saved screen consumption
Electricity;In addition, being additionally provided with master switch in the background light control interface, user can be controlled described by pressing the master switch
N number of fluorescent tube all light is complete dark, and user is facilitated to switch the open/close states of background light, and user can quickly use other function of mobile terminal
Can, improve the use degree of user.
Detailed description of the invention
In order to which the above-mentioned and other purposes of the present invention, feature, advantage can be clearer and more comprehensible, embodiment will hereafter be described
Needed in attached drawing make one and simply introduce, it should be apparent that, the accompanying drawings in the following description is only of the invention one
A little embodiments, for those of ordinary skill in the art, do not pay create it is laborious under the premise of, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is a kind of background light circuit connection diagram for mobile terminal that the embodiment of the present invention one provides;
Fig. 2 is a kind of background light display interface schematic diagram that the embodiment of the present invention one provides;
Fig. 3 is a kind of game operation and control interface schematic diagram that the embodiment of the present invention one provides;
Fig. 4 is a kind of background light control interface schematic diagram that the embodiment of the present invention one provides;
Fig. 5 is a kind of method flow signal for control touch-screen background lamp dispersion opening and closing that the embodiment of the present invention one provides
Figure;
Fig. 6 is the method flow schematic diagram that a kind of control fluorescent tube that the embodiment of the present invention one provides is opened;
Fig. 7 is a kind of method flow signal for controlling horizontally-arranged fluorescent tube or tandem fluorescent tube and closing provided by Embodiment 2 of the present invention
Figure;
Fig. 8 is a kind of method flow schematic diagram for controlling N number of fluorescent tube and closing that the embodiment of the present invention three provides;
Fig. 9 is a kind of method flow schematic diagram for controlling N number of fluorescent tube and opening that the embodiment of the present invention three provides;
Figure 10 is a kind of mobile terminal block schematic diagram that the embodiment of the present invention four provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiment is only a part of the embodiments of the present invention, instead of all the embodiments.Base
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its
His embodiment, belongs to protection scope of the present invention.
In following embodiment of the present invention, the mobile terminal include, but are not limited to have the smart phone of touch screen,
Tablet computer, net book, PDA (Portable Digital Assistant), intelligent wearable equipment etc..
Embodiment one
Fig. 1 to Fig. 5 is please referred to, Fig. 1 is a kind of background light circuit connection for mobile terminal that the embodiment of the present invention one provides
Schematic diagram;Fig. 2 is a kind of background light display interface schematic diagram that the embodiment of the present invention one provides;Fig. 3 is the embodiment of the present invention one
A kind of game operation and control interface schematic diagram provided;Fig. 4 is a kind of background light control interface signal that the embodiment of the present invention one provides
Figure;Fig. 5 is a kind of method flow schematic diagram for control touch-screen background lamp dispersion opening and closing that the embodiment of the present invention one provides.
Specifically, a kind of method for present embodiments providing control touch-screen background lamp dispersion opening and closing, applies and is serving as trip
On mobile terminal when play handle, the touch screen is embedded with background light, receives opening for game paddle in the mobile terminal
The touch screen will be controlled when dynamic order and enters game operation and control interface, shows game control zone on the game operation and control interface
Domain, the game control area are made of a plurality of virtual operational and controlled key buttons, and the background light is made of N number of fluorescent tube, the N
A fluorescent tube is correspondingly connected with N number of switch mosfet circuit respectively, and wherein N is the positive integer more than or equal to 1, each switch mosfet
The voltage swing that circuit is exported will determine the opening and closing of fluorescent tube connected to it;N number of switch mosfet circuit is respectively with one
Switch controller connection, the switch controller is via I2C bus is connected with the processor of the mobile terminal, wherein described
Switch controller, which is used to receive the instruction of the processor and exports high/low level voltage according to the instruction, gives corresponding MOSFET
Switching circuit, and the model TCA6424A of the switch controller.
The dispersion opening and closing of the background light specifically will operate control by a background light control interface: the background light control
Interface processed is merging and generate, the background light display interface according to a background light display interface and the game operation and control interface
That generation is simulated according to present position of the N number of fluorescent tube in the touch screen, the background light display interface with it is described
The amalgamation mode of game operation and control interface are as follows: move the game control area in the game operation and control interface to the background
In lamp display interface;The background light control interface is provided with N number of switch-dividing, and wherein N is the positive integer more than or equal to 1, the N
A switch-dividing is separately positioned on the side in region locating for the icon of N number of fluorescent tube.
In the present embodiment, N=12 is set, i.e., the described background light is made of 12 fluorescent tubes, as shown in Figure 1, described
3 horizontally-arranged 4 tandem fluorescent tubes are set altogether on touch screen.It is vertical that the background light display interface that simulation generates then equally shows 3 horizontally-arranged 4
Row is 12 fluorescent tubes.It is shown specifically, moving the game control area in the game operation and control interface to the background light
Show in interface to implement in the following manner: each in the game operation and control interface and the background light display interface respectively first
Reference axis is established, then will acquire game control area coordinate position locating in the game operation and control interface, i.e., often
Coordinate position locating for a virtual key after acquisition, then shows boundary in the background light according to the coordinate position got
Region corresponding thereto is found out on face, finally again moves each virtual key according to respectively corresponding region.Example
Such as, it is assumed that the coordinate position that one of virtual key is got in the game operation and control interface is (c, a) (c, b) (d, b)
(d, a) will then find out area corresponding with coordinate position (c, a) (c, b) (d, b) (d, a) on the background light display interface
Domain finally moves the virtual key to the region on the background light display interface.
Wherein control the process of background light dispersion opening and closing the following steps are included:
Step 101, when the touch screen enters the game operation and control interface, will control the touch screen automatically into
The background light control interface;
Step 102 receives user's pressing operation performed by the background light control interface, and judges the position of pressing
Whether it is on any one switch of N number of switch-dividing;
If so, then follow the steps 103, fluorescent tube corresponding to the switch-dividing that identification is pressed, and to the switch control
Device issues the control instruction for closing the fluorescent tube;
Step 104, the switch controller generate high levle voltage and are input to and open with MOSFET corresponding to the fluorescent tube
Powered-down road;
Step 105, the switch mosfet circuit control fluorescent tube are closed.
In a step 101, whether touch screen described in detecting real-time is entered the game operation and control interface by terminal system, when
When detecting the touch screen and entering the game operation and control interface, the touch screen will be controlled automatically into the background light control
Interface processed.
In a step 102, whether the position of pressing is judged to be on any one switch of N number of switch-dividing can specifically lead to
It crosses following manner implementation: establishing reference axis in the background light control interface first, will then detect N number of switch-dividing respectively
In the background light control interface locating coordinate position is receiving user in executing in the background light control interface
The coordinate of pressing position is recorded when pressing operation, whether the coordinate for comparing the pressing position is in N number of switch-dividing arbitrarily
On coordinate position locating for one switch-dividing, if thening follow the steps 103.
In step 103, specifically, need to identify which fluorescent tube corresponding to the switch-dividing being pressed is, before this,
It needs first to identify which the switch-dividing being pressed is, when implementation, 12 fluorescent tubes can be respectively set as first and second ... 12
Fluorescent tube a, b ... l, 12 switch-dividing I, II ... the XII that switch-dividing are respectively set as first and second ..., when judging user
When on the switch-dividing within which of the position of pressing, need to identify be specifically which switch-dividing;For example, it is assumed that user's pressing
Position is on the first switch-dividing I, then that terminal system will identify that user's pressing is the first switch-dividing I, and is known
Not Chu fluorescent tube corresponding to the first switch-dividing I be the first fluorescent tube a.Then at step 104, the switch controller will
It generates high levle voltage and is input to on switch mosfet circuit corresponding to the first fluorescent tube a, such as+5V can be inputted
Voltage to and on switch mosfet circuit corresponding to the first fluorescent tube a, in this way, corresponding to the first fluorescent tube a
Switch mosfet circuit is by Non voltage output, i.e. 0V, and by switch mosfet circuit and institute corresponding to the first fluorescent tube a
It states the first fluorescent tube a to be connected, therefore is 0V by the voltage of the first fluorescent tube a, the first fluorescent tube a will be opened by the MOSFET
Circuit control is closed to close.
Therefore, in the actual operation process, i.e., when the touch screen is in the background light control interface, Yong Huke
Switch-dividing corresponding to the fluorescent tube of the game control area is not covered with by pressing to control fluorescent tube closing, in this way, then
When the touch screen is on the game operation and control interface, so that it may which the fluorescent tube that only control covers the game control area is opened
It opens, i.e., the described game control area is bright screen state, and other regions are black state, can be effectively saved screen power consumption.
Further, in step s 102, if it is judged that the position of pressing is not located at any one of N number of switch-dividing
On switch, that is, it is in other regions in the background light control interface, then will terminates process.
Referring to FIG. 6, Fig. 6 is the method flow schematic diagram that a kind of control fluorescent tube that the embodiment of the present invention one provides is opened.
In practical applications, if user also not in executed in the background light control interface press any one switch-dividing operation it
Before, fluorescent tube corresponding to the switch-dividing is at closed state, then is still to control according to the result that above-mentioned steps are finally implemented
Fluorescent tube corresponding to the switch-dividing is closed;And actually user presses the switch-dividing and is intended to open its corresponding fluorescent tube, because
This is in order to improve this point, in the present embodiment, i.e., to the switch controller issue close the fluorescent tube control instruction it
Before, the method also includes following steps:
Whether the fluorescent tube corresponding to the switch-dividing that step 201, judgement are pressed is open state;
If it is not, thening follow the steps 202, the control instruction for opening the fluorescent tube will be issued to the switch controller;
Step 203, the switch controller generate low level voltage and are input to and open with MOSFET corresponding to the fluorescent tube
Powered-down road;
Step 204, the switch mosfet circuit control fluorescent tube are opened.
In step 201, it is assumed that user's pressing is the first switch-dividing I, then terminal system will judge that described first point is opened
Close whether the first fluorescent tube a corresponding to I is open state, if not thening follow the steps 202.
In this way, then in step 203, the switch controller will generate low level voltage and be input to and first lamp
On switch mosfet circuit corresponding to pipe a, such as the voltage of 0V can be inputted extremely and corresponding to the first fluorescent tube a
On switch mosfet circuit, in this way, switch mosfet circuit corresponding to the first fluorescent tube a will have a voltage output, such as+
5V, and the switch mosfet circuit as corresponding to the first fluorescent tube a is connected with the first fluorescent tube a, passes through institute
The voltage for stating the first fluorescent tube a is+5V, and the first fluorescent tube a will be opened by the switch mosfet circuit control.
Further, in step 201, if it is judged that the fluorescent tube corresponding to the switch-dividing being pressed is opening state
State thens follow the steps fluorescent tube corresponding to the switch-dividing that 103, identification is pressed, and issues and close to the switch controller
The control instruction of the fluorescent tube.
Embodiment two
The present embodiment is substantially the same with embodiment one, the difference is that, it is more quickly controlled in order to facilitate user
N number of fluorescent tube opens or closes, such as can reach and disposably control the effect that the fluorescent tube of a certain row opens or closes, at this
In embodiment, the background light control interface is additionally provided with M laterally switch and L longitudinal switch, each laterally switch point
Not Dui Ying a horizontally-arranged fluorescent tube, switch respectively corresponds the fluorescent tube of a tandem longitudinally in each, and described M laterally switchs and be separately positioned on
The most left or rightmost side of icon per horizontally-arranged fluorescent tube, the L longitudinal switch are separately positioned on the icon of every tandem fluorescent tube most
Upper or lower side, M and L are respectively the positive integer for being more than or equal to 1 and being less than N.
Referring to FIG. 7, Fig. 7 is a kind of side for controlling horizontally-arranged fluorescent tube or tandem fluorescent tube and closing provided by Embodiment 2 of the present invention
Method flow diagram.Specifically, after receiving user's pressing operation performed by the background light control interface, the side
Method is further comprising the steps of:
Step 301 judges whether the position of pressing is in described M lateral switch or L any one of longitudinal switch opens
It shuts;
If so, then follow the steps 302, transverse direction that identification is pressed switchs or longitudinal switch corresponding to horizontally-arranged fluorescent tube or
Tandem fluorescent tube, and the control instruction for closing the horizontally-arranged fluorescent tube or tandem fluorescent tube is issued to the switch controller;
Step 303, the switch controller generate high levle voltage and are input to and the horizontally-arranged fluorescent tube or tandem fluorescent tube institute
Corresponding switch mosfet;
Step 304, the switch mosfet circuit control horizontally-arranged fluorescent tube or tandem fluorescent tube are closed.
Specifically, in the present embodiment, setting M=4, L=3.The lateral switch or vertical being pressed firstly the need of first identification
To switch which is specifically, when implementation, can by 3 laterally switch be respectively set as first, second and third laterally switch XIII,
3 horizontally-arranged fluorescent tubes are respectively set as first, second and third horizontally-arranged fluorescent tube m, n, o by XIV, XV;4 longitudinal switches are respectively set as
4 tandem fluorescent tubes are respectively set as first, second, third and fourth and indulged by first, second, third and fourth longitudinal switch XVI, XVI, XVIII, XIX
Bank light pipe p, q, r, s;When the position for judging user's pressing is in any one of described 4 laterally switch or 4 longitudinal switches
When on switch, which laterally switch or longitudinal switch needs to identify is specifically;For example, it is assumed that the position of user's pressing is in institute
It states on the first lateral switch XIII, then that terminal system will identify that user's pressing is the described first lateral switch XIII, and is known
Not Chu described first laterally fluorescent tube corresponding to switch XIII be the described first horizontally-arranged fluorescent tube m.Then the switch controller will produce
Raw high levle voltage and be input to on switch mosfet circuit corresponding to the described first horizontally-arranged fluorescent tube m, i.e., described first,
Two, on the corresponding switch mosfet circuits of three, four fluorescent tube a, b, c, d institutes, for example, can input the voltage of+5V to it is described
On switch mosfet circuit corresponding to first horizontally-arranged fluorescent tube m, in this way, corresponding to described first, second, third and fourth fluorescent tube a, b, c, d
Switch mosfet circuit by Non voltage output, i.e. 0V, and as corresponding to described first, second, third and fourth fluorescent tube a, b, c, d
Switch mosfet circuit is connected with described first, second, third and fourth fluorescent tube a, b, c, d respectively, therefore by described first and second,
Three, the voltage of four fluorescent tube a, b, c, d is 0V, and described first, second, third and fourth fluorescent tube a, b, c, d will be by the switch mosfet circuit controls
System is closed, i.e., the described first horizontally-arranged fluorescent tube m is closed by the switch mosfet circuit control.
Further, in step 301, if it is determined that the position of pressing is not located at described M laterally switch or L longitudinal direction
On any one switch of switch, then directly terminate process.
Embodiment three
Referring to FIG. 8, Fig. 8 is a kind of method flow signal for controlling N number of fluorescent tube and closing that the embodiment of the present invention three provides
Figure.The present embodiment is substantially the same with embodiment one, the difference is that, N number of fluorescent tube is switched fast in order to facilitate user
Open/close states, in the present embodiment, the background light control interface is additionally provided with a master switch XX, receive user in described
After pressing operation performed by background light control interface, the method also includes following steps:
Step 401 judges whether the position of pressing is on the master switch XX;
If so, thening follow the steps 402, Xiang Suoshu switch controller issues the control instruction for closing N number of fluorescent tube;
Step 403, the switch controller generate high levle voltage and be input to corresponding to N number of fluorescent tube
Switch mosfet;
N number of fluorescent tube described in step 404, the switch mosfet circuit control is closed.
In step 401, judging whether the position of pressing is on the master switch XX can specifically implement in the following manner:
Reference axis is established in the background light control interface first, the master switch XX will be then detected respectively and is controlled in the background light
Locating coordinate position on interface, when receiving user in the pressing operation executed in the background light control interface record by
The coordinate for pressing position, judges whether the coordinate of the pressing position is on coordinate position locating for the master switch XX.
In step 404, the switch controller will generate high levle voltage and be input to corresponding to N number of fluorescent tube
Switch mosfet circuit on, such as can input the voltage of+5V to switch mosfet circuit corresponding to N number of fluorescent tube
On, in this way, switch mosfet circuit corresponding to N number of fluorescent tube is by Non voltage output, i.e. 0V, and due to N number of fluorescent tube
Corresponding switch mosfet circuit is connected with N number of fluorescent tube respectively, therefore is 0V by the voltage of N number of fluorescent tube,
N number of fluorescent tube will be closed by the switch mosfet circuit control.
In step 401, if it is determined that the position of pressing is not located on the master switch XX, then directly terminate process.
Referring to FIG. 9, Fig. 9 is a kind of method flow signal for controlling N number of fluorescent tube and opening that the embodiment of the present invention three provides
Figure.In the present embodiment, the method also includes:
Step 501 receives the END instruction that user is inputted in the background light control interface;
Step 502 issues the control instruction for opening N number of fluorescent tube according to the instruction to the switch controller;
Step 503, the switch controller generate low level voltage and are input to and open with MOSFET corresponding to N number of fluorescent tube
Powered-down road;
The N number of fluorescent tube of step 504, the switch mosfet circuit control is opened, while exiting the background light control interface.
In step 501, user makes in background light control interface end of input instruction, can be in a preset region
Interior input, or it is also possible to press the master switch XX to input, the present embodiment is preferably for the former.
When terminal system receives the END instruction of user's input, will be issued according to the instruction to the switch controller
The control instruction of N number of fluorescent tube is opened, the switch controller will generate low level voltage and input after receiving the instruction
To and on switch mosfet circuit corresponding to N number of fluorescent tube, such as can input the voltage of 0V to N number of fluorescent tube institute
On corresponding switch mosfet circuit, in this way, switch mosfet circuit corresponding to N number of fluorescent tube will have voltage output, example
Such as+5V, and the switch mosfet circuit as corresponding to N number of fluorescent tube is connected with N number of fluorescent tube respectively, passes through
The voltage of N number of fluorescent tube is+5V, and N number of fluorescent tube will be opened by the switch mosfet circuit control.
While opening, terminal system will control the touch screen and exit the background light control interface, specifically,
After exiting, terminal system can control the touch screen to enter the game operation and control interface or other interfaces, in the present embodiment
In will be not construed as limiting.
If function described in the present embodiment method is realized in the form of SFU software functional unit and as independent product pin
It sells or in use, can store in a storage medium readable by a compute device.Based on this understanding, the embodiment of the present invention
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, this is soft
Part product is stored in a storage medium, including some instructions are used so that calculating equipment (it can be personal computer,
Server, mobile computing device or network equipment etc.) execute all or part of step of each embodiment the method for the present invention
Suddenly.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), deposits at random
The various media that can store program code such as access to memory (RAM, Random Access Memory), magnetic or disk.
Example IV
Please refer to figs. 1 to 4 and Figure 10, and Figure 10 is a kind of mobile terminal square signal that the embodiment of the present invention four provides
Figure.Specifically, the present embodiment provides a kind of mobile terminals, comprising: a touch screen 1, the touch screen 1 are embedded with background light 2;Trip
Play operation and control interface start unit 3, will control the touching when for receiving the start command of game paddle in the mobile terminal
It touches screen 1 and enters game operation and control interface, wherein show game control area, the game control on the game operation and control interface
Region is made of a plurality of virtual operational and controlled key buttons;The background light 2 is made of N number of fluorescent tube, N number of fluorescent tube respectively with N
A switch mosfet circuit 4 is correspondingly connected with, wherein N is the positive integer more than or equal to 1, and each switch mosfet circuit 4 is exported
Voltage swing will determine the opening and closing of fluorescent tube connected to it;
N number of switch mosfet circuit 4 is connect with a switch controller 5 respectively, and the switch controller 5 is via I2C
Bus is connected with the processor 5.0 of the mobile terminal, wherein the switch controller 5 is for receiving the processor 5.0
Instruction and high/low level voltage exported according to the instruction give corresponding switch mosfet circuit 4;
Wherein, the mobile terminal further include:
First generation unit 6, for being generated according to present position of the N number of fluorescent tube in the touch screen 1 with simulating
One background light, 2 display interface;
Second generation unit 7, for merging the game operation and control interface with 2 display interface of background light to generate one
Background light control interface;Wherein second generation unit 7 includes an integrated unit 8, and being used for will be in the game operation and control interface
The game control area move to 2 display interface of background light;
Switch-dividing setting unit 9, for N number of switch-dividing to be arranged in the background light control interface, wherein N be more than or equal to
1 positive integer, N number of switch-dividing are separately positioned on the side in region locating for the icon of N number of fluorescent tube;
Display unit 10, for showing the background light when the touch screen 1 enters the game operation and control interface
Control interface;
First receiving unit 11, for receiving user's pressing operation performed by the background light control interface;
First judging unit 12, for judging whether the position of pressing is in any one switch of N number of switch-dividing;
First recognition unit 13, fluorescent tube corresponding to the switch-dividing being pressed for identification;
First instruction sending unit 14, for issuing the control instruction for closing the fluorescent tube to the switch controller 5;Its
In, the control instruction issued according to first instruction sending unit 14 is also generated high levle voltage by the switch controller 5
And be input to on switch mosfet circuit 4 corresponding to the fluorescent tube;The switch mosfet circuit 4 will be used to control the fluorescent tube
It closes.
As a kind of enforceable mode, in the present embodiment, the mobile terminal further include:
Second judgment unit 15, for judging whether the fluorescent tube corresponding to the switch-dividing being pressed is open state;
Second instruction sending unit 16, for issuing the control instruction for opening the fluorescent tube to the switch controller 5;Its
In, the control instruction further issued according to second instruction sending unit 16 is also generated low standard by the switch controller 5
Position voltage and be input to on switch mosfet circuit 4 corresponding to the fluorescent tube;The switch mosfet circuit 4 is further used for
Control fluorescent tube unlatching.
As a kind of enforceable mode, in the present embodiment, the mobile terminal further include:
Laterally switch setting unit 17, for also setting up M laterally switch in the background light control interface, wherein every
A laterally switch respectively corresponds a horizontally-arranged fluorescent tube, and described M lateral switch is separately positioned on the icon per horizontally-arranged fluorescent tube most
The left or rightmost side, M are the positive integer more than or equal to 1 and less than N;
Longitudinal switch setting unit 18, for also setting up L longitudinal switch in the background light control interface, wherein every
A longitudinal switch respectively corresponds the fluorescent tube of a tandem, and the L longitudinal switch is separately positioned on the icon of every tandem fluorescent tube most
Upper or lower side, L are the positive integer more than or equal to 1 and less than N;
Third judging unit 19, for judging whether the position of pressing is in described M laterally switch or L longitudinal switch
Any one switch on;
Second recognition unit 20, be pressed for identification the transverse direction switch or longitudinal switch corresponding to horizontally-arranged fluorescent tube or
Tandem fluorescent tube;
Third instruction sending unit 21 closes the horizontally-arranged fluorescent tube or tandem fluorescent tube for issuing to the switch controller 5
Control instruction;
Wherein, the switch controller 5 will also further refer to according to the control that the third instruction sending unit 21 issues
It enables and generates high levle voltage and be input to and switch mosfet corresponding to the horizontally-arranged fluorescent tube or tandem fluorescent tube;The MOSFET is opened
Powered-down road 4 is further used for controlling the horizontally-arranged fluorescent tube or tandem fluorescent tube is closed.
As a kind of enforceable mode, in the present embodiment, the mobile terminal further include:
Master switch setting unit 22, for a master switch to be arranged in the background light control interface;
4th judging unit 23, for judging whether the position of pressing is in the master switch;
4th instruction sending unit 24, the control for issuing closing N number of fluorescent tube to the switch controller 5 refer to
It enables;
Wherein, the switch controller 5 will also further refer to according to the control that the 4th instruction sending unit 24 issues
It enables and generates high levle voltage and be input to and switch mosfet corresponding to N number of fluorescent tube;The switch mosfet circuit 4 into
One step is closed for controlling N number of fluorescent tube.
As a kind of enforceable mode, in the present embodiment, the mobile terminal further include:
Second receiving unit 25, the END instruction inputted for receiving user in the background light control interface;
5th instruction sending unit 26, for being opened according to the received END instruction of second receiving unit 25 to described
It closes controller 5 and issues the control instruction for opening N number of fluorescent tube;
Wherein, the switch controller 5 will also further refer to according to the control that the 5th instruction sending unit 26 issues
Enable generate low level voltage and be input to on switch mosfet circuit 4 corresponding to N number of fluorescent tube;The switch mosfet circuit
4 are further used for controlling N number of fluorescent tube unlatching;
The mobile terminal further includes that unit 27 is exited at an interface, for exiting the back when N number of fluorescent tube is opened
Scape lamp control interface.
It should be understood that the specific implementation process of above-mentioned each unit (can be implemented with above method embodiment in example IV
Example one to three) description it is corresponding, be not described in detail herein.
Mobile terminal provided by above-described embodiment four is only carried out with the division of above-mentioned each functional unit for example, real
In the application of border, it can according to need and function distribution will be appealed and completed by different functional units, i.e., by the mobile terminal
Internal structure is divided into different functional units, to complete all or part of the functions described above.In addition, above-described embodiment
The mobile terminal and embodiment of the method for offer belong to same design, and specific implementation process is detailed in embodiment of the method, herein will not
It is repeated.The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Following advantages can be achieved in the present invention:
By the present invention, background light is arranged to be made of N number of fluorescent tube, and N number of fluorescent tube as described in user's control
Open/close states, specifically, being provided with N number of switch-dividing in the background light control interface, user can pass through any one point of pass of pressing
So that system will identify fluorescent tube corresponding to the switch-dividing after its corresponding fluorescent tube is closed, such as user presses a switch-dividing, and
The control instruction for closing the fluorescent tube is issued to the switch controller, the switch controller generates high levle voltage and is input to
On switch mosfet circuit corresponding to the fluorescent tube, which is closed;When the touch screen
When being in the background light control interface, user can be not covered with corresponding to the fluorescent tube of the game control area by pressing
Switch-dividing with control the fluorescent tube closing, in this way, then when the touch screen be on game operation and control interface, so that it may only control
The fluorescent tube for covering the game control area is opened, i.e., the described game control area is bright screen state, and other regions are blank screen shape
State can be effectively saved screen power consumption;In addition, being additionally provided with master switch, user Ke Tong in the background light control interface
It crosses and presses the master switch to control N number of fluorescent tube all light or complete dark, user is facilitated to switch the open/close states of background light, Yong Huke
The other functions of quickly using mobile terminal, improve the use degree of user.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope of the requirement.