Alle drie de signalen gefilterd en binair gemaakt

Dependencies:   mbed HIDScope biquadFilter

Revision:
12:768048d7f742
Parent:
10:09b8424a7b39
--- a/main.cpp	Wed Sep 10 09:11:30 2014 +0000
+++ b/main.cpp	Thu Sep 11 07:19:37 2014 +0000
@@ -26,7 +26,7 @@
     uint16_t emg_value;
     /*put raw emg value both in red and in emg_value*/
     red.write(emg0.read());      // read float value (0..1 = 0..3.3V)
-    emg_value = emg0.read_u16(); // read direct ADC result (0..4096 = 0..3.3V)
+    emg_value = emg0.read_u16(); // read direct ADC result, converted to 16 bit integer (0..2^16 = 0..65536 = 0..3.3V)
     /*send value to PC. Line below is used to prevent buffer overrun */
     if(pc.rxBufferGetSize(0)-pc.rxBufferGetCount() > 30)
         pc.printf("%u\n",emg_value);