I am trying to use the DMXSerial2.h library, which uses the Serial to send the DMX data to the shield.
I would like to also use the SevenSeg.h library, but those don't work along. I am asuming that is because both libraries are using the serial. Is there a way to built around this problem? I can include the code if needed
Post a link to where you got the libraries from. Please use the chain links icon on the toolbar to make it clickable. Or if you installed it using Library Manger (Sketch > Include Library > Manage Libraries) then say so and state the full name of the library.
Hans-Adolf:
but those don't work along.
Please explain exactly what you mean by "don't work". Are you encountering a compilation error or does the code compile and upload fine, but then not work as expected?
The DMXSerial2 (by Matthias Hertel) is installed via Manage Libraries.
pert:
Please explain exactly what you mean by "don't work". Are you encountering a compilation error or does the code compile and upload fine, but then not work as expected?
When compiling, I get this error:
HardwareSerial0.cpp.o (symbol from plugin): In function `Serial':
(.text+0x0): multiple definition of `__vector_25'
libraries\DMXSerial\DMXSerial.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/nicoas/appdata/local/arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ld.exe: Disabling relaxation: it will not work with multiple definitions
HardwareSerial0.cpp.o (symbol from plugin): In function `Serial':
(.text+0x0): multiple definition of `__vector_26'
libraries\DMXSerial\DMXSerial.cpp.o (symbol from plugin):(.text+0x0): first defined here
Anyway, I think the problem has absolutely nothing to do with the SevenSeg library. It's caused by using DMXSerial2 library and Serial at the same time. Here's a minimal demonstration:
pert:
You said you were using the DMXSerial2 library.
Oooops, I was messing around with the DMXSerial to find out if it changes anything and forgot to change it back..
pert:
Anyway, I think the problem has absolutely nothing to do with the SevenSeg library. It's caused by using DMXSerial2 library and Serial at the same time.
Deactivated all Serial. Sadly, that didn't help
oqibidipo:
Then you can edit DMXSerial2.cpp to use Serial1