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

motorRight()

Description

Control the right motor of MRPi1 robot.

Syntax

motorRigh(direction, speed)

Parameters

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

Returns

None

 

Exemple for MRPiZ robot

from mrpiZ_lib import *
import time

motorRight(0, 50)

time.sleep(5)

motorRight(1, 50)