Overzetten

Dependencies:   HIDScope MODSERIAL mbed

Revision:
3:4f5a67f4170b
Parent:
1:f6b25b03b8e2
Child:
4:a1691164d879
--- a/main.cpp	Mon Oct 01 13:42:56 2018 +0000
+++ b/main.cpp	Fri Oct 05 11:14:08 2018 +0000
@@ -20,19 +20,14 @@
 HIDScope    scope( 2 );
 DigitalOut  led(LED1);
 
-/** Sample function
- * this function samples the emg and sends it to HIDScope
- **/
+
 void sample()
 {
-    /* Set the sampled emg values in channel 0 (the first channel) and 1 (the second channel) in the 'HIDScope' instance named 'scope' */
+    
     scope.set(0, emg0.read() );
     scope.set(1, emg1.read() );
-    /* Repeat the step above if required for more channels of required (channel 0 up to 5 = 6 channels) 
-    *  Ensure that enough channels are available (HIDScope scope( 2 ))
-    *  Finally, send all channels to the PC at once */
+  
     scope.send();
-    /* To indicate that the function is working, the LED is toggled */
     led = !led;
 }