Avoiding current spikes with LEDs