A “light-emitting
diode (LED)” control device that provides a regulated current through an LED (110) from an unregulated
voltage source, wherein the LED control device comprises: a
power control device (120) configured to: Detecting an output current (124) at an output of the LED control device, and Detecting a firing angle of a
voltage waveform output by a
dimmer switch (112), wherein the
dimmer switch (112) is coupled to receive the unregulated
voltage source; wherein the current control device (120) is further configured to generate a
control signal to turn on or off a switch (128), wherein the switch (128) is turned on in response to the
control signal being in a first state, and the switch (128) is turned off in response to the
control signal being in a second state, wherein the switch (128) is configured to receive the control
signal and to regulate an amount of current to be supplied to the LED (110) during a
switching cycle, based on the control
signal, wherein for each
switching cycle: in response to the fact that the detected firing angle of the voltage waveform output by the
dimmer switch (112) is less than a first firing angle threshold (502), corresponding to a first
control mode (A), generating the control
signal in the second state when the detected output current (124) at the output of the LED control device meets a first output
current threshold; in response to the detected firing angle of the voltage waveform output by the dimmer switch (112) being greater than a second firing angle threshold (504), corresponding to a second
control mode (B), generating the control signal in the second state when the detected output current (124) at the output of the LED control device meets a second output
current threshold; and in response to the fact that the detected firing angle of the voltage waveform output by the dimmer switch (112) is greater than the first firing angle threshold (502) and less than the second firing angle threshold (504), according to a third
control mode (C), generating the control signal in the second state when the detected output current (124) at the output of the LED control device meets the first output
current threshold; wherein during the first control mode (A) the first output current threshold has a waveform that is proportional to the voltage waveform output by the dimmer switch (112).