I am working on programming the IR remote, and I use delays all the time. For example, to make it go for half a second, I would do something like this:`
motor1.run(255);
motor2.run(255);
delay(500);`
But the delay() command uses 100% of the processor, so it is oblivious to IR commands during the time the delay is activated. If I did a command and then decided to cancel it, I could not do that because it is unresponsive. Is there any way I can make it wait without using the delay() command so it will still respond during the command?