Advertisement
Guest User

Untitled

a guest
Jan 17th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. {
  2. links = digitalRead(drLinks);
  3. rechts = digitalRead(drRechtsOK);
  4. if (links == HIGH)
  5. {
  6. digitalWrite(dirPin,LOW);
  7. digitalWrite(stepPin,HIGH);
  8. delayMicroseconds(Time);
  9. digitalWrite(stepPin,LOW);
  10. delayMicroseconds(Time);
  11. }
  12. if(rechts == 1)
  13. {
  14. digitalWrite(dirPin,HIGH);
  15. digitalWrite(stepPin,HIGH);
  16. delayMicroseconds(Time);
  17. digitalWrite(stepPin,LOW);
  18. delayMicroseconds(Time);
  19. }
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement