costelljoe
New member
I'm trying to use a teensy 3.2 (without audio adapter) to read in audio. I'm using the "PassThroughMono" example which reads in pin A2 and outputs the signal on A14. However, when I connect any input (sine wave of amplitude 1v, centered at 1.5v) the output is flat at 600mV. When I ground pin A2 the output is also flat 600mV. Why does this not see the input correctly?
Code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioInputAnalog adc1; //xy=161,80
AudioOutputAnalog dac1; //xy=329,47
AudioOutputPWM pwm1; //xy=331,125
AudioConnection patchCord1(adc1, dac1);
AudioConnection patchCord2(adc1, pwm1);
// GUItool: end automatically generated code
void setup() {
// Audio connections require memory to work. For more
// detailed information, see the MemoryAndCpuUsage example
AudioMemory(12);
}
void loop() {
// Do nothing here. The Audio flows automatically
}