Learning Math and CS with Robotics
Sign In

CSP Unit 3 Lesson 9.4

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

A definition for a drawSquare function has been provided. (It draws a square of side length 8.) Add a repeat loop (from the Loops tab) to the pre-placed code and insert a call to the drawSquare function inside it. After the call to drawSquare, also insert a turnLeft command for a turn of 10 degrees. After you get it running, experiment with different values for the number of iterations, the speed, the distance, and the angle. Try to create a diagram of repeating squares that goes 360 degrees around.

Load Blocks
Hardware
LArduino
Workspace Save File Show Ch Edit Ch Console

		
Rubbish bin
Time