Library

Forum announcements

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
Pedja
 
Posts: 4
Joined: Mon Jun 09, 2014 10:30 pm

Library

Post by Pedja »

Hi,
I am working with 4 wheel drive robot and trying to compile the example provided by Adafruit.
And I get like tonnes of errors obviously not finding the AFMotor.h file.
I tried putting it into the appropriate folder as described on the web-site.
What should I do?
thanks

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Library

Post by adafruit_support_mike »

What are the exact errors you get?

Pedja
 
Posts: 4
Joined: Mon Jun 09, 2014 10:30 pm

Re: Library

Post by Pedja »

MotorTest4wd:14: error: 'AF_DCMotor' does not name a type
MotorTest4wd:15: error: 'AF_DCMotor' does not name a type
MotorTest4wd:16: error: 'AF_DCMotor' does not name a type
MotorTest4wd:17: error: 'AF_DCMotor' does not name a type
MotorTest4wd.ino: In function 'void setup()':
MotorTest4wd:28: error: 'Motor_Left_Front' was not declared in this scope
MotorTest4wd:29: error: 'Motor_Right_Front' was not declared in this scope
MotorTest4wd:30: error: 'Motor_Left_Rear' was not declared in this scope
MotorTest4wd:31: error: 'Motor_Right_Rear' was not declared in this scope
MotorTest4wd.ino: In function 'void loop()':
MotorTest4wd:38: error: 'Motor_Left_Front' was not declared in this scope
MotorTest4wd:38: error: 'FORWARD' was not declared in this scope
MotorTest4wd:39: error: 'Motor_Left_Rear' was not declared in this scope
MotorTest4wd:41: error: 'Motor_Right_Front' was not declared in this scope
MotorTest4wd:41: error: 'BACKWARD' was not declared in this scope
MotorTest4wd:42: error: 'Motor_Right_Rear' was not declared in this scope
MotorTest4wd:46: error: 'RELEASE' was not declared in this scope

Pedja
 
Posts: 4
Joined: Mon Jun 09, 2014 10:30 pm

Re: Library

Post by Pedja »

forgot to mention:
Win 7 environment

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: Library

Post by Franklin97355 »

See if this will help. https://learn.adafruit.com/adafruit-all ... nstall-use
Also it helps if you post Arduino questions in the Arduino forums further down.

Pedja
 
Posts: 4
Joined: Mon Jun 09, 2014 10:30 pm

Re: Library

Post by Pedja »

thanks it works now.

Locked
Please be positive and constructive with your questions and comments.

Return to “Announcements”