Patent ID: 8358274

Claim:
A control method for generating varying colored lights in a keyboard, which includes a plurality of keys pressed by a user to generate different keying signals, a circuit board corresponding to the plurality of keys to output the keying signals to an information processing system, a microcontroller unit electrically connected to said circuit board to detect said keying signals, and a backlight unit having at least one light-emitting element group, comprising steps: a. establishing a driving signal table containing a plurality of backlight driving signals used to control brightness of light emitted by said at least one light-emitting element group; b. setting conditions for outputting said backlight driving signals respectively, wherein each said backlight driving signal is corresponding to at least one said keying signal, and wherein the microcontroller unit receiving said at least one keying signal from the circuit board is set to be a condition for outputting one said backlight driving signal; c. detecting said keying signals generated by pressing said keys, and sending said keying signals by the circuit board to the information processing system and the microcontroller unit simultaneously; and d. outputting one said backlight driving signal corresponding to said at least one keying signal by the microcontroller unit to drive said light-emitting element group; wherein one said keying signal is a key code generated by pressing one said key to contact a circuit board, and said key code corresponds to a character code in an information array.