adafruit / accelstepper Goto Github PK
View Code? Open in Web Editor NEWA small fork of AccelStepper v1.3 with AF_motor (Adafruit motor shield) support!
License: Other
A small fork of AccelStepper v1.3 with AF_motor (Adafruit motor shield) support!
License: Other
This Library is no longer in use, we haven't sold the original style Motorshields for many many years. Apparently they are now natively supported in https://www.airspayce.com/mikem/arduino/AccelStepper/ So please go there :)
I encountered the problem of having a stepper motor running backward instead of staying still when calling runSpeed()
after setSpeed(0)
.
I could fix the problem by adding an additional check in the method step0
at AccelStepper.cpp:215.
Instead of defaulting to backward, checking negative speed fixes it.
Here is the fix:
// 0 pin step function (ie for functional usage)
void AccelStepper::step0()
{
if (_speed > 0) {
_forward();
} else if (_speed < 0) {
_backward();
}
}
I was wondering if there is any plans to bring in all of the changes that have happened in AccelStepper since this was originally forked at v1.3? There's been 43 versions since, so it's trailing behind quite a bit. I am considering giving it a try myself, but it would take me considerably more time than somebody already familiar with the library.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.