I’m using TMRpcm library for playing .wav files from my SD card. Everything works fine, but if I include Wire.h library the files aren’t playing at all (there’s no sound). I have only added this line of code above my program:
I suppose that this is because of the timer and interruption because TMRpcm documentation mentions that:
May interfere with other libraries that rely on interrupts. The isPlaying() disable() or noInterrupts() functions can be used to prevent parallel code execution.
I’ve tried to use those functions but maybe I do something wrong. Can somebody help me? How can I use those libraries at once?