Nema 17 clockwise counterclockwise end-stop

Hello, thank for your answer and okay for English!

End-stops are toggle switches. The nema 17 is controlled by A4988 driver
(like on 3D printers).