Learning Math and CS with Robotics
Sign In

CSP Unit 3 Lesson 5.10c

Piano
Linkbot Image Mindstorm Image
Grid Size: S M L Simple View: MinView:
CSP Unit 3 Lesson 5.10c

Our final step is to define one single "drawDiamond" function and call it to have the robot trace out the diamond. The function definition should start with a traceOn command and finish with a traceOff command. In between it should call the drawSide function four times. Modify the pre-placed code to define the drawDiamond function and call it.

Load Blocks
Hardware
LArduino
Workspace Save Show C Edit C Ch Shell Console

		
Rubbish bin
Time