Thanks for the speedy response. My button is actually on D4, I even tried other pins but it just wont work. My goal was to have two buttons to determine the direction of the stepper motor in that button A is to trigger clockwise rotation and button B to reverse the direction at the end of travel. But am completely stuck as I cant make even one button work.
My dilemma is, both h-bridges are pulsed simultaneously which i believe will make both of them fire at the same moment. This will then drive both inputs of the l298 module hence energizing both coils of the stepper motor at the same time making it unable to move in either direction. Is my analysis correct or am totally missing something. I don’t have much experience with stepper motors and i am a newbie to XOD, so the learning curve is somewhat steep at the moment.