luizcantoni / mudbus

Automatically exported from code.google.com/p/mudbus
16 stars 17 forks source link

Stepper Motor does not move with Mb.run () #8

Open LolloMazzy opened 5 years ago

LolloMazzy commented 5 years ago

Why my stepper motor doesn't move with the instruction Mb.run() every loop, instead with this delay it can?

void loop() { if ((millis() - updateMB) >= 50) { Mb.Run(); // funzione per update dati da/a ModBus updateMB = millis(); } stepper.setSpeed(vel); stepper.runSpeed(); }