Guest User

Untitled

a guest
Aug 14th, 2020
53
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Adafruit Motor Shield library - Version: Latest
  2.  
  3. // left motor is in1 and in2
  4. // right motor is in3 and in4
  5.  
  6. #define in1 7
  7. #define in2 8
  8. #define in3 9
  9. #define in4 10
  10.  
  11.  
  12. void setup() {
  13.  
  14. pinMode (in1, OUTPUT);
  15. pinMode (in2, OUTPUT);
  16. pinMode (in3, OUTPUT);
  17. pinMode (in4, OUTPUT);
  18.  
  19. }
  20.  
  21. // left motor is in1 and in2
  22. // right motor is in3 and in4
  23.  
  24. void loop() {
  25. digitalWrite (in1, LOW);
  26. digitalWrite (in2, HIGH);
  27. digitalWrite (in3, LOW);
  28. digitalWrite (in4, HIGH);
  29. }
  30.  
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×