خرید بک لینک

Vote count: 0

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?

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 26 خرداد 1395 ساعت: 2:55

صفحه بندی