Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #define motorPinA 3
  2. #define motorPinB 4
  3.  
  4. void setup()
  5. {
  6. pinMode(motorPinA, OUTPUT);
  7. pinMode(motorPinB, OUTPUT);
  8. Serial.begin(9600);
  9. Serial.println("Spin");
  10. }
  11.  
  12.  
  13. void loop()
  14. {
  15. digitalWrite(motorPinA,HIGH);
  16. digitalWrite(motorPinB,LOW);
  17. delay(10000);
  18. digitalWrite(motorPinA,0);
  19. digitalWrite(motorPinB,0);
  20. delay(2000);
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement