EasyDriver_SImplest.ino 405 B

123456789101112131415161718192021
  1. /*
  2. This is the Simplest code to move a stepper motor
  3. using the EasyDriver controller
  4. code at:
  5. https://www.schmalzhaus.com/EasyDriver/Examples/EasyDriverExamples.html
  6. */
  7. void setup() {
  8. pinMode(8, OUTPUT);
  9. pinMode(9, OUTPUT);-
  10. digitalWrite(8, HIGH);
  11. digitalWrite(9, LOW);
  12. }
  13. void loop() {
  14. digitalWrite(9, HIGH);
  15. delay(1);
  16. digitalWrite(9, LOW);
  17. delay(1);
  18. }