Arduino Function: RobotControl.motorsStop

Description

This function stops the two motors of the Robot.

Syntax

Robot.motorsStop()

Examples

#include 

void setup(){
 Robot.begin();
}
void loop(){
 Robot.motorsWrite(255,255); //Make the robot go forward, full speed
 delay(1000);
 Robot.motorsStop(); //Fast stop the robot
 delay(1000);
 Robot.motorsWrite(255,-255);//Make the robot rotate right, full speed
 delay(1000);
 Robot.motorsWrite(0,0); //Slow stop the robot
 delay(1000);
}


Based on the reference originally written by Arduino Community,  wiring.org.co and  arduino.cc