Dimmer library issue (RobotDyn)

Hello,
I'm having issuses with my dimmer Library. It is problem just at the beggining when I include the library with other one (433 MHz one).
This is the Error that I'm allways getting.

In file included from C:\Users\marti\OneDrive\Dokumenty\Arduino\Arduino with dimmer\Arduino_receive_dimm\Arduino_receive_dimm.ino:1:0:
C:\Users\marti\OneDrive\Dokumenty\Arduino\libraries\RBDDimmer-master\src/RBDdimmer.h:36:0: warning: "ALL_DIMMERS" redefined
#define ALL_DIMMERS 30

In file included from C:\Users\marti\OneDrive\Dokumenty\Arduino\libraries\RBDDimmer-master\src/RBDdimmer.h:7:0,
from C:\Users\marti\OneDrive\Dokumenty\Arduino\Arduino with dimmer\Arduino_receive_dimm\Arduino_receive_dimm.ino:1:
C:\Users\marti\OneDrive\Dokumenty\Arduino\libraries\RBDDimmer-master\src/avr/RBDmcuAVR.h:57:0: note: this is the location of the previous definition
#define ALL_DIMMERS 13

WInterrupts.c.o (symbol from plugin): In function attachInterrupt': (.text+0x0): multiple definition of __vector_1'
libraries\RBDDimmer-master\avr\RBDmcuAVR.cpp.o (symbol from plugin): (.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
exit status 1
Nastala chyba při kompilaci u desky Arduino Uno.

The code can be as simple as this and it is still not working:

#include <RBDdimmer.h> 
#include "RCSwitch.h" 
void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

Thank you for you fast respond.

the RBDDimmer uses external interrupt with registers so it doesn't play with the RCSwitch library which uses Arduino core attachInterrupt

and the Robotdyn dimmer library is not very good if you don't use many dimmers. it fires a timer interrupt every 12 microseconds (yes micros).

you could try the TriacDimmer library or code the Triac handling

Is it somehow possible to use those two together? Like change something in files or anything like that. This library is just recommended for the RobotDyn DIMMER module, so i would like to use it, it looks easy.

Thanks

martinzvelebil:
Is it somehow possible to use those two together? Like change something in files or anything like that. This library is just recommended for the RobotDyn DIMMER module, so i would like to use it, it looks easy.

Thanks

you would have to modify the Arduino core's WInterrupts.c and remove the use of pin 2 for attachInterrupt

I have no idea how to open that file, because it is not readable, just nonse. Any suggestions?

martinzvelebil:
I have no idea how to open that file, because it is not readable, just nonse. Any suggestions?

it is a text file.
https://raw.githubusercontent.com/arduino/ArduinoCore-avr/master/cores/arduino/WInterrupts.c

So somehow i ended up with working thing. I used this library: GitHub - circuitar/Dimmer: Arduino library to control dimmable lamps and other AC loads (110V / 220V). after trying multiple ones. At the end, I had big struggle and the only thing what i had to do was to change my mySwitch.enableReceive(0) to 1, because of the interrupts and pin the 433MHz data to pin 3 instead of pin 2.

Thanks for any suggestions.