Physical X-endstop for toolchanger

Basic Information:

Printer Model: Voron 2.4
MCU / Printerboard: BTT Manta M8P v1.1
Host / SBC: BTT CB1

Describe your issue:

I started upgrading my Voron with a toolchanger. I want to use physical enstop for x, not sensorless. I have the x-endstop microswitch on the shuttle and for now I can only use it with T0 (or whatever tool toolboard i assign the pin to, manualy). Is there a way, each time when a tool is set active, the x-endstop pin to be changed to that specific tool toolboard pin? I dont have the knowledge to mess with coding, so im asking for help.

Hi @printicus ,

Please attach your klippy.log as requested to your next post.

OK. In .zip format, to big for just .log

klippy.zip (1.6 MB)

Thank you for uploading the log. It looks like you’re using a toolchanger plugin. I would ask on its respective Github, since this is a modified Klipper.

Thank You. I installed the toolchanger plugin from here:

but since then the owner did some changes and i dont know how it will work. I have made a fork on my github that is the version I use. Can be found here:

It does not have all the particular settings for my printer.

I see that what I need is, maybe, not possible, difficult or not sparking interest…
Maybe there is annother way? I tryed this:

[duplicate_pin_override]
pins: x-endstop

[board_pins x-endstop]
mcu: nhk0, nhk1, nhk2
aliases: x-endstop=gpio13

[stepper_x]
endstop_pin: x-endstop

and I get “x-endstop is not a valid pin on MCU”, mcu being my MantaM8P