molleonair
Member
Hello ....
Iam Newbie in Teensy Audio and I just want to test
the Hardware i have a teensy 3.2 with a PJIRC PropShield (DAC1 Output)
but nothing happens
Can you check if code is correct

thanks a lot
Iam Newbie in Teensy Audio and I just want to test
the Hardware i have a teensy 3.2 with a PJIRC PropShield (DAC1 Output)
but nothing happens
Can you check if code is correct

thanks a lot
Code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioPlaySerialflashRaw playFlashRaw1; //xy=845.3333129882812,330.33331298828125
AudioOutputAnalog dac1; //xy=1028.3333282470703,328.3333282470703
AudioConnection patchCord1(playFlashRaw1, dac1);
// GUItool: end automatically generated code
void setup() {
Serial.begin(9600);
AudioMemory(20);
dac1.analogReference(EXTERNAL); // much louder!
delay(50); // time for DAC voltage stable
pinMode(5, OUTPUT);
digitalWrite(5, HIGH); // turn on the amplifier
delay(10); // allow time to wake up
}
void loop() {
//Serial.println("BIG");
//playFlashRaw1.play("BIG.RAW");
//delay(2000);
//Serial.println("INTEL");
//playFlashRaw1.play("INTEL.RAW");
//delay(2000);
Serial.println("SOX");
playFlashRaw1.play("SOX.RAW");
delay(2000);
}
Last edited: