Adafruit 16-Channel 12-bit PWM/Servo Driver
Bookseller add but when I compile the example that brings "servo" gives me these errors
C:\Users\HOME\Documents\Arduino\libraries\Adafruit\Adafruit_PWMServoDriver.cpp: In member function 'void Adafruit_PWMServoDriver::begin()':
C:\Users\HOME\Documents\Arduino\libraries\Adafruit\Adafruit_PWMServoDriver.cpp:31:2: error: 'Wire1' was not declared in this scope
C:\Users\HOME\Documents\Arduino\libraries\Adafruit\Adafruit_PWMServoDriver.cpp: In member function 'void Adafruit_PWMServoDriver::setPWM(uint8_t, uint16_t, uint16_t)':
C:\Users\HOME\Documents\Arduino\libraries\Adafruit\Adafruit_PWMServoDriver.cpp:66:3: error: 'Wire1' was not declared in this scope
C:\Users\HOME\Documents\Arduino\libraries\Adafruit\Adafruit_PWMServoDriver.cpp: In member function 'uint8_t Adafruit_PWMServoDriver::read8(uint8_t)':
C:\Users\HOME\Documents\Arduino\libraries\Adafruit\Adafruit_PWMServoDriver.cpp:76:3: error: 'Wire1' was not declared in this scope
C:\Users\HOME\Documents\Arduino\libraries\Adafruit\Adafruit_PWMServoDriver.cpp: In member function 'void Adafruit_PWMServoDriver::write8(uint8_t, uint8_t)':
C:\Users\HOME\Documents\Arduino\libraries\Adafruit\Adafruit_PWMServoDriver.cpp:85:3: error: 'Wire1' was not declared in this scope
BANNED and Adafruit Library Intel 16-Channel Servo Driver w
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 1
- Joined: Fri May 09, 2014 11:34 am
- adafruit_support_mike
- Posts: 67454
- Joined: Thu Feb 11, 2010 2:51 pm
Re: BANNED and Adafruit Library Intel 16-Channel Servo Driv
It looks like you're getting the code defined for the Due.
I don't know if the BANNED is compatible with that library, but you can try using the standard Wire library by adding:
before the line where you #include the PWM library.
I don't know if the BANNED is compatible with that library, but you can try using the standard Wire library by adding:
Code: Select all
#ifdef __AVR__
Please be positive and constructive with your questions and comments.