issue #1 switching led registry together with led port to avoid led lighting up when using pwm