A revised version of QGPMaker's Motor Shield Library V5. In case of copyright issues, this repository may be deleted or merged!
- In the original version:
- Bad coding style
- Fake C++ (A C++ appearance C)
- Low performance (Unused Variables, Runtime Determination of Constants, ...)
- Incompatible stepper motor class (copied from adafruit, but hardware shifted from TB6612FNG to AM2878)
- In the revised version:
- Coding style, type names, variable names fixed
- Better abstraction with true C++ (interfaces and namespace)
- Compile-time determination (templates, constexpr)
- Reduced use of macro (turned into namespace variables and references)
- Revised object structure (parts belong to shield -> shield links to parts)
- Higher performance (27.3% memory performance boost)
- Stepper motor bug fixes
- Now, DCMotors can be controlled at higher 12-bit resolution if you want to
- When create custom encoders, use
configIndex=IEncoder::CustomEncoderIndex