Skip to content

Support generic drivers for Stepper library #4250

Closed
@skniazev

Description

@skniazev

Hello,

please consider my changes to the Stepper library (see attachments).
Main features of this version:

  1. 100% compatible with the actual master branch
  2. generic driver support (see example stepper_oneRevolution_ULN2003 for driver ULN2003ERP & Motor_BYJ48)
  3. constructors harmonization by introducing the initMotor method,
  4. speed and size optimization of method stepMotor by introducing the phasesMatrix array

Thank you in advance,
Stanislav Kniazev

Stepper.h.txt
Stepper.cpp.txt
stepper_oneRevolution_ULN2003.ino.txt

Metadata

Metadata

Assignees

Labels

Library: StepperThe Stepper Arduino libraryfeature requestA request to make an enhancement (not a bug fix)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions