Davidelvig
Well-known member
I have a few Teensy audio adaptors, and want to add their functionality to a custom Teensy 3.2-based board I've built.
I need all of the touch pins on the Teensy for other puposes.
So want to use alternate I2C pins (best would be pins 29 & 30) on the standard Teensy 3.2 back-side.
I think I can just declare these pins using:
- Wire.setSDA(pin)
- Wire.setSCL(pin)
and if I've wired the Audio Board pins correctly, it should work.
Am I correct?
Also, I'd like flexibility in the I2S pin mappings
I see the standard Teensy 3.2 pins would be
I don't see anywhere to configure these pins in the Teensy libraries.
I'm assuming these are fixed (though I see in the MK20DX256VLH7 documentation reference to a TXD0/TXD1 and RXD0/RXD1)
Should I assume these pins are fixed, and as such, work around them by using alternate SPI MOSI and CLK?
Lastly, I now have good experience with VS1053 Synth chip fro VLSI. I've been using it for a MIDI synth and for headphone output.
With the Audio Shield, I would only use the VS1053 for a MIDI Synth, and route its sound back through the audio library.
The VS1053 has stereo line out and I2S out.
Can I hook this up as an input to the Teensy audio library using its I2S output.
(I'm not yet I2S savvy... is there a Master/Slave thing I need to understand?
Thanks!
I need all of the touch pins on the Teensy for other puposes.
So want to use alternate I2C pins (best would be pins 29 & 30) on the standard Teensy 3.2 back-side.
I think I can just declare these pins using:
- Wire.setSDA(pin)
- Wire.setSCL(pin)
and if I've wired the Audio Board pins correctly, it should work.
Am I correct?
Also, I'd like flexibility in the I2S pin mappings
I see the standard Teensy 3.2 pins would be
- MCLK 11 Audio Master Clock, 11.29 MHz
- BCLK 9 Audio Bit Clock, 1.41 or 2.82 MHz
- LRCLK 23 Audio Left/Right Clock, 44.1 kHz
- DIN 22 Audio Data from Teensy to Audio Shield
- DOUT 13 Audio Data from Audio Shield to Teensy
I don't see anywhere to configure these pins in the Teensy libraries.
I'm assuming these are fixed (though I see in the MK20DX256VLH7 documentation reference to a TXD0/TXD1 and RXD0/RXD1)
Should I assume these pins are fixed, and as such, work around them by using alternate SPI MOSI and CLK?
Lastly, I now have good experience with VS1053 Synth chip fro VLSI. I've been using it for a MIDI synth and for headphone output.
With the Audio Shield, I would only use the VS1053 for a MIDI Synth, and route its sound back through the audio library.
The VS1053 has stereo line out and I2S out.
Can I hook this up as an input to the Teensy audio library using its I2S output.
(I'm not yet I2S savvy... is there a Master/Slave thing I need to understand?
Thanks!