Macros to clone M42 and M43 used in Marlin

Basic Information:

Printer Model: CTC A13, Ender 3 clone
MCU / Printerboard: SKR2
klippy.log

Hi, I’m a beginner with Klipper.

Xmas is coming and I might have some time to start with it on a HW base.

Two TMC2209 are not running anymore under Marlin.

When I switch the drivers on my SKR2, they look ok. So, I guess I killed somehow some IOs of my SKR2.

Marlin has M42 Set Pin State | Marlin Firmware and M43 Debug Pins | Marlin Firmware, which are pretty good to debug things.

Does anybody knows how to realize those commands with macros and using then the command line to toggle some pins on my SKR2.

Thanks in advance.

Kind regards, hcet14