LED control when using different power source