Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

individual DMX_USE_PORT1 #73

Open
GralfR opened this issue Feb 12, 2023 · 1 comment
Open

individual DMX_USE_PORT1 #73

GralfR opened this issue Feb 12, 2023 · 1 comment

Comments

@GralfR
Copy link

GralfR commented Feb 12, 2023

I had conflicts using DMXserial with other libraries and read about the #define DMX_USE_PORT1, which helped me developing on an Arduino MEGA 256. So I uncommented the line in the library.

Unfortunately I had no success defining the DMX_USE_PORT1 in my script. How can I do that? I tried before and after including DMXserial. It would be great to be able to select the port inside the script instead of changing the library and getting errors if compiling other scripts for other devices which have no problem using UART0 for DMX.

What did I miss?

Thanks

@novski
Copy link

novski commented May 31, 2024

same on my side.
If I do:

#include <DMXSerial.h>
#define DMX_USE_PORT1

i get:

HardwareSerial0.cpp.o (symbol from plugin): In function `Serial':
(.text+0x0): multiple definition of `__vector_25'
/private/var/folders/sf/yfrzcwy91jz9m0cc0y82g_k00000gn/T/arduino/sketches/093AFE6F8A5362C3CCD3C0EF28B9407D/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_26'
/private/var/folders/sf/yfrzcwy91jz9m0cc0y82g_k00000gn/T/arduino/sketches/093AFE6F8A5362C3CCD3C0EF28B9407D/libraries/DMXSerial/DMXSerial.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1

Seams like the redefinition does not been recognized by the compiler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants