Good afternoon. I've been trying to compile a simple program to make a DMX controlled dimmer, and when I go to compile it, I get the following error:
HardwareSerial0.cpp.o (symbol from plugin): In function
Serial': (.text+0x0): multiple definition of
__vector_18'
C:\Users\Acer\AppData\Local\Temp\arduino\sketches\BF4246CBF36DA730CBAA7050FD9DA74A\libraries\DMXSerial\DMXSerial.cpp.o (symbol from plugin):(.text+0x0): first defined here
HardwareSerial0.cpp.o (symbol from plugin): In functionSerial': (.text+0x0): multiple definition of
__vector_19'
C:\Users\Acer\AppData\Local\Temp\arduino\sketches\BF4246CBF36DA730CBAA7050FD9DA74A\libraries\DMXSerial\DMXSerial.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit statusexit status 1
Compilation error: exit status 1
The code I'm trying to compile is the next:
#include <DMXSerial.h>
int outPin = 3; //
void setup() {
// Modo recepción
DMXSerial.init(DMXReceiver);
pinMode(outPin, OUTPUT);
Serial.begin(9600);
while (!Serial) {
}
}
void loop() {
// DMXSerial.read(1) permite reproducir el canal 1
Serial.print("canal 1 : ");
Serial.println(DMXSerial.read(1)); // Visualización del valor leído
// control de la salida 13 según el comando DMX recibido
analogWrite(outPin,DMXSerial.read(1));
delay(500);
}
I would like to know how I could solve this error, or if I am making an error in the code (although the program does not throw me any errors in the code as such)