I'm running into what seems like a conflict between Teensy w/ Audio Adaptor using AudioInputI2S (LineIn) and doing DMX transmit via DmxSimple at the same time.
The behavior I'm seeing is that as soon as I try to send DMX via DmxSimple, the audio from AudioInputI2S stops working.
What I'm trying to achieve is:
1) Audio:
Teensy 3.2 (w/ Arduino 1.6.8 and Teensyduino 1.28 beta)
Teensy Audio Adaptor
LineIn and SD Wav mixing, going to AudioOutputI2S
2) DMX:
transmit DMX using DmxSimple (e.g., DmxSimple.usePin(13)....)
(Teensy connected to an external Max485 chip via pin 13)
3) I2C:
listen on secondary I2C bus (pins 29/30) as a slave
Everything works great together, with the exception of DMX transmit and LineIn together.
As soon as I call DmxSimple.usePin(13) followed by DmxSimple.maxChannel(10) (which I believe calls DmxSimple.begin) the LineIn sound disappears from the output (SDWav continues to function).
Perhaps its some type of interrupt conflict between DmxSimple and the I2S part of the Audio library?
Is there a way to achieve what I'm attempting?
I've read some posts by Paul on the forum making reference to the possibility of transmitting DMX on a serial line, but not exactly sure how to do that (e.g., is an external 485 chip still used?) -- and should it theoretically work in the above 3-part configuration?
The behavior I'm seeing is that as soon as I try to send DMX via DmxSimple, the audio from AudioInputI2S stops working.
What I'm trying to achieve is:
1) Audio:
Teensy 3.2 (w/ Arduino 1.6.8 and Teensyduino 1.28 beta)
Teensy Audio Adaptor
LineIn and SD Wav mixing, going to AudioOutputI2S
2) DMX:
transmit DMX using DmxSimple (e.g., DmxSimple.usePin(13)....)
(Teensy connected to an external Max485 chip via pin 13)
3) I2C:
listen on secondary I2C bus (pins 29/30) as a slave
Everything works great together, with the exception of DMX transmit and LineIn together.
As soon as I call DmxSimple.usePin(13) followed by DmxSimple.maxChannel(10) (which I believe calls DmxSimple.begin) the LineIn sound disappears from the output (SDWav continues to function).
Perhaps its some type of interrupt conflict between DmxSimple and the I2S part of the Audio library?
Is there a way to achieve what I'm attempting?
I've read some posts by Paul on the forum making reference to the possibility of transmitting DMX on a serial line, but not exactly sure how to do that (e.g., is an external 485 chip still used?) -- and should it theoretically work in the above 3-part configuration?