diff --git a/content/learn/04.electronics/04.stepper-motors/stepper-library-examples.md b/content/learn/04.electronics/04.stepper-motors/stepper-library-examples.md index 19494de4d8..a9b9f45d60 100644 --- a/content/learn/04.electronics/04.stepper-motors/stepper-library-examples.md +++ b/content/learn/04.electronics/04.stepper-motors/stepper-library-examples.md @@ -54,7 +54,7 @@ A stepper motor follows the turns of a potentiometer (or other sensor) on analog // create an instance of the stepper class, specifying // the number of steps of the motor and the pins it's // attached to -Stepper stepper(STEPS, 8, 9, 10, 11); +Stepper stepper(STEPS, 8, 10, 9, 11); // the previous reading from the analog input int previous = 0; @@ -173,4 +173,4 @@ void loop() { myStepper.step(stepsPerRevolution / 100); } } -``` \ No newline at end of file +```