dacs output don't play on Teensy3.5

Status
Not open for further replies.

jwatte

Well-known member
I have the simplest possible sketch, compiling on Ubuntu using the Arduino IDE and a Teensyduino install I downloaded just a few days ago.

Code:
#include <Audio.h>

// GUItool: begin automatically generated code
AudioSynthWaveform       waveform1;      //xy=226,276
AudioOutputAnalogStereo  dacs1;          //xy=423,277
AudioConnection          patchCord1(waveform1, 0, dacs1, 0);
AudioConnection          patchCord2(waveform1, 0, dacs1, 1);
// GUItool: end automatically generated code

void setup() {
  // put your setup code here, to run once:
  waveform1.begin(1.0f, 400.0f, WAVEFORM_SAWTOOTH);
  dacs1.analogReference(INTERNAL);
  dacs1.begin(); // <-- hangs in here
}

void loop() {
  // put your main code here, to run repeatedly:

}

When I run this, the DACs just stay fixed at about 0.8V output, according to my oscilloscope. The signal doesn't wiggle at all.

What am I missing?


More debugging: The sketch hangs inside dacs1.begin() (found by twiddling a LED before and after.)
Taking out that call makes the sketch run through loop(), but still no sound output.
 
Last edited:
Status
Not open for further replies.
Back
Top