from mirobot import Mirobot
mirobot = Mirobot()
def draw_square():
for i in range(4):
mirobot.forward(100)
mirobot.right(90)
draw_square()
Controlling Mirobot with Javascript
Use these simple commands to get started controlling Mirobot:
- mirobot.forward(100) - move 100 mm forward
- mirobot.back(100) - move 100mm back
- mirobot.left(90) - turn 90 degrees to the left
- mirobot.right(90) - turn 90 degrees to the right
- mirobot.penup() - lift the pen up
- mirobot.pendown() - lower the pen to draw
- mirobot.beep() - make it beep