forked from PaulStoffregen/Audio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make input ADC and output DAC play nicely together
- Loading branch information
1 parent
6bdf3a0
commit bdd6750
Showing
10 changed files
with
86 additions
and
191 deletions.
There are no files selected for viewing
41 changes: 0 additions & 41 deletions
41
examples/HardwareTesting/PassThroughAnalog/PassThroughAnalog.ino
This file was deleted.
Oops, something went wrong.
41 changes: 41 additions & 0 deletions
41
examples/HardwareTesting/PassThroughMono/PassThroughMono.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#include <Audio.h> | ||
#include <Wire.h> | ||
#include <SPI.h> | ||
#include <SD.h> | ||
#include "utility/pdb.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 | ||
|
||
// When AudioInputAnalog is running, analogRead() must NOT be used. | ||
delay(200); | ||
Serial.print("PDB: SC="); | ||
Serial.print(PDB0_SC, HEX); | ||
Serial.print(", CONFIG="); | ||
Serial.print(PDB_CONFIG, HEX); | ||
Serial.print(", MOD="); | ||
Serial.print(PDB0_MOD); | ||
Serial.print(", IDLY="); | ||
Serial.print(PDB0_IDLY); | ||
Serial.print(", CH0C1="); | ||
Serial.print(PDB0_CH0C1); | ||
Serial.print(", DMA: "); | ||
Serial.print(dma_channel_allocated_mask, HEX); | ||
Serial.println(); | ||
} | ||
|
||
|
95 changes: 0 additions & 95 deletions
95
examples/HardwareTesting/PassThroughPlusTone/PassThroughPlusTone.ino
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.