Dan Allegre / 401_reverb

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
dallegre
Date:
Mon Oct 08 16:11:21 2018 +0000
Parent:
8:ef4dca8695d1
Commit message:
Publishing.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sat Jul 30 23:57:45 2016 +0000
+++ b/main.cpp	Mon Oct 08 16:11:21 2018 +0000
@@ -211,7 +211,7 @@
     lowerLim = .05*DELAYLEN;
 
     //set up I2S
-    spi.frequency(8e6*2);                         //8MHz spi.  This is fast enough for 88KHz 16 bit sampling.
+    spi.frequency(4e6*2);                         //8MHz spi.  This is fast enough for 88KHz 16 bit sampling.
     spi.format(16,0);                           //16 bit.  clock polarity 0, phase 0.
     wait(.1);
     
@@ -226,7 +226,7 @@
         timer.attach(&I2S_send,8e-6);       //88KHz sampling.   Need to calculate.
     
     //control signal timer
-    timer2.attach(&analog_read,25e-3);
+    timer2.attach(&analog_read,50e-3);
     
     //go!
     while(1){}