tyhenry / CheapStepper

Arduino library for the cheap but decent 28BYJ-48 5v stepper motor with ULN2003 board
GNU General Public License v3.0
122 stars 46 forks source link

Motor with different pins #6

Closed pierdr closed 5 years ago

pierdr commented 6 years ago

I noticed that the 28byj stepper motor connected on different pins rather than the standard ones {8,9,10,11}, wasn't working.

I noticed that the call from the constructor CheapStepper::CheapStepper (int in1, int in2, int in3, int in4) to the constructor CheapStepper::CheapStepper () was the problem.

To quickly fix the problem I copied the content of the second constructor in the first and remove the call between constructors.

tyhenry commented 5 years ago

Fixed with release v0.2.1. It should propagate to the Arduino libraries shortly.