RobotDynOfficial / RBDDimmer

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.
241 stars 112 forks source link

Interrupt Problem with arduino uno #5

Open Stefan3424 opened 5 years ago

Stefan3424 commented 5 years ago

hello, i try to attach an interrupt on pin3 (pin 2 is used for zerocrossin) but the compilers says: 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 Fehler beim Kompilieren für das Board Arduino/Genuino Uno.

can someone help me to use the second interrupt on pin3 ?

VSneg commented 5 years ago

@Stefan3424 Yes you can. If I understood correct, you want to change zero-cross from second to third pin, are you?

Stefan3424 commented 5 years ago

no i want to use pin3 (arduino uno) for a encoder via attachInterrupt(digitalPinToInterrupt(3), EncoderISR, LOW);