Hi,
On Saturday, December 14, 2013 04:32:20 AM Philip Pesce wrote:
> Hi Mike,
>
> I just tried this and am getting an error that says: "AF_Stepper" does not
> name a type
>
> I am using the new Adafruit MotorShield library (for version 2 of the
> shield). I believe Adafruit's old library was named "AFMotor.h". The new
> library is named "Adafruit_MotorShield.h".
>
> When I look at the "AFMotor_ConstantSpeed" example in AccelStepper, I'm
> seeing that it's including, what looks like, the old library ("AFMotor.h").
>
> Do I have an old version of the AccelStepper library perhaps? Or is there
> something that I'm missing entirely (which is possible seeing as I'm still
> a novice at this stuff).
>
> Would appreciate your help!
The examples do indeed import AFMotor.h. It appears there is a later version
V2 of AFMotor that has a different main header file (which is very unhelpful of
them) but you are free to alter the example to suit this newer version.
If you are not able to do that, perhaps you should consider using V1
https://github.com/adafruit/Adafruit-Motor-Shield-library
Cheers.