Add I2S Slave Support For Teensy 4.0#38
Conversation
Commented out unused block variables for clarity.
|
I confess to being unqualified in this area of the code! So some random thoughts. |
|
I also am little qualified to comment on any of the I2S_slave code. I (mostly) left it out of my original creation of this library because I had no hardware to test it on. I still have no hardware to test it on. So, I have little basis for recommending anything. Sorry. @bthayer3 , what hardware are you using for testing? |
|
I will also admit I am no expert with this stuff. I was using a raspberry pi 4 with a Teensy 4.0 and don't have an oscilloscope either. I was using |
Looks like the
AudioInputI2Sslave_F32is targeting an older teensy 3 board. Add a new logic section to support Teensy 4.0 board. I compared the logic used in the PJRC audio library and added this logic more so as an educated guess. It my testing it does work with some glitches though, I am probably testing this all wrong though as I don't have an oscilloscope.Probably would also need the design tool with this i2sslaveinput drag and drop element. Didn't add that code yet as I think this slave code needs more work.
For reference: this is the code I was using in the Arduino sketch when I tested this. I was sending over 16 bit at 48 khz: