Let's code the robot to dispense candies based on different colors of LEGO brick detected
Rotations of port C = ________
Write a program to dispense one piece of candy when the color sensor senses a yellow brick. Display Yellow Brick Detected before dispensing. Once the candy is dispensed, display One Candy Dispensed, as illustrated in the following screenshot:
Let's move on to the next activity, to add different dispensing actions to the robot for different colors detected.