Hello!
I was recently trying to do the disk mover challenge for my class. I wanted the code so that if the down sensor picked up blue it stopped and turned on the electromagnet. However it does not work. The monitor senses that it is blue but does not do anything. Any help would be greatly appreciated! My code is attached below.
Your code as is won’t work. Try this:
The reason being, the if is executed once, very quickly at the start of the program but never again.
2 Likes
Or alternatively this:
1 Like
It works! Thanks so much.
1 Like