I'm running Arduino 1.05 on an Intel Mac laptop under BANNED. My laptop has a standard OS/X installation with no "interesting" extensions or mods.
I downloaded your Adafruit_PWMServoDriver library per instructions, and placed the unzipped folder into Arduino /Arduino-1.05 / libraries. When I then startup the IDE the Adafruit servo example is not visible in File->Examples. It is visible as File->Sketchbook->Arduino-1.05->Libraries->Adafruit_PWMServoDriver->servo.
The unmodified servo example doesn't build and gives the errors shown below. Can anyone comment on possible sources for these issues?
servo:23: error: 'Adafruit_PWMServoDriver' does not name a type
servo.pde: In function 'void setup()':
servo:41: error: 'pwm' was not declared in this scope
servo.pde: In function 'void setServoPulse(uint8_t, double)':
servo:59: error: 'pwm' was not declared in this scope
servo.pde: In function 'void loop()':
servo:66: error: 'pwm' was not declared in this scope
servo:70: error: 'pwm' was not declared in this scope
Thanks
Art
Adafruit PWMDriver Library
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Franklin97355
- Posts: 23940
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Adafruit PWMDriver Library
You need to unzip the files. Thak a look at this to do a library install
-
- Posts: 3
- Joined: Mon Aug 26, 2013 10:23 pm
Re: Adafruit PWMDriver Library
Hi,
Thanks for the response, but I unzipped the folder and renamed it as directed, prior to placing it in the libraries folder.
Regards,
Art
Thanks for the response, but I unzipped the folder and renamed it as directed, prior to placing it in the libraries folder.
Regards,
Art
- Franklin97355
- Posts: 23940
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Adafruit PWMDriver Library
Have you shutdown the IDE and restarted?
- tdicola
- Posts: 1074
- Joined: Thu Oct 17, 2013 9:11 pm
Re: Adafruit PWMDriver Library
Actually move the library into the Arduino/libraries folder instead of putting it in an Arduino-1.05 subfolder in between them. You want the full path to look like:
~/Documents/Arduino/libraries/<your library>
Where <your library> is the name of the library being installed. Take a look at this page for a little more info and some pictures of what the hierarchy should look like. Also like franklin mentions make sure to close and restart the IDE after copying in the new library.
~/Documents/Arduino/libraries/<your library>
Where <your library> is the name of the library being installed. Take a look at this page for a little more info and some pictures of what the hierarchy should look like. Also like franklin mentions make sure to close and restart the IDE after copying in the new library.
-
- Posts: 3
- Joined: Mon Aug 26, 2013 10:23 pm
Re: Adafruit PWMDriver Library
Installing the Adafruit library in the "upper" libraries folder has fixed the problem that I was having with building servo in the IDE. Now I can resume forward progress in converting my own Arduino servo application over from employing the native Arduino servo support to employing the Adafruit 16 channel servo driver. Thanks ever so much for the tip, and thanks to all who took the time to reply.
Regards,
Art
Regards,
Art
- tdicola
- Posts: 1074
- Joined: Thu Oct 17, 2013 9:11 pm
Re: Adafruit PWMDriver Library
Awesome, glad to hear it's working now. Good luck with the project!
Please be positive and constructive with your questions and comments.