
press block. (The little brass-colored face at the top of the micro:bit is
the logo touch sensor.) If you’re using the original version, use the “on
button [A] pressed” input block instead
(Figure
Y
)
.
• For this hexapod design, the servo doesn’t have to move far to swing
the legs back and forth. The exact distance to set the servo to move
will depend on your model. To test it out, start by setting the servo
to swing to 70 degrees (a little to the left of neutral) and then to 110
degrees (a little to the right of neutral).
• Add a pause of 1 second (1000 ms) after each movement of the
servo. Then place a repeat block around this stack of c ...