Skip to content
This repository has been archived by the owner on Dec 20, 2018. It is now read-only.

Error: "AF_Stepper" does not name a type #2

Closed
matthewepler opened this issue Dec 5, 2011 · 7 comments
Closed

Error: "AF_Stepper" does not name a type #2

matthewepler opened this issue Dec 5, 2011 · 7 comments

Comments

@matthewepler
Copy link

Got this error when attempting to verify "AFMotor_ConstantSpeed" example file. Is this a compatibility issue with Arduino 1.0-rc2?

M.Epler

@PaintYourDragon
Copy link
Contributor

The AFMotor_ConstantSpeed and AFMotor_MultiStepper examples appear to be dependent on a second Arduino library, AccelStepper, available here: https://github.com/adafruit/AccelStepper

@matthewepler
Copy link
Author

Yeah, I've got that installed too. No dice. I'll keep poking at it over the next few days and let you know what I find. Thanks for the reply.

@PaintYourDragon
Copy link
Contributor

Puzzling. I've got both installed, code builds OK on Arduino 1.0 final. I did edit both just a couple days ago for 1.0 compliance. Are you using a freshly-downloaded version of the lib?

@matthewepler
Copy link
Author

Problem must be on my end, then. Apologies. I downloaded both libraries today. I'll do a reinstall just in case.

@matthewepler
Copy link
Author

Still having trouble. Posting screen vid at link below. Would be grateful for any help. Final project due soon!
http://itp.nyu.edu/~mae383/arduinoerror.mov

@PaintYourDragon
Copy link
Contributor

Ah! Noticed the libraries are in a folder "arduino/library", which looks like it's inside a DropBox folder, yeah? They should be in ~/Documents/Arduino/Libraries (plural, upper case). Create that folder (if it's not already there) and move or copy both libraries there, then restart the Arduino IDE; stuff should build. If that all works "the kosher way," then you can try Plan B:

It should be okay to keep library code in a DropBox folder, but there's a trick to it: you need to create soft links from the Documents/Arduino/Libraries folder from the command line, Finder aliases won't do! e.g. in Terminal:

cd ~/Documents/Arduino/Libraries
rm -r AccelStepper AFmotor
ln -s ~/DropBox/arduino/library/AccelStepper .
ln -s ~/DropBox/arduino/library/AFMotor .

Lemme know if that all works, and I'll mark the issue closed. Thanks!

@matthewepler
Copy link
Author

THanks for your continued help. I tried both ways and still didn't work so I moved my default Sketch folder out of the Dropbox and into the ~/Documents/Arduino folder and it compiled. I won't have my auto back-ups nice and neat like before - but at least the library will work!

@ladyada ladyada closed this as completed Dec 6, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants