Giter Site home page Giter Site logo

Comments (4)

PaintYourDragon avatar PaintYourDragon commented on July 22, 2024

I think you must have been using a later version or a different fork of the AccelStepper library; the version posted here has no 'setMinPulseWidth' member, nor is it present in any prior commit. You may need to download a later release (which does include setMinPulseWidth) from the original developer's site: http://www.open.com.au/mikem/arduino/AccelStepper

from adafruit-motor-shield-library.

 avatar commented on July 22, 2024

Ah, you're right, of course. Sorry. I've updated the AccelStepper library but keep getting error messages. I'll maybe shoot an email to Mike and see if has some ideas. Thanks for your quick reply!

from adafruit-motor-shield-library.

 avatar commented on July 22, 2024

Ok, I apologize for being a nuisance.

What is the difference between Mike Macauley's AccelStepper library and the one you posted a few days ago? When I load yours the 'setMinPulseWidth' error is the only one I get, but when I load his library I get several more. The file names are all the same, but the source file is different. Is there a way to use both in a library?

from adafruit-motor-shield-library.

PaintYourDragon avatar PaintYourDragon commented on July 22, 2024

The perils of code-forking. The version posted here is Arduino 1.0-compatible. He's made some different changes, but isn't yet 1.0-ready. Try this: download his latest 1.9 version. Then make a couple of changes in the source files:

In AccelStepper.h, around line 84, change this:

#include <wiring.h>

to this:

#if ARDUINO >= 100
 #include "Arduino.h"
#else
 #include <wiring.h>
#endif

Then, in AccelStepper.cpp, around line 6, change this:

#include "WProgram.h"

to this:

#if ARDUINO >= 100
 #include "Arduino.h"
#else
 #include "WProgram.h"
#endif

This appears to compile now. However, I don't have the same hardware on hand, so I cannot tell whether other behaviorally-incompatible changes may have been made in the library.

from adafruit-motor-shield-library.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.