Microphone
Audio System Design Tool : https://www.pjrc.com/teensy/gui/index.html?info=AudioOutputI2S
Microphone SHP0645 / USB
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioInputI2S i2s1; //xy=317.9761962890625,247.9761962890625
AudioAmplifier amp1; //xy=591.40478515625,243.40481567382812
AudioOutputUSB usb1; //xy=894.8333053588867,244.83331298828125
AudioConnection patchCord1(i2s1, 0, amp1, 0);
AudioConnection patchCord2(amp1, usb1);
// GUItool: end automatically generated code
void setup(){
AudioMemory(30);
amp1.gain(20);
}
Microphone SHP0645 / DAC
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioInputI2S i2s1; //xy=317.9761962890625,247.9761962890625
AudioAmplifier amp1; //xy=591.40478515625,243.40481567382812
AudioOutputAnalog dac1; //xy=894.8333053588867,244.83331298828125
AudioConnection patchCord1(i2s1, 0, amp1, 0);
AudioConnection patchCord2(amp1, dac1);
// GUItool: end automatically generated code
void setup(){
AudioMemory(30);
amp1.gain(20);
}
Pas de commentaires