Main Project: Delivery Route
7. Instruct Your Robot: Read the Address
To know where to deliver a card, the courier must first read its address. Complete the read_delivery_address function in the Interactive Control Code cell so that the robot performs the following actions when you place a color-marked card under the color sensor and click on the Read Address button:
- read the address from the color-marked card
- store this color in a variable that will be accessible to your Main Code cell code
- light up the courier’s eyes in this color as a form of visual feedback