Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Audio.h>
- #include <Audio.h>
- #include <Wire.h>
- #include <SPI.h>
- #include <SD.h>
- #include <SerialFlash.h>
- // GUItool: begin automatically generated code
- AudioInputI2S i2s; //xy=81,383
- AudioSynthWaveformSine sine; //xy=95,244
- AudioMixer4 mixer; //xy=310,317
- AudioAnalyzeFFT256 fft256; //xy=483,363
- AudioConnection patchCord1(i2s, 0, mixer, 2);
- AudioConnection patchCord2(i2s, 1, mixer, 3);
- AudioConnection patchCord3(sine, 0, mixer, 0);
- AudioConnection patchCord4(mixer, fft256);
- // GUItool: end automatically generated code
- void setup(){
- //fft256.averageTogether(344);
- sine.amplitude(1);
- sine.frequency(60);
- Serial.begin(115200);
- Serial.println("Start");
- }
- void loop(){
- Serial.print("Reading: ");
- Serial.println(fft256.read(15, 50));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement