Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <RedBot.h> // This line "includes" the library into your sketch.
- RedBotMotors motors; // Instantiate the motor control object.
- void setup()
- {
- for (int i=0; i < 4; i++)
- {
- motors.rightMotor(150);
- motors.leftMotor(150);
- delay(1000);
- motors.brake();
- delay(500);
- motors.rightMotor(100);
- motors.leftMotor(-100);
- delay(500);
- motors.brake();
- delay(500);
- }
- }
- void loop()
- {
- }
Add Comment
Please, Sign In to add comment