A light-emitting device capable of being powered by an AC power supply or an unregulated DC power supply is disclosed. The light-emitting device, in an aspect, is coupled to a controller, a light-emitting diode ("LED") array, and a power supply, wherein the power supply can be an AC power source or an unregulated DC power source. While the power supply provides electrical power, the controller generates various LED control signals in response to power fluctuation of the electrical power. The LED array allows at least a portion of LEDs to be activated in accordance with the logic states of the LED control signals.