I think what happens if you have a normally closed to ground switch relying on the pullup resistor it will not work because the LED is pulling the pin down more than the internal 20k pulls it up.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16