A device for driving light adjustments, comprising a light source driving circuit and further an MCU and a temporary power supplying circuit, wherein said temporary power supplying circuit is for supplying said MCU with electricity after said light source driving circuit stops supplying electricity;
- and said MCU comprises a current detecting module, an analyzing and processing module and a storage module, wherein said current detecting module is for obtaining a connecting signal or a disconnecting signal of said light source driving circuit and sending said obtained signal into said analyzing and processing module and said storage module is for storing a firmware program of gradually varying brightness of a light source and information about a constant brightness state of said light source;
- and said analyzing and processing module obtains said connecting signal or said disconnecting signal of said light source driving circuit and said firmware program of gradually varying said brightness of said light source or said information about said constant brightness state of said light source which is stored in said storage module for analyzing and processing, then generates a signal of adjusting said brightness of said light source and sends said signal into said light source driving circuit;
- and said light source driving circuit adjusts said brightness of said light source according to said signal, wherein
- after said light source driving circuit is connected for a first time, said analyzing and processing module generates a signal for controlling said light source driving circuit to drive said light source to gradually vary said brightness according to said predefined firmware program;
- when said light source is in a state of gradually vary said brightness and after said light source driving circuit is disconnected, said analyzing and processing module obtains said constant brightness state at an instant of disconnecting said light source driving circuit and temporarily stores said information about said constant brightness state in said storage module;
- when said light source driving circuit is disconnected while the light source is in said state of gradually varying said brightness and after said temporary power supplying circuit stops supplying said MCU with electricity, said temporarily stored information about said brightness state vanishes;
- before said information about said brightness state vanishes, said light source driving circuit is connected again after the first time and said analyzing and processing module generates said signal for controlling said light source driving circuit to drive said light source to work according to said information about said constant brightness state and stably stores said information about said constant brightness state in said storage module;
- after said information about said brightness state vanishes, said light source driving circuit is connected again after the first time and said analyzing and processing module generates said signal for controlling said light source driving circuit to drive said light source to gradually vary said brightness according to said predefined firmware program;
- said light source driving circuit is disconnected when said light source is working at said constant brightness state and then connected before said temporary power supplying circuit stops supplying said MCU with electricity, and said analyzing and processing module eliminates said stably stored information about said brightness state when said light source driving circuit is connected;
- said light source driving circuit is disconnected when said light source is working at said constant brightness state and then connected after said temporary power supplying circuit stops supplying said MCU with electricity, and said analyzing and processing module saves said stably stored information about said brightness state;
- said light source driving circuit is connected after said information about said brightness state is eliminated and said analyzing and processing module generates said signal for controlling said light source driving circuit to drive said light source to gradually vary said brightness according to said predefined firmware program;
- and
- said light source driving circuit is connected after said information about said brightness state is saved and said analyzing and processing module generates said signal for controlling said light source driving circuit to drive said light source to work according to said stably stored information about said brightness state.