Coding your first servo motor on MakeCode
Last updated
Was this helpful?
Last updated
Was this helpful?
Open and follow along or read the goals of this activity and try to do it as a challenge.
Have the micro:bit position the servo motor to 90 degrees at the start of the application.
When the user presses the A button, change the angle to 0-degree.
When the user presses the B button, change the angle to 180-degree.
Reset the angle to 0-degree, when the user presses A and B at the same time.
The next tool we are learning about is called a Neopixel. See you in the next section.