Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 9:f42863126573, committed 2018-10-08
- 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){}