I have a function that start when I press a button. It tus a stepper motor 2 steps every 360ms:
setWatch(function () {
setInterval(motorStep(2),360)
}, BTN1, {
repeat : true,
edge : "rising"
});
How do I make it stop after it's been run 100 times (200 steps in total) so it doesn't run forever like now?
