boxxofrobots
Well-known member
Not testing with a scope - using a simple a speaker attached to the PT8211 board per the picture. When it doesn't work I get NO sound what so ever.
Right, my results exactly. When it works it works both ways, when it don't there's nothing from either.
I've got this working. Now my weekend plans are to introduce that mess of code from rev 0, page by page or line by line, until it either works again or ti doesn't. It seems to me if this works then I'm on my way (I am
Right, my results exactly. When it works it works both ways, when it don't there's nothing from either.
I've got this working. Now my weekend plans are to introduce that mess of code from rev 0, page by page or line by line, until it either works again or ti doesn't. It seems to me if this works then I'm on my way (I am
Code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioSynthWaveform waveform1; //xy=2142,231
AudioSynthWaveform waveform2; //xy=2147,284
AudioOutputPT8211_2 pt8211_2; //xy=2336,249
AudioOutputUSB usb1; //xy=2462,371
AudioConnection patchCord1(waveform1, 0, pt8211_2, 0);
AudioConnection patchCord2(waveform1, 0, usb1, 0);
AudioConnection patchCord3(waveform2, 0, pt8211_2, 1);
AudioConnection patchCord4(waveform2, 0, usb1, 1);
// GUItool: end automatically generated code
void setup() {
// put your setup code here, to run once:
AudioMemory(20);
waveform1.begin(.5,1000,WAVEFORM_SINE);
waveform2.begin(.5,501,WAVEFORM_SINE);
waveform2.phase(90);
}
void loop() {
// put your main code here, to run repeatedly:
}