Hi,
I'm building a toy for my kids that among other things has a theremin(using the Mozzi Library) and can play some wav sounds when keys are pressed(using the TMRpcm library). Both libraries are needed as neither can do both things(too many wav samples to fit in the sketch, need to have them on SD card).
Unfortunately when I compile the code I get the following error:
libraries/Mozzi-master/MozziGuts.cpp.o (symbol from plugin): In function `output_buffer':
(.text+0x0): multiple definition of `__vector_20'
libraries/TMRpcm/TMRpcm.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board Olimexino-Nano.
I understand that both libraries use Timer1, hence the clash. Is there a way to bypass this problem? An important aspect is that the way the sketch is setup, it will be either the theremin or the wav samples, never together.
Thanks!