Advertisement
Guest User

Untitled

a guest
May 29th, 2015
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include <servo.h>
  2. Servo leftMotor, rightMotor;
  3.  
  4. void setup() {
  5. // put your setup code here, to run once:
  6. leftMotor.attach(9);
  7.  
  8.  
  9. leftMotor.attach(13);
  10.  
  11. }
  12.  
  13. void loop() {
  14. // put your main code here, to run repeatedly:
  15. leftMotor.write(45);
  16. rightMotor.right(45);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement