1. A dimming controller for dimming a light-emitting device, comprising:an input node for receiving a dimming signal;
a type identifier connected to the input node, for identifying whether the dimming signal is of a first type or a second type;
a signal converter connected to the input node, for generating a first signal in response to the dimming signal, wherein the first signal is of the first type; and
a multiplexer controlled by the type identifier, having two inputs receiving the first signal and the dimming signal respectively, wherein the type identifier makes the multiplexer forward the first signal to a driver driving the light-emitting device if the dimming signal is identified as the second type, and the dimming signal to the drive if the dimming signal is identified as the first type.