Guest User

Untitled

a guest
Oct 17th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include <RedBot.h> // This line "includes" the library into your sketch.
  2. RedBotMotors motors; // Instantiate the motor control object.
  3.  
  4. void setup()
  5. {
  6. for (int i=0; i < 4; i++)
  7. {
  8. motors.rightMotor(150);
  9. motors.leftMotor(150);
  10. delay(1000);
  11. motors.brake();
  12. delay(500);
  13.  
  14. motors.rightMotor(100);
  15. motors.leftMotor(-100);
  16. delay(500);
  17. motors.brake();
  18. delay(500);
  19. }
  20. }
  21.  
  22. void loop()
  23. {
  24. }
Add Comment
Please, Sign In to add comment