LEDs, with their long life and low power consumption, have increasingly been used to replace conventional fluorescent and incandescent lamps in the lighting fixture market. High efficiency and precision are achieved through the use of a current detector circuit that minimizes loss. The control circuitry, switching elements, transformers, and constant-current circuits required for switching are incorporated into a single module, making it possible to configure power supply circuits with just a few external components.