Conflict with Adafruit_PWMServoDriver on `TinyWireM.send` #13

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
  • Arduino board: Digispark

  • Arduino IDE version: 1.8.5

  • Steps to reproduce the problem:

 

-- Ensure a basic sketch works with the uC.

-- Install Adafruit PWM Servo Driver Library for Digispark, Branch: TinyWireM, by placing the uncompressed folder called "Adafruit_PWMServoDriver" into Documents\Arduino\libraries, per instructions at above link.

-- Load File menu > Examples > Adafruit_PWMServoDriver > pwmtest.

-- Compile, and receive error:

 

Adafruit_PWMServoDriver.cpp:63:20: error: call of overloaded 'send(uint16_t&)' is ambiguous

TinyWireM.send(on);

                ^

D:\Documents\Arduino\libraries\Adafruit_PWMServoDriver\Adafruit_PWMServoDriver.cpp:63:20: note: candidates are:

In file included from D:\Documents\Arduino\libraries\Adafruit_PWMServoDriver\Adafruit_PWMServoDriver.cpp:19:0:

C:\Users\Baby Burrito\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\TinyWireM/TinyWireM.h:65:10: note: void USI_TWI::send(uint8_t)

 void send(uint8_t b)               { write(b); }

      ^

C:\Users\Baby Burrito\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\TinyWireM/TinyWireM.h:67:10: note: void USI_TWI::send(int)

 void send(int n)                   { write((uint8_t)n); }

      ^

Last Edited: Fri. Mar 2, 2018 - 01:15 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Declare the thing as either uint8_t or int, not uint16_t.