Abstract: The present invention is directed to method, system and computer-readable media for controlling lighting devices. In some embodiments, a method for controlling pulse width modulated lighting devices within a lighting apparatus comprising a plurality of sets of lighting devices is disclosed. The method includes setting a counter for a first set of the plurality of sets of lighting devices using a master counter and an activation duration for one or more other sets of the plurality of sets of lighting devices. The method further includes determining an activation time period within a duty cycle for the first set of lighting devices using the counter for the first set of lighting devices and an activation duration for the first set of lighting devices. In some embodiments of the present invention, the lighting devices are light emitting diodes grouped into sets (or banks) and controlled to limit the magnitude and/or quantity of instantaneous current fluctuations in a power supply within the lighting apparatus.