Controling stepper motor with L298N and 2 limit switch

elpedro57:
I need help to integrate my 2 LS, the control button and the code that would be inserted.

Post the program that represents your best attempt and tell us in detail what it actually does and what you want it to do that is different. And please use the code button </> when posting code
codeButton.png

...R
Stepper Motor Basics
Simple Stepper Code