Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. int speedPin = 9;
  2. int directionPin = 8;
  3.  
  4. void setup() {
  5. Serial.begin(9600);
  6. initializeMotor(speedPin,directionPin);
  7. }
  8.  
  9. void loop() {
  10. motorForward(100, speedPin, directionPin);
  11. delay(5000);
  12.  
  13. motorReverse(100, speedPin, directionPin);
  14. delay(5000);
  15.  
  16. motorStop( speedPin, directionPin);
  17. delay(3000);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement