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.
Dependencies: EthernetNetIf mbed
Fork of Monitor0 by
Diff: main.cpp
- Revision:
- 3:e2e8519a7ce7
- Parent:
- 2:0ea44fca1a81
- Child:
- 4:b04a24076feb
diff -r 0ea44fca1a81 -r e2e8519a7ce7 main.cpp --- a/main.cpp Mon Jul 30 07:23:46 2012 +0000 +++ b/main.cpp Mon Jul 30 07:31:30 2012 +0000 @@ -1,5 +1,5 @@ -#define SAMPLE_RATE 15000 +#define SAMPLE_RATE 150000 #include "mbed.h" #include "adc.h" #include "EthernetNetIf.h" @@ -22,7 +22,7 @@ DigitalOut P23(p23); Serial pc(USBTX,USBRX); Host multicast(IpAddr(192,168,1,10),27200, NULL); //Target IP and port -ADC adc(SAMPLE_RATE, 16); +ADC adc(SAMPLE_RATE, 1); Ticker flipper; unsigned short s1,s2,s3; unsigned short i1,i2,i3;