KS4031(4032) folder/Makecode
Tutorial/Makecode Code/Project
15:Servo.hex
Or you could edit code step by step in the editing area.
(1)Click“Variables”; motor“Make a Variable name”create a variable named
“angle”; set the value to 0: ; and then put it into
“on start” ;
(2)Click“Loops”to find and drag to“forever”
and change the number to“180”; click“MecanumRobot”to find and
drag and put variable “ angle ” into
; put