@HugoZM My guess is that you have mis-wired the endstop switch so that when it is triggered, it shorts out the 3.3V rail or the 5V rail. If that's the case then you will see the red 5V or green 3.3V LED go out when you trigger the endstop switch.