Hi!
As far as i've seen, the audio library accesses the SD-card in an "update"-function, which is called inside an interrupt routine (I guess).
Accessing the SD-Card therefore utilizes the SPI Hardware.
Is it possible to Play wav-files from SD Card with the Audio Adapter Board on teensy 3.2 while using hardware SPI concurrently? If so, how do you do it?
I was thinking about 3 ways how to achieve this:
Thanks
As far as i've seen, the audio library accesses the SD-card in an "update"-function, which is called inside an interrupt routine (I guess).
Accessing the SD-Card therefore utilizes the SPI Hardware.
Is it possible to Play wav-files from SD Card with the Audio Adapter Board on teensy 3.2 while using hardware SPI concurrently? If so, how do you do it?
I was thinking about 3 ways how to achieve this:
- Disabling audiolibraries Interrupt while running (will probably wreak havok?)
- Attaching my SPI-code to the audio library Interrupt (where do I register my function for that?)
- Using software SPI (at this point i am struggling with the 8MHz clock timing because the arduino delay functions are too rough)
Thanks