Code to Note
Don't be overwhelmed by everything this code has to offer! I know it looks rather menacing, but the truth is that
you've already done all of this code in previous experiments.
Having a hard time seeing the code? Open the MakeCode in a separate window to edit or click on the image for a
closer look.
Servo Write Pin to
The
Servo Write Pin to
block is found under the Pins drawer and it accepts a pin number that you have a
servos signal wire attached to as well as an angle that you want it to rotate to. That's the basics for controlling a
servo motor with Microsoft MakeCode!
true
true
set
right
motor invert to
set
left
motor invert to
turn motors
OFF
on start
Microsoft MakeCode Terms of Use Privacy
Download
Edit
Simulator
Blocks
JavaScript
This site uses cookies for analytics, personalized content and ads. By continuing to
browse this site, you agree to this use.