Sample code for Mbot 2 color sensor on a line


#1

Hi! can someone guide me on how to create a color sensor code, basically when a robot detects red, it goes forward and so on. I would also like if the robot detects the red color, it would display the color red. A sample would really help me!

Thank you!


#2

@solacee Does this help you?
https://support.makeblock.com/hc/en-us/articles/24279693845527-Quad-RGB-Sensor


#3

Sorry for the late reply,

Thank you! This really helped me.


#4

Awesome! :smiley: