The following library is used for work with dimmer, it gives ability to control large ammoun of dimmer. This lib uses with Leonardo, Mega, UNO, ESP8266, ESP32, Arduino M0, Arduino Zero, Arduino Due, STM32.
Apparently both libs are competing for an interrupt vector 42...
Arduino: 1.8.13 (Mac OS X), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
libraries/RBDDimmer-master/avr/RBDmcuAVR.cpp.o (symbol from plugin): In function dimmerLamp::dimmerLamp(int)': (.text+0x0): multiple definition of__vector_42'
libraries/Servo/avr/Servo.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
Multiple libraries were found for "Servo.h"
Used: /Users/billparkinson/Documents/Arduino/libraries/Servo
Not used: /Applications/Arduino.app/Contents/Java/libraries/Servo
exit status 1
Error compiling for board Arduino Mega or Mega 2560.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Is there a way to #define something to avoid this?
Trying to do this:
include (from arduino distro)
include
In my sketch for arduino MEGA board.
Apparently both libs are competing for an interrupt vector 42...
Arduino: 1.8.13 (Mac OS X), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
libraries/RBDDimmer-master/avr/RBDmcuAVR.cpp.o (symbol from plugin): In function
dimmerLamp::dimmerLamp(int)': (.text+0x0): multiple definition of
__vector_42' libraries/Servo/avr/Servo.cpp.o (symbol from plugin):(.text+0x0): first defined here collect2: error: ld returned 1 exit status Multiple libraries were found for "Servo.h" Used: /Users/billparkinson/Documents/Arduino/libraries/Servo Not used: /Applications/Arduino.app/Contents/Java/libraries/Servo exit status 1 Error compiling for board Arduino Mega or Mega 2560.This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
Is there a way to #define something to avoid this?