Line follower and RGB leds


#1

Hi, i need help with my code. The mbot has to start and follow the line when i press A on my remote, while it’s running it’s suppose to show green lights. When mbot comes to the end of the line he is suppose to blink red lights. Red lights are suppose to blink 1 sec appart and blinking has to last in time of the mbot ride. So if ride was 12s, red blinking should be 12s and stop. With this code, everything works excpet red blinking goes on forever and never stops. Thanks!code


#2

Can you post a screen shot of your code?