Closed DJSures closed 3 years ago
probably something with your setup, you're the only person to have this issue :)
deleted comment, you can post again, politely
C:\My Documents\Downloads\Adafruit-PWM-Servo-Driver-Library-master\examples\servo\servo.ino: In function 'void setup()': servo:64:7: error: 'class Adafruit_PWMServoDriver' has no member named 'setOscillatorFrequency' pwm.setOscillatorFrequency(27000000); ^ C:\My Documents\Downloads\Adafruit-PWM-Servo-Driver-Library-master\examples\servo\servo.ino: In function 'void loop()': servo:103:9: error: 'class Adafruit_PWMServoDriver' has no member named 'writeMicroseconds' pwm.writeMicroseconds(servonum, microsec); ^ servo:108:9: error: 'class Adafruit_PWMServoDriver' has no member named 'writeMicroseconds' pwm.writeMicroseconds(servonum, microsec); ^ exit status 1 'class Adafruit_PWMServoDriver' has no member named 'setOscillatorFrequency'
hiya, you can browse code here to see that these functions exist https://github.com/adafruit/Adafruit-PWM-Servo-Driver-Library/blob/master/Adafruit_PWMServoDriver.cpp#L341
I'm not troubleshooting, but instead explaining that your examples do not even build. Is this maintained?
Example file: Servo Arduino 1.8.13 ESP32 1.0.6
C:\My Documents\Downloads\Adafruit-PWM-Servo-Driver-Library-master\examples\servo\servo.ino: In function 'void loop()': servo:103:9: error: 'class Adafruit_PWMServoDriver' has no member named 'writeMicroseconds' pwm.writeMicroseconds(servonum, microsec); ^ servo:108:9: error: 'class Adafruit_PWMServoDriver' has no member named 'writeMicroseconds' pwm.writeMicroseconds(servonum, microsec); ^ exit status 1 'class Adafruit_PWMServoDriver' has no member named 'writeMicroseconds'
And after further edits...
libraries\Adafruit_PWM_Servo_Driver_Library\Adafruit_PWMServoDriver.cpp.o: In function
Adafruit_PWMServoDriver::Adafruit_PWMServoDriver(unsigned char)': C:\My Documents\Arduino\libraries\Adafruit_PWM_Servo_Driver_Library/Adafruit_PWMServoDriver.cpp:31: multiple definition of
Adafruit_PWMServoDriver::Adafruit_PWMServoDriver(unsigned char)' sketch\Adafruit_PWMServoDriver.cpp.o:sketch/Adafruit_PWMServoDriver.cpp:47: first defined here libraries\Adafruit_PWM_Servo_Driver_Library\Adafruit_PWMServoDriver.cpp.o: In functionAdafruit_PWMServoDriver::Adafruit_PWMServoDriver(unsigned char)': Adafruit_PWMServoDriver.cpp:(.text._ZN23Adafruit_PWMServoDriverC2Eh+0x0): multiple definition of
Adafruit_PWMServoDriver::Adafruit_PWMServoDriver(unsigned char)' sketch\Adafruit_PWMServoDriver.cpp.o:Adafruit_PWMServoDriver.cpp:(.text._ZN23Adafruit_PWMServoDriverC2Eh+0x0): first defined here libraries\Adafruit_PWM_Servo_Driver_Library\Adafruit_PWMServoDriver.cpp.o: In functionAdafruit_PWMServoDriver::setPWM(unsigned char, unsigned short, unsigned short)': Adafruit_PWMServoDriver.cpp:(.text._ZN23Adafruit_PWMServoDriver6setPWMEhtt+0x0): multiple definition of
Adafruit_PWMServoDriver::setPWM(unsigned char, unsigned short, unsigned short)' sketch\Adafruit_PWMServoDriver.cpp.o:Adafruit_PWMServoDriver.cpp:(.text._ZN23Adafruit_PWMServoDriver6setPWMEhtt+0x0): first defined here libraries\Adafruit_PWM_Servo_Driver_Library\Adafruit_PWMServoDriver.cpp.o: In functionAdafruit_PWMServoDriver::setPin(unsigned char, unsigned short, bool)': Adafruit_PWMServoDriver.cpp:(.text._ZN23Adafruit_PWMServoDriver6setPinEhtb+0x0): multiple definition of
Adafruit_PWMServoDriver::setPin(unsigned char, unsigned short, bool)' sketch\Adafruit_PWMServoDriver.cpp.o:Adafruit_PWMServoDriver.cpp:(.text._ZN23Adafruit_PWMServoDriver6setPinEhtb+0x0): first defined here libraries\Adafruit_PWM_Servo_Driver_Library\Adafruit_PWMServoDriver.cpp.o: In functionAdafruit_PWMServoDriver::read8(unsigned char)': Adafruit_PWMServoDriver.cpp:(.text._ZN23Adafruit_PWMServoDriver5read8Eh+0x0): multiple definition of
Adafruit_PWMServoDriver::read8(unsigned char)' sketch\Adafruit_PWMServoDriver.cpp.o:Adafruit_PWMServoDriver.cpp:(.text._ZN23Adafruit_PWMServoDriver5read8Eh+0x0): first defined here libraries\Adafruit_PWM_Servo_Driver_Library\Adafruit_PWMServoDriver.cpp.o: In functionAdafruit_PWMServoDriver::write8(unsigned char, unsigned char)': Adafruit_PWMServoDriver.cpp:(.text._ZN23Adafruit_PWMServoDriver6write8Ehh+0x0): multiple definition of
Adafruit_PWMServoDriver::write8(unsigned char, unsigned char)' sketch\Adafruit_PWMServoDriver.cpp.o:Adafruit_PWMServoDriver.cpp:(.text._ZN23Adafruit_PWMServoDriver6write8Ehh+0x0): first defined here libraries\Adafruit_PWM_Servo_Driver_Library\Adafruit_PWMServoDriver.cpp.o: In functionAdafruit_PWMServoDriver::reset()': Adafruit_PWMServoDriver.cpp:(.text._ZN23Adafruit_PWMServoDriver5resetEv+0x0): multiple definition of
Adafruit_PWMServoDriver::reset()' sketch\Adafruit_PWMServoDriver.cpp.o:Adafruit_PWMServoDriver.cpp:(.text._ZN23Adafruit_PWMServoDriver5resetEv+0x0): first defined here libraries\Adafruit_PWM_Servo_Driver_Library\Adafruit_PWMServoDriver.cpp.o: In functionAdafruit_PWMServoDriver::setPWMFreq(float)': Adafruit_PWMServoDriver.cpp:(.text._ZN23Adafruit_PWMServoDriver10setPWMFreqEf+0x0): multiple definition of
Adafruit_PWMServoDriver::setPWMFreq(float)' sketch\Adafruit_PWMServoDriver.cpp.o:Adafruit_PWMServoDriver.cpp:(.text._ZN23Adafruit_PWMServoDriver10setPWMFreqEf+0x0): first defined here collect2.exe: error: ld returned 1 exit status exit status 1 Error compiling for board DOIT ESP32 DEVKIT V1.