mathertel / DMXSerial

An Arduino library for sending and receiving DMX packets.
BSD 3-Clause "New" or "Revised" License
328 stars 78 forks source link

DMX Sniff example not compiling #64

Closed stijnb1234 closed 2 years ago

stijnb1234 commented 2 years ago

I get the following error:

HardwareSerial0.cpp.o (symbol from plugin): In function `Serial':
(.text+0x0): multiple definition of `__vector_18'
libraries\DMXSerial\DMXSerial.cpp.o (symbol from plugin):(.text+0x0): first defined here
HardwareSerial0.cpp.o (symbol from plugin): In function `Serial':
(.text+0x0): multiple definition of `__vector_19'
libraries\DMXSerial\DMXSerial.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status

I'm compiling for an Arduino Uno.

stijnb1234 commented 2 years ago

I'm stupid, it's mentioned in the comments above....

mhlsf commented 1 year ago

I'm having the same issue, may I know the solution ? @stijnb1234

stijnb1234 commented 1 year ago

I'm having the same issue, may I know the solution ? @stijnb1234

"This only works on boards with multiple UARTs (like the Mega2560), or with a virtual USB serial port in addition to a normal UART (like the Leonardo or Micro)."

The Arduino Uno only has one UART available, which is already used for the Serial (USB) communication.