What I’m trying to do is get my mBot to move forward while, at the same time, blinking red/blue every 0.5 seconds interchangably. Also, while it blinks, I must have it also do stuff like move right/left and use the line follower for detecting a black surface. Any help?
How to do multitasking?
Andreas
#2
a) Learn to use the search function please
b) are you in the same class? See the answer here
RLR_ENL
#3
If you are using Arduino iDA you can follow this guide: https://learn.adafruit.com/multi-tasking-the-arduino-part-1/using-millis-for-timing.