Advertisement
DamianoNisoli

Stepper con A4988

Aug 23rd, 2019
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.            
  2. double STEP;
  3. double DIR;
  4.  
  5. void setup()
  6. {
  7.   pinMode(2, OUTPUT);
  8.   STEP = 0;
  9.   DIR = 0;
  10.  
  11. }
  12.  
  13.  
  14. void loop()
  15. {
  16.  
  17.     digitalWrite(2, HIGH);
  18.     delay(1);
  19.     digitalWrite(2, LOW);
  20.     delay(1);
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement