Stepper Motor while displaying scrolling text on OLED displa
Posted: Tue Aug 20, 2019 4:10 pm
Guys,
is it possible to move a stepper motor on ESP8266 whle displaying a scrolling text on an OLED display?
am trying to write a stepper motor non blocking code
I am able to turn on and off a led using the famous non blocking piece of code
but I'm not able to write a loop that moves the stepper motor without blocking the code
basically I need to do a loop, that loops 4000 times delaying 1 milliseconds on each loop
how can I do it?
how can I write this loop without blocking my display?
is it possible to move a stepper motor on ESP8266 whle displaying a scrolling text on an OLED display?
am trying to write a stepper motor non blocking code
I am able to turn on and off a led using the famous non blocking piece of code
but I'm not able to write a loop that moves the stepper motor without blocking the code
basically I need to do a loop, that loops 4000 times delaying 1 milliseconds on each loop
how can I do it?
Code: Select all
int stepLeft = 4500;
while (stepsLeft > 0) {
doSomething();
stepsLeft--;
delay(1);
}
how can I write this loop without blocking my display?