Using Teensy 3.2 and propshiled lc, just trying to send some noise to a 4 ohm 3 watt speaker as a hardware test.
I can hear the speaker click once the code is uploaded, but no noise signal thereafter.
Here is the code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioSynthNoiseWhite noise1; //xy=346,213
AudioOutputAnalog dac1; //xy=480,212
AudioConnection patchCord1(noise1, dac1);
// GUItool: end automatically generated code
void setup(){
pinMode(5, OUTPUT);
digitalWrite(5, HIGH); // turn on the amplifier
delay(10); // allow time to wake up
}
void loop() {
// put your main code here, to run repeatedly:
}
Any pointers?
I can hear the speaker click once the code is uploaded, but no noise signal thereafter.
Here is the code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioSynthNoiseWhite noise1; //xy=346,213
AudioOutputAnalog dac1; //xy=480,212
AudioConnection patchCord1(noise1, dac1);
// GUItool: end automatically generated code
void setup(){
pinMode(5, OUTPUT);
digitalWrite(5, HIGH); // turn on the amplifier
delay(10); // allow time to wake up
}
void loop() {
// put your main code here, to run repeatedly:
}
Any pointers?