emg2

Dependencies:   HIDScope biquadFilter mbed QEI

Fork of EMG by Tom Tom

Revision:
25:02f183b944ed
Parent:
24:6bdc50e21805
Child:
26:1eafb6111ae8
--- a/main.cpp	Mon Oct 29 20:02:20 2018 +0000
+++ b/main.cpp	Tue Oct 30 08:25:31 2018 +0000
@@ -2,7 +2,7 @@
 #include "HIDScope.h"
 #include "BiQuad.h"
 
-HIDScope scope( 2 );
+HIDScope scope( 6 );
 Ticker sample_timer;
 
 // Inputs EMG
@@ -77,14 +77,18 @@
     low1 = L2.step(absolute1);
     low2 = L3.step(absolute2); 
     
-    scope.set(0,emg0); // Sending the signal to the HIDScope
-    scope.set(1,low0);
+    scope.set( 0, emg0); // Sending the signal to the HIDScope 
+    scope.set( 1, low0); // Change the numer of inputs on the top when necessary
+    scope.set( 2, emg1);
+    scope.set( 3, low1);
+    scope.set( 4, emg2);
+    scope.set( 5, low2);
     scope.send(); 
 }
 
 int main() 
 {  
-    sample_timer.attach(&filtering, 0.002);
+    sample_timer.attach( &filtering, 0.002);
 
     while(1) {}
 }
\ No newline at end of file