Fixed:Adafruit 16-Channel 12-bit PWM/Servo Driver ..help a beginner

by copter on Mon Dec 31, 2012 5:04 pm

I downloaded the driver and when i compile the pwntest sketch i get errors.
I made no changes to the downloaded examples whatsoever.

pwmtest:23: error: 'Adafruit_PWMServoDriver' does not name a type
pwmtest.pde: In function 'void setup()':
pwmtest:35: error: 'pwm' was not declared in this scope
pwmtest.pde: In function 'void loop()':
pwmtest:49: error: 'pwm' was not declared in this scope
Last edited by copter on Tue Jan 01, 2013 9:11 am, edited 1 time in total.
copter
 
Posts: 2
Joined: Mon Dec 31, 2012 4:57 pm

Re: Adafruit 16-Channel 12-bit PWM/Servo Driver ..help a beginner

by adafruit_support_bill on Tue Jan 01, 2013 6:33 am

Sounds like the library was not installed in the right location. See here for details: http://www.ladyada.net/library/arduino/libraries.html
Also note that the IDE won't find libraries installed after it starts. You need to close all copies of the IDE and restart before it will see the new library.
User avatar
adafruit_support_bill
 
Posts: 25380
Joined: Sat Feb 07, 2009 9:11 am

Fixed: Re: Adafruit 16-Channel 12-bit PWM/Servo Driver ..help a beginner

by copter on Tue Jan 01, 2013 8:58 am

Thank you exactlly what the problem was.
copter
 
Posts: 2
Joined: Mon Dec 31, 2012 4:57 pm