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:
}
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.
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