Shadow6290
Member
Hey Everyone,
I'm running experiments for a project I'm working on. It involves using the Teensy 4.1, Prop Shield, 0.96 inch OLED display, Adafruit UDA1334 I2S DAC, and Dotstar LED strip. I've attached the code I'm working with.
Just a note on hardware setup the flash chip and LED's are on the SPI bus (prop shield), the OLED is on the SPI1 bus. The DAC is on I2S2 (I removed the prop shield's IRQ pin in order to allow this as I'm not using it right now and plan to attach it somewhere else later since it interferes with I2S2).
The problem I'm having is in the sketch where I have all of them working together (LED_TEST.ino) I cannot get the RAW file to play. When attempting to play it the sketch freezes. When playing from the SD Card (using AudioPlaySdWav instead of AudioPlaySerialflashRaw) I don't run into this issue.
I made a separate sketch to test it by itself (Flash-Audio-Test.ino) with all the same settings and setup and it plays without any issues. Am I blind and missing some sort of incorrect code in the LED_TEST.ino sketch or is there something I need to do in order to make AudioPlaySerialflashRaw play nice with other things on the bus (LED's)? With or without SPI transaction lines I only run into this problem in LED_TEST.ino.
Any help with this would be greatly appreciated, a second set of eyes may be what I need here lol.
I'm running experiments for a project I'm working on. It involves using the Teensy 4.1, Prop Shield, 0.96 inch OLED display, Adafruit UDA1334 I2S DAC, and Dotstar LED strip. I've attached the code I'm working with.
Just a note on hardware setup the flash chip and LED's are on the SPI bus (prop shield), the OLED is on the SPI1 bus. The DAC is on I2S2 (I removed the prop shield's IRQ pin in order to allow this as I'm not using it right now and plan to attach it somewhere else later since it interferes with I2S2).
The problem I'm having is in the sketch where I have all of them working together (LED_TEST.ino) I cannot get the RAW file to play. When attempting to play it the sketch freezes. When playing from the SD Card (using AudioPlaySdWav instead of AudioPlaySerialflashRaw) I don't run into this issue.
I made a separate sketch to test it by itself (Flash-Audio-Test.ino) with all the same settings and setup and it plays without any issues. Am I blind and missing some sort of incorrect code in the LED_TEST.ino sketch or is there something I need to do in order to make AudioPlaySerialflashRaw play nice with other things on the bus (LED's)? With or without SPI transaction lines I only run into this problem in LED_TEST.ino.
Any help with this would be greatly appreciated, a second set of eyes may be what I need here lol.