Motor.spinFor time without blocking program

using spinFor time without blocking didn’t really make much sense, the logic of a spinFor when blocking would be (in pseudo code)

motor.spin( fwd );
wait for some requested time
motor.stop();
return

so a non blocking form of that which skips the wait is really just

motor.spin( fwd );

you can create another task (or thread, same thing) to run that logic if you need it to be happening at the same time as other commands in the program.

2 Likes