not checked because compiler was down, but this should do everything!!!!

Dependencies:   FastPWM HIDScope MODSERIAL QEI biquadFilter mbed

Fork of EMG4 by Remi van Veen

Files at this revision

API Documentation at this revision

Comitter:
ArvidKeemink
Date:
Thu May 23 13:33:19 2013 +0000
Parent:
0:32bb76391d89
Child:
2:e314bb3b2d99
Commit message:
Added comments. Commitment test.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu May 23 10:59:03 2013 +0000
+++ b/main.cpp	Thu May 23 13:33:19 2013 +0000
@@ -1,14 +1,14 @@
 #include "mbed.h"
 
-AnalogIn    emg0(PTB0);
-PwmOut      red(LED_RED);
+AnalogIn    emg0(PTB0); //Analog input
+PwmOut      red(LED_RED); //PWM output
 
 int main()
 {
-    while(1)
+    while(1) //Loop
     {
         red = emg0;
-        wait(0.01);
+        wait(0.01); //Looptime (approx)
         
     }
 }
\ No newline at end of file