Home » Programming (API) » Programming the MRPi1 with python » motorLeft() – API python

motorLeft()

Description

Control the left motor of MRPi1 robot.

Syntax

motorLeft(direction, speed)

Parameters

  • direction: forward or back
  • speed : the speed of the robot can be between 0 to 100.

Returns

None

Exemples

from mrpiZ_lib import *
import time

motorLeft(0, 50)

time.sleep(5)

motorLeft(1, 50)