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: mbed QEI HIDScope BiQuad4th_order biquadFilter MODSERIAL FastPWM
Diff: main.cpp
- Revision:
- 7:3396c3e33928
- Parent:
- 6:80c13d99aa55
- Child:
- 8:8a17f65622b4
--- a/main.cpp Thu Oct 03 13:47:49 2013 +0000 +++ b/main.cpp Wed Sep 10 04:59:25 2014 +0000 @@ -2,7 +2,7 @@ #include "MODSERIAL.h" //Define objects -AnalogIn emg0(PTB0); //Analog input +AnalogIn emg0(PTB1); //Analog input PwmOut red(LED_RED); //PWM output Ticker timer; MODSERIAL pc(USBTX,USBRX,64,1024); @@ -44,7 +44,7 @@ * The looper() function will be called every 0.001 seconds. * Please mind that the parentheses after looper are omitted when using attach. */ - timer.attach(looper, 0.001); + timer.attach(looper, 0.005); while(1) //Loop { /*Empty!*/