Endstops (probably a silly question)

I killed my board and now have a new one, but I cannot get the endstop switches to work.
Or rather, I can, but only by wiring them up the other way.
The board has 3 pins for each: +5V, Ground and signal. They work if I connect them between signal and ground, but don’t from +5V to ground, no matter what I’ve tried setting in the printer.cfg
That said, I have not found the clear instructions, so it is quite likely that I haven’t set the right thing there…

Board is a MKS SGEN-L

The endstops typically work between the signal pin and GND.
+5V is only for e.g. the small endstop PCBs where you need the VCC to drive a small LED (or similar applications that might need VCC)

Ah, OK. Thanks for the prompt reply.
I had presumed that it was on a GPIO pin, and they can usually be set to be pulled either high or low to switch, and I thought that would just be a setting in the config which would be easier than re-writing the plugs.

Done now. :slight_smile: