It is a kind of to control the scattered method opened and closed of touch-screen background lamp
The application is application number:2015101697830, the applying date:On 04 13rd, 2015, denomination of invention:One kind control touches
Shield the scattered method opened and closed of background light and the divisional application of mobile terminal.
Technical field
The present invention relates to technical field of mobile terminals, and the scattered side opened and closed of touch-screen background lamp is controlled more particularly to a kind of
Method and mobile terminal.
Background technology
At present, it is very common entertainment way that handle game is carried out in the equipment such as PC, Xbox, PS3 and intelligent TV.With
Smart mobile phone screen enlarging and communication function enhancing, on the basis of WIFI or bluetooth are supported, smart mobile phone etc. can be passed through
Mobile terminal is played to serve as handle.The shortcomings that prior art is present has:Terminal needs 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.
The patent of Application No. 201310660060.1 discloses a kind of mobile terminal touch screen control of integrated game handle
Method processed, it passes through foundation game key mapping and institute by being provided with the key mapping equipment with game key mapping on mobile terminals
The corresponding relation of key mapping input area on mobile terminal touch screen is stated, realizes the simulation of game of mobile terminal handle, Yong Hutong
The game key mapping crossed 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 pattern
Use, due to being arranged with key mapping equipment on touch-screen, therefore controlling back light lamp is closed, without user when carrying out game operation
Screen is persistently lighted, so as to reach the purpose for reducing electric quantity consumption;When mobile terminal and game station disconnect, then can control
Backlight is opened, to meet normal use of the user to other functions of mobile terminal.
However, the drawbacks of implementing this technical scheme is:Need to be arranged key mapping equipment on the touchscreen, add movement
The complexity of terminal structure, also need to be arranged key mapping equipment on the touchscreen before handle is served as using mobile terminal, so that
Process becomes cumbersome;In addition, mobile terminal backlight during serving as handle and carrying out game manipulation is closed mode, if
User needs to use mobile terminal to carry out other operations and then also needs to reopen backlight, i.e. the switching of backlight will give
User makes troubles.
Therefore, the present inventor feels the necessity that above mentioned problem has it to improve very much, is engaged in association area for many years then with it
Design and professional manufacturing experience, energetically for it is a kind of control the scattered method opened and closed of touch-screen background lamp and it is mobile eventually
End carries out research improvement, and the present invention is developed finally under the scrupulous consideration of each side's condition.
The content of the invention
For the above situation, the shortcomings that in order to overcome prior art, the embodiments of the invention provide one kind to control touch-screen
The scattered method opened and closed of background light and mobile terminal, mobile terminal touch screen power consumption that can be when handle is served as in effective solution are big
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:
It is a kind of to control the scattered method opened and closed of touch-screen background lamp, apply on the mobile terminal when serving as game paddle, it is described
Touch-screen is embedded with background light, when the mobile terminal receives the startup order of game paddle the touch-screen will be controlled to enter
Enter operation and control interface of playing, game control area is shown on the game operation and control interface, the game control area is by a plurality of
Virtual operational and controlled key button is formed, and the background light is made up of N number of fluorescent tube, and N number of fluorescent tube is electric with N number of switch mosfet respectively
Road is corresponding to be connected, 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 keying of connected fluorescent tube;N number of switch mosfet circuit is connected with a switch controller respectively, the switch control
Device is via I2C buses are connected with the processor of the mobile terminal, wherein the switch controller is used to receive the processing
The instruction of device and the switch mosfet circuit according to corresponding to giving the high/low level voltage of instruction output;
The scattered keying of the background light specifically will be by a background light control interface come operational control:The background light controls boundary
Face be according to a background light display interface with it is described game merging for operation and control interface and generate, the background light display interface is root
Generation, the background light display interface and the game are simulated according to present position of the N number of fluorescent tube in the touch-screen
The amalgamation mode of operation and control interface is:The game control area in the game operation and control interface is moved to the background light and shown
Show in 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, described N number of point
Switch is separately positioned on the side in region residing for the icon of N number of fluorescent tube;
The scattered process opened and closed of the background light is wherein controlled to include:
When the touch-screen enters the game operation and control interface, the touch-screen will be controlled automatically into the background light control
Interface processed;
User is received in the pressing operation performed by the background light control interface, and judge pressing position whether be in it is described
On any one switch of N number of switch-dividing;
If so, then identifying the fluorescent tube corresponding to the switch-dividing being pressed, and sent to the switch controller and close the fluorescent tube
Control instruction;
The switch controller produce high levle voltage and input to on the switch mosfet circuit corresponding to the fluorescent tube;
The switch mosfet circuit controls the fluorescent tube to close.
Preferably, before the control instruction of the closing fluorescent tube is sent to the switch controller, methods described is also wrapped
Include:
Whether the fluorescent tube corresponding to the switch-dividing for judging to be pressed is opening;
If it is not, then the control instruction for opening the fluorescent tube will be sent to the switch controller;
The switch controller produce low level voltage and input to on the switch mosfet circuit corresponding to the fluorescent tube;
The switch mosfet circuit controls the fluorescent tube to open.
Preferably, the background light control interface is additionally provided with M laterally switch and L longitudinal switch, it is each horizontal
A horizontally-arranged fluorescent tube is corresponded to respectively to switch, switchs the fluorescent tube for corresponding to a tandem respectively, described M horizontal switch point longitudinally in each
The most left or rightmost side of the icon per horizontally-arranged fluorescent tube is not arranged on, 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 more than or equal to 1 and less than N, wherein receiving user in the back of the body
After pressing operation performed by scape lamp control interface, methods described also includes:
Judge whether the position of pressing is on any one switch of described M horizontal switch or L longitudinal switch;
If so, the horizontally-arranged fluorescent tube or tandem fluorescent tube corresponding to the transverse direction switch or longitudinal switch being pressed then are identified, and to institute
State switch controller and send the control instruction for closing the horizontally-arranged fluorescent tube or tandem fluorescent tube;
The switch controller produces the MOSFET of high levle voltage and input extremely corresponding to the horizontally-arranged fluorescent tube or tandem fluorescent tube
Switch;
The switch mosfet circuit controls the horizontally-arranged fluorescent tube or tandem fluorescent tube to close.
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, methods described also includes:
Judge whether the position of pressing is on the master switch;
If so, the control instruction for closing N number of fluorescent tube is then sent to the switch controller;
The switch controller produces the switch mosfet of high levle voltage and input extremely corresponding to N number of fluorescent tube;
Switch mosfet circuit control N number of fluorescent tube is closed.
Preferably, methods described 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 sent to the switch controller according to the instruction;
The switch controller produce low level voltage and input to on the switch mosfet circuit corresponding to N number of fluorescent tube;
The switch mosfet circuit controls N number of fluorescent tube to open, while exits the background light control interface.
A kind of mobile terminal, including:One touch-screen, the touch-screen are embedded with background light;Operation and control interface of playing starts single
Member, for the touch-screen will to be controlled to enter game manipulation circle when receiving the startup order 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 button is formed, and the background light is made up 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
Connect, 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 to be connected thereto
Fluorescent tube keying;
N number of switch mosfet circuit is connected with a switch controller respectively, and the switch controller is via I2C buses and institute
The processor for stating mobile terminal is connected, wherein the switch controller is used to receive the instruction of the processor and referred to according to this
Order exports high/low level voltage and gives corresponding switch mosfet circuit;
Wherein, the mobile terminal also includes:
First generation unit, for generating a background according to present position of the N number of fluorescent tube in the touch-screen to simulate
Lamp display interface;
Second generation unit, for the game operation and control interface to be merged to generate a background light with the background light display interface
Control interface;Wherein described second generation unit includes an integrated unit, for by it is described game operation and control interface in the trip
Move to the background light display interface play control area;
Switch-dividing setting unit, for setting N number of switch-dividing in the background light control interface, wherein N is more than or equal to 1 just
Integer, N number of switch-dividing are separately positioned on the side in region residing for the icon of N number of fluorescent tube;
Display unit, for showing the background light control circle when the touch-screen enters the game operation and control interface
Face;
First receiving unit, for receiving user in the pressing operation performed by the background light control interface;
Whether the first judging unit, the position for judging pressing are in any one switch of N number of switch-dividing;
First recognition unit, for identifying the fluorescent tube corresponding to the switch-dividing being pressed;
First instruction sending unit, the control instruction of the fluorescent tube is closed for being sent to the switch controller;
Wherein, the control instruction sent according to first instruction sending unit is also produced high levle electricity by the switch controller
Pressure and input to on the switch mosfet circuit corresponding to the fluorescent tube;The switch mosfet circuit will be used to control the fluorescent tube
Close.
Preferably, the mobile terminal also includes:
Second judging unit, whether the fluorescent tube corresponding to the switch-dividing being pressed for judgement is opening;Second refers to
Transmitting element is made, the control instruction of the fluorescent tube is opened for being sent to the switch controller;
Wherein, the switch controller also produces the control instruction further sent according to second instruction sending unit low
Level voltage and input to on the switch mosfet circuit corresponding to the fluorescent tube;The switch mosfet circuit is further used for
The fluorescent tube is controlled to open.
Preferably, the mobile terminal also includes:
Laterally switch setting unit, for also setting up M laterally switch in the background light control interface, wherein, each laterally
Switch corresponds to a horizontally-arranged fluorescent tube respectively, described M laterally switch be separately positioned on icon most left or most of every horizontally-arranged fluorescent tube
Right 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, longitudinally in each
Switch corresponds to the fluorescent tube of a tandem respectively, and the L longitudinal switch is separately positioned on the most upper of the icon of every tandem fluorescent tube or most
Downside, L are the positive integer more than or equal to 1 and less than N;
3rd judging unit, the position for judging pressing whether be in described M laterally switch or L longitudinal switch it is any
On one switch;
Second recognition unit, the horizontally-arranged fluorescent tube or tandem lamp corresponding to transverse direction switch or longitudinal switch being pressed for identification
Pipe;
3rd instruction sending unit, the control that the horizontally-arranged fluorescent tube or tandem fluorescent tube are closed for being sent to the switch controller refer to
Order;
Wherein, the switch controller also produces the control instruction further sent according to the 3rd instruction sending unit high
The switch mosfet of level voltage and input extremely corresponding to the horizontally-arranged fluorescent tube or tandem fluorescent tube;The switch mosfet circuit enters
One step is used to control the horizontally-arranged fluorescent tube or tandem fluorescent tube to close.
Preferably, the mobile terminal also includes:
Master switch setting unit, for setting a master switch 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, the control instruction of N number of fluorescent tube is closed for being sent to the switch controller;
Wherein, the switch controller also produces the control instruction further sent according to the 4th instruction sending unit high
The switch mosfet of level voltage and input extremely corresponding to N number of fluorescent tube;The switch mosfet circuit is further used for
N number of fluorescent tube is controlled to close.
Preferably, the mobile terminal also includes:
Second receiving unit, the END instruction inputted for receiving user in the background light control interface;
5th instruction sending unit, for according to the END instruction that second receiving unit receives to the switch controller
Send the control instruction for opening N number of fluorescent tube;
Wherein, the switch controller also produces the control instruction further sent according to the 5th instruction sending unit low
Level voltage and input to on the switch mosfet circuit corresponding to N number of fluorescent tube;The switch mosfet circuit is further used
Opened in controlling N number of fluorescent tube;
The mobile terminal also exits unit including an interface, for exiting the background light control when N number of fluorescent tube is opened
Interface processed.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:Using technical scheme, will carry on the back
Scape lamp is arranged to be made up of N number of fluorescent tube, and can as described in user's control N number of fluorescent tube open/close states, specifically, the background
It is provided with N number of switch-dividing in lamp control interface, user can be closed by pressing any one point 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 send closing to the switch controller
The control instruction of the fluorescent tube, the switch controller produces high levle voltage and input is extremely opened with the MOSFET corresponding to the fluorescent tube
On powered-down road, the switch mosfet circuit controls the fluorescent tube to close;When the touch-screen is in the background light control interface
When, user can be not covered with the switch-dividing corresponding to the fluorescent tube of the game control area to control the fluorescent tube to close by pressing
Close, in this way, then when the touch-screen is on game operation and control interface, it is possible to which only control covers the game control area
Fluorescent tube is opened, i.e., 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, facilitates user to switch the open/close states of background light, and user can quickly use other work(of mobile terminal
Energy, improve the use degree of user.
Brief description of the drawings
Address other purposes, feature, advantage in order to allow on the present invention and can become apparent, embodiment will hereafter be described
In the required accompanying drawing that uses make one and simply introduce, it should be apparent that, drawings in the following description are only the one of the present invention
A little embodiments, for those of ordinary skill in the art, do not pay create it is laborious on the premise of, can also be according to these
Accompanying drawing obtains other accompanying 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 the scattered method flow schematic diagram opened and closed of a kind of control touch-screen background lamp that the embodiment of the present invention one provides;
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 the method flow schematic diagram that the horizontally-arranged fluorescent tube of a kind of control that the embodiment of the present invention two provides or tandem fluorescent tube are closed;
Fig. 8 is the method flow schematic diagram that the N number of fluorescent tube of a kind of control that the embodiment of the present invention three provides is closed;
Fig. 9 is the method flow schematic diagram that the N number of fluorescent tube of a kind of control that the embodiment of the present invention three provides is opened;
Figure 10 is a kind of mobile terminal block schematic diagram that the embodiment of the present invention four provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only the part of the embodiment of the present invention, rather than whole embodiments.Base
Embodiment in the present invention, those of ordinary skill in the art obtained under the premise of creative work is not made it is all its
His embodiment, belongs to protection scope of the present invention.
In following examples of the present invention, the mobile terminal include, but are not limited to have the smart mobile phone of touch-screen,
Tablet personal computer, net book, PDA (Portable Digital Assistant), intelligent wearable equipment etc..
Embodiment one
Fig. 1 to Fig. 5 is refer to, Fig. 1 is a kind of background circuit for lamp connection signal for mobile terminal that the embodiment of the present invention one provides
Figure;Fig. 2 is a kind of background light display interface schematic diagram that the embodiment of the present invention one provides;Fig. 3 is that the embodiment of the present invention one provides
A kind of game operation and control interface schematic diagram;Fig. 4 is a kind of background light control interface schematic diagram that the embodiment of the present invention one provides;Figure
5 be the scattered method flow schematic diagram opened and closed of a kind of control touch-screen background lamp that the embodiment of the present invention one provides.
Specifically, a kind of method for controlling the scattered keying of touch-screen background lamp is present embodiments provided, applies and is serving as trip
On mobile terminal during play handle, the touch-screen is embedded with background light, and opening for game paddle is received in the mobile terminal
The touch-screen will be controlled to enter game operation and control interface during dynamic order, game control zone is shown on the game operation and control interface
Domain, the game control area are made up of a plurality of virtual operational and controlled key buttons, and the background light is made up of N number of fluorescent tube, the N
The connection corresponding with N number of switch mosfet circuit respectively of individual fluorescent tube, wherein N are positive integer more than or equal to 1, each switch mosfet
The voltage swing that circuit is exported will determine the keying of connected fluorescent tube;N number of switch mosfet circuit is respectively with one
Switch controller connects, and the switch controller is via I2C buses are connected with the processor of the mobile terminal, wherein described
Switch controller is used for the instruction for receiving the processor and gives corresponding MOSFET according to the high/low level voltage of instruction output
On-off circuit, and the model TCA6424A of the switch controller.
The scattered keying of the background light specifically will be by a background light control interface come operational control:The background light control
Interface processed be according to a background light display interface with it is described game merging for operation and control interface and generate, the background light display 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
Game operation and control interface amalgamation mode be:The game control area in the game operation and control interface is moved 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
Individual switch-dividing is separately positioned on the side in region residing for the icon of N number of fluorescent tube.
In the present embodiment, N=12 is set, i.e., described background light is made up 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 of simulation generation then equally shows 3 horizontally-arranged 4
Row is 12 fluorescent tubes.Show specifically, the game control area in the game operation and control interface is moved to the background light
Show in interface to implement in the following manner:It is each in the game operation and control interface and the background light display interface respectively first
Reference axis is established, then the coordinate position residing in the game operation and control interface by the game control area is obtained, i.e., every
Coordinate position residing for individual virtual key, after acquisition, then boundary is shown 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 each 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), then the area corresponding with coordinate position (c, a) (c, b) (d, b) (d, a) will be found out on the background light display interface
Domain, finally the virtual key is moved to the region on the background light display interface.
The scattered process opened and closed of the background light is wherein controlled to comprise the following steps:
Step 101, the touch-screen enter it is described game operation and control interface when, the touch-screen will be controlled automatically into described
Background light control interface;
Step 102, receive user in the pressing operation performed by the background light control interface, and judge pressing position whether
It is on any one switch of N number of switch-dividing;
If so, the fluorescent tube corresponding to the switch-dividing that then execution step 103, identification are pressed, and sent out to the switch controller
Go out to close the control instruction of the fluorescent tube;
Step 104, the switch controller produce high levle voltage and input is extremely electric with the switch mosfet corresponding to the fluorescent tube
Lu Shang;
Step 105, the switch mosfet circuit control the fluorescent tube to close.
In a step 101, whether touch-screen described in detecting real-time is entered the game operation and control interface by terminal system, when
Detect the touch-screen enter it is described game operation and control interface when, the touch-screen will be controlled automatically into the background light control
Interface processed.
In a step 102, judging whether the position of pressing is on any one switch of N number of switch-dividing can specifically lead to
Cross in the following manner implementation:Reference axis is established in the background light control interface first, will then detect N number of switch-dividing respectively
In the background light control interface residing coordinate position, user is being received in being performed in the background light control interface
The coordinate of pressing position is recorded during pressing operation, whether the coordinate for comparing the pressing position is in N number of switch-dividing arbitrarily
On coordinate position residing for one switch-dividing, if performing step 103.
In step 103, specifically, need to identify which the fluorescent tube corresponding to the switch-dividing being pressed is, before this,
Need first to identify which the switch-dividing being pressed is, during 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
, it is necessary to which specifically which switch-dividing identified when on a position switch-dividing within which for pressing;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
It is the first fluorescent tube a not go out the fluorescent tube corresponding to the first switch-dividing I.Then at step 104, the switch controller will
Produce high levle voltage and input is to that on the switch mosfet circuit corresponding to the first fluorescent tube a, such as can input+5V
Voltage to on the 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 the switch mosfet circuit corresponding to the first fluorescent tube a and institute
The first fluorescent tube a is stated to be connected, therefore the voltage for passing through the first fluorescent tube a is 0V, the first fluorescent tube a will be opened by the MOSFET
Powered-down road control is closed.
Therefore, in actual mechanical 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 to control the fluorescent tube to close by pressing, in this way, then
When the touch-screen is on the game operation and control interface, it is possible to which only the fluorescent tube of the control covering game control area is opened
Open, i.e., 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 flow.
Fig. 6 is refer to, 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 actual applications, if user also not in performed in the background light control interface press any one switch-dividing operation it
Before, the fluorescent tube corresponding to the switch-dividing is at closed mode, then the result finally implemented according to above-mentioned steps is still control
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 send close the fluorescent tube control instruction it
Before, methods described is further comprising the steps of:
Whether fluorescent tube corresponding to the switch-dividing that step 201, judgement are pressed is opening;
If it is not, then perform step 202, the control instruction of the unlatching fluorescent tube will be sent to the switch controller;
Step 203, the switch controller produce low level voltage and input is extremely electric with the switch mosfet corresponding to the fluorescent tube
Lu Shang;
Step 204, the switch mosfet circuit control the fluorescent tube to open.
In step 201, it is assumed that user's pressing for the first switch-dividing I, then terminal system will determine that described first point is opened
Whether the first fluorescent tube a closed corresponding to I is opening, if not then execution step 202.
In this way, then in step 203, the switch controller will produce low level voltage and input to first lamp
On switch mosfet circuit corresponding to pipe a, for example, can input 0V voltage to the first fluorescent tube a corresponding to
On switch mosfet circuit, in this way, the switch mosfet circuit corresponding to the first fluorescent tube a will have a voltage output, such as+
5V, and because the switch mosfet circuit corresponding to the first fluorescent tube a is connected with the first fluorescent tube a, therefore pass through institute
The voltage for stating the first fluorescent tube a is+5V, and the first fluorescent tube a will be controlled by the switch mosfet circuit and opened.
Further, in step 201, if it is judged that the fluorescent tube corresponding to the switch-dividing being pressed is opening state
State, then the fluorescent tube corresponding to the switch-dividing that execution step 103, identification are pressed, and send closing to the switch controller
The control instruction of the fluorescent tube.
Embodiment two
The present embodiment is substantially the same with embodiment one, and difference is, the N is more quickly controlled in order to facilitate user
Individual fluorescent tube is turned on and off, such as can reach the effect for disposably controlling the fluorescent tube of a certain row to be turned on and off, in this implementation
In example, the background light control interface is additionally provided with M laterally switch and L longitudinal switch, and each laterally switch is right respectively
A horizontally-arranged fluorescent tube is answered, switchs the fluorescent tube for corresponding to a tandem respectively longitudinally in each, described M horizontal switch is separately positioned on every horizontal stroke
The most left or rightmost side of the icon of bank light pipe, the L longitudinal switch be separately positioned on the most upper of the icon of every tandem fluorescent tube or
Lower side, M and L are respectively the positive integer more than or equal to 1 and less than N.
Fig. 7 is refer to, Fig. 7 is the side that the horizontally-arranged fluorescent tube of a kind of control that the embodiment of the present invention two provides or tandem fluorescent tube are closed
Method schematic flow sheet.Specifically, user is being received after the pressing operation performed by the background light control interface, the side
Method is further comprising the steps of:
Step 301, judge whether the position of pressing is on any one switch of described M horizontal switch or L longitudinal switch;
If so, horizontally-arranged fluorescent tube or tandem corresponding to transverse direction switch or longitudinal switch that then execution step 302, identification are pressed
Fluorescent tube, and the control instruction for closing the horizontally-arranged fluorescent tube or tandem fluorescent tube is sent to the switch controller;
Step 303, the switch controller produce high levle voltage and input to the horizontally-arranged fluorescent tube or tandem fluorescent tube corresponding to
Switch mosfet;
Step 304, the switch mosfet circuit control the horizontally-arranged fluorescent tube or tandem fluorescent tube to close.
Specifically, in the present embodiment, set M=4, L=3.The horizontal switch or vertical being pressed firstly the need of first identification
To switch which is specifically, during implementation, can by 3 laterally switch be respectively set as first, second and third laterally switch XIII,
XIV, XV, 3 horizontally-arranged fluorescent tubes are respectively set as first, second and third horizontally-arranged fluorescent tube m, n, o;4 longitudinal switches are respectively set as
First, second, third and fourth longitudinal switch XVI, XVI, XVIII, XIX, 4 tandem fluorescent tubes are respectively set as first, second, third and fourth and indulged
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
, it is necessary to identify specifically which transverse direction switch or longitudinal switch when on switch;For example, it is assumed that the position of user's pressing is in institute
First is stated laterally on switch XIII, then that terminal system will identify that user's pressing is the described first laterally switch XIII, and knowing
It is the described first horizontally-arranged fluorescent tube m not go out the described first fluorescent tube laterally corresponding to switch XIII.Then the switch controller will produce
Raw high levle voltage and input to on the switch mosfet circuit corresponding to the described first horizontally-arranged fluorescent tube m, i.e., described first,
2nd, three, four fluorescent tube a, b, c, d distinguish corresponding on switch mosfet circuit, such as can input+5V voltage 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 due to 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,
3rd, four fluorescent tube a, b, c, d voltage 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., described first horizontally-arranged fluorescent tube m is controlled by the switch mosfet circuit and closed.
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 flow.
Embodiment three
Fig. 8 is refer to, Fig. 8 is the method flow schematic diagram that the N number of fluorescent tube of a kind of control that the embodiment of the present invention three provides is closed.This
Embodiment is substantially the same with embodiment one, and difference is, the keying of N number of fluorescent tube is switched fast in order to facilitate user
State, in the present embodiment, the background light control interface are additionally provided with a master switch XX, are receiving user in the background light
After pressing operation performed by control interface, methods described is further comprising the steps of:
Step 401, judge whether the position of pressing is on the master switch XX;
If so, then perform step 402, the control instruction for closing N number of fluorescent tube is sent to the switch controller;
Step 403, the switch controller produce high levle voltage and input is extremely opened with the MOSFET corresponding to N number of fluorescent tube
Close;
Step 404, switch mosfet circuit control N number of fluorescent tube are 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
Residing coordinate position on interface, when receiving user in the pressing operation performed in the background light control interface record by
The coordinate of position is pressed, judges whether the coordinate of the pressing position is on the coordinate position residing for the master switch XX.
In step 404, the switch controller will produce high levle voltage and input to N number of fluorescent tube corresponding to
Switch mosfet circuit on, such as+5V voltage can be inputted to the switch mosfet circuit corresponding to N number of fluorescent tube
On, in this way, the 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 the voltage for passing through N number of fluorescent tube is 0V,
N number of fluorescent tube will be controlled by the switch mosfet circuit and closed.
In step 401, if it is determined that the position of pressing is not located on the master switch XX, then flow is directly terminated.
Fig. 9 is refer to, Fig. 9 is the method flow signal that the N number of fluorescent tube of a kind of control that the embodiment of the present invention three provides is opened
Figure.In the present embodiment, methods described also includes:
Step 501, receive the END instruction that user is inputted in the background light control interface;
Step 502, the control instruction for opening N number of fluorescent tube is sent to the switch controller according to the instruction;
Step 503, the switch controller produce low level voltage and input is extremely electric with the switch mosfet corresponding to N number of fluorescent tube
Lu Shang;
Step 504, the switch mosfet circuit control N number of fluorescent tube to open, while exit the background light control interface.
In step 501, user makes in background light control interface end of input instruction, can be in a default region
Interior input, or can also 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 sent according to the instruction to the switch controller
The control instruction of N number of fluorescent tube is opened, the switch controller will produce low level voltage and input after receiving the instruction
To with the switch mosfet circuit corresponding to N number of fluorescent tube, such as can input 0V voltage to N number of fluorescent tube institute
On corresponding switch mosfet circuit, in this way, the switch mosfet circuit corresponding to N number of fluorescent tube will have voltage output, example
Such as+5V, and because the switch mosfet circuit corresponding to N number of fluorescent tube is connected with N number of fluorescent tube respectively, therefore pass through
The voltage of N number of fluorescent tube is+5V, and N number of fluorescent tube will be controlled by the switch mosfet circuit and opened.
While opening, terminal system will control the touch-screen to 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 the function described in the present embodiment method is realized in the form of SFU software functional unit and is used as independent product pin
Sell or in use, can be stored in a computing device read/write memory medium.Based on such understanding, the embodiment of the present invention
The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, and this is soft
Part product is stored in a storage medium, including some instructions to cause a computing device (can be personal computer,
Server, mobile computing device or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention
Suddenly.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), deposit at random
Access to memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
Example IV
It refer to a kind of mobile terminal block schematic diagram that Fig. 1 to Fig. 4 and Figure 10, Figure 10 provide for the embodiment of the present invention four.
Specifically, the present embodiment provides a kind of mobile terminal, including:One touch-screen 1, the touch-screen 1 are embedded with background light 2;Game
Operation and control interface start unit 3, for the touch will to be controlled when the startup order of game paddle is received in the mobile terminal
Screen 1 enters game operation and control interface, wherein, show game control area, the game control zone on the game operation and control interface
Domain is made up of a plurality of virtual operational and controlled key buttons;The background light 2 is made up of N number of fluorescent tube, N number of fluorescent tube respectively with it is N number of
Switch mosfet circuit 4 is corresponding to be connected, wherein, N is the positive integer more than or equal to 1, what each switch mosfet circuit 4 was exported
Voltage swing will determine the keying of connected fluorescent tube;
N number of switch mosfet circuit 4 is connected with a switch controller 5 respectively, and the switch controller 5 is via I2C buses
It is connected with the processor 5.0 of the mobile terminal, wherein the switch controller 5 is used for the finger for receiving the processor 5.0
Order and the switch mosfet circuit 4 according to corresponding to giving the high/low level voltage of instruction output;
Wherein, the mobile terminal also includes:
First generation unit 6, for being carried on the back according to present position of the N number of fluorescent tube in the touch-screen 1 with simulating generation one
The display interface of scape lamp 2;
Second generation unit 7, for the game operation and control interface to be merged to generate a background with the display interface of background light 2
Lamp control interface;Wherein described second generation unit 7 includes an integrated unit 8, for by it is described game operation and control interface in institute
Game control area is stated to move to the display interface of background light 2;
Switch-dividing setting unit 9, for setting N number of switch-dividing in the background light control interface, wherein N is more than or equal to 1
Positive integer, N number of switch-dividing are separately positioned on the side in region residing for the icon of N number of fluorescent tube;
Display unit 10, for showing the background light control when the touch-screen 1 enters the game operation and control interface
Interface;
First receiving unit 11, for receiving user in the pressing operation performed by the background light control interface;
Whether the first judging unit 12, the position for judging pressing are in any one switch of N number of switch-dividing;
First recognition unit 13, for identifying the fluorescent tube corresponding to the switch-dividing being pressed;
First instruction sending unit 14, the control instruction of the fluorescent tube is closed for being sent to the switch controller 5;Wherein, institute
State switch controller 5 and the control instruction sent according to first instruction sending unit 14 is also produced into high levle voltage and input
To with the switch mosfet circuit 4 corresponding to the fluorescent tube;The switch mosfet circuit 4 will be used to control the fluorescent tube to close.
As a kind of enforceable mode, in the present embodiment, the mobile terminal also includes:
Second judging unit 15, whether the fluorescent tube corresponding to the switch-dividing being pressed for judgement is opening;
Second instruction sending unit 16, the control instruction of the fluorescent tube is opened for being sent to the switch controller 5;Wherein, institute
State switch controller 5 and the control instruction further sent according to second instruction sending unit 16 is also produced into low level voltage
And input to on the switch mosfet circuit 4 corresponding to the fluorescent tube;The switch mosfet circuit 4 is further used for control should
Fluorescent tube is opened.
As a kind of enforceable mode, in the present embodiment, the mobile terminal also includes:
Laterally switch setting unit 17, for also setting up M laterally switch in the background light control interface, wherein, it is each horizontal
Correspond to a horizontally-arranged fluorescent tube respectively to switch, described M laterally switch be separately positioned on every horizontally-arranged fluorescent tube icon most left or
The 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, it is each vertical
To switch respectively correspond to a tandem fluorescent tube, the L longitudinal switch be 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;
Whether the 3rd judging unit 19, the position for judging pressing are in described M laterally times of switch or L longitudinal switch
On the switch of meaning one;
Second recognition unit 20, the horizontally-arranged fluorescent tube or tandem corresponding to transverse direction switch or longitudinal switch being pressed for identification
Fluorescent tube;
3rd instruction sending unit 21, the control of the horizontally-arranged fluorescent tube or tandem fluorescent tube is closed for being sent to the switch controller 5
System instruction;
Wherein, the switch controller 5 also produces the control instruction further sent according to the 3rd instruction sending unit 21
The switch mosfet of raw high levle voltage and input extremely corresponding to the horizontally-arranged fluorescent tube or tandem fluorescent tube;The switch mosfet electricity
Road 4 is further used for controlling the horizontally-arranged fluorescent tube or tandem fluorescent tube to close.
As a kind of enforceable mode, in the present embodiment, the mobile terminal also includes:
Master switch setting unit 22, for setting a master switch 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 instruction of N number of fluorescent tube is closed for being sent to the switch controller 5;
Wherein, the switch controller 5 also produces the control instruction further sent according to the 4th instruction sending unit 24
The switch mosfet of raw high levle voltage and input extremely corresponding to N number of fluorescent tube;The switch mosfet circuit 4 is further
For controlling N number of fluorescent tube to close.
As a kind of enforceable mode, in the present embodiment, the mobile terminal also includes:
Second receiving unit 25, the END instruction inputted for receiving user in the background light control interface;
5th instruction sending unit 26, for being controlled according to the END instruction that second receiving unit 25 receives to the switch
Device 5 processed sends the control instruction for opening N number of fluorescent tube;
Wherein, the switch controller 5 also produces the control instruction further sent according to the 5th instruction sending unit 26
Raw low level voltage and input to on the switch mosfet circuit 4 corresponding to N number of fluorescent tube;The switch mosfet circuit 4 enters
One step is used to control N number of fluorescent tube to open;
The mobile terminal also exits unit 27 including an interface, for exiting the background light when N number of fluorescent tube is opened
Control interface.
It should be understood that in example IV, the specific implementation process of above-mentioned unit (can be implemented with above method embodiment
Example one to three) description it is corresponding, be not described in detail herein.
The mobile terminal that above-described embodiment four is provided, only carried out with the division of above-mentioned each functional unit for example, real
In the application of border, function distribution can will be appealed by different functional unit completions as needed, will the mobile terminal
Internal structure is divided into different functional units, to complete all or part of function described above.In addition, above-described embodiment
The mobile terminal of offer belongs to same design with embodiment of the method, and its specific implementation process refers to embodiment of the method, herein will not
Repeated.The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
The achievable advantages below of the present invention:
By the present invention, background light is arranged to be made up of N number of fluorescent tube, and can as described in user's control N number of fluorescent tube keying
State, specifically, be provided with N number of switch-dividing in the background light control interface, user can be closed by pressing any one point so that
After its corresponding fluorescent tube is closed, such as user presses a switch-dividing, system will identify fluorescent tube corresponding to the switch-dividing, and to institute
State switch controller and send the control instruction for closing the fluorescent tube, the switch controller produce high levle voltage and input to this
On switch mosfet circuit corresponding to fluorescent tube, the switch mosfet circuit controls the fluorescent tube to close;When the touch-screen is in
When in the background light control interface, user can be not covered with point corresponding to the fluorescent tube of the game control area by pressing
Switch is to control the fluorescent tube to close, in this way, then when the touch-screen is on game operation and control interface, it is possible to only control covering
The fluorescent tube of the game control area is opened, i.e., described game control area is bright screen state, and other regions are black state, can
To be effectively saved screen power consumption;In addition, being additionally provided with master switch in the background light control interface, user can pass through pressing
The master switch facilitates user to switch the open/close states of background light, user can quickly make to control N number of fluorescent tube all light or complete dark
With other functions of mobile terminal, the use degree of user is improved.
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
Lid is within the scope of the present invention.Therefore, protection scope of the present invention should be defined by the protection domain of the requirement.