working version but stripped of most unnecessary code like print statements
Dependencies: HIDScope MODSERIAL biquadFilter mbed FastPWM QEI
Revision 7:3396c3e33928, committed 2014-09-10
- Comitter:
- vsluiter
- Date:
- Wed Sep 10 04:59:25 2014 +0000
- Parent:
- 6:80c13d99aa55
- Child:
- 8:8a17f65622b4
- Commit message:
- Updated MODSERIAL
Changed in this revision
MODSERIAL.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/MODSERIAL.lib Thu Oct 03 13:47:49 2013 +0000 +++ b/MODSERIAL.lib Wed Sep 10 04:59:25 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/Sissors/code/MODSERIAL/#b04ce87dc424 +http://mbed.org/users/Sissors/code/MODSERIAL/#180e968a751e
--- 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!*/