Alle drie de signalen gefilterd en binair gemaakt
Dependencies: mbed HIDScope biquadFilter
Diff: main.cpp
- Revision:
- 10:09b8424a7b39
- Parent:
- 9:d33e7b175ad7
- Child:
- 11:ce72ec658a95
- Child:
- 12:768048d7f742
--- a/main.cpp Wed Sep 10 05:06:32 2014 +0000 +++ b/main.cpp Wed Sep 10 09:11:30 2014 +0000 @@ -25,7 +25,7 @@ /*variable to store value in*/ uint16_t emg_value; /*put raw emg value both in red and in emg_value*/ - red = emg0.read(); // read float value (0..1 = 0..3.3V) + 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) /*send value to PC. Line below is used to prevent buffer overrun */ if(pc.rxBufferGetSize(0)-pc.rxBufferGetCount() > 30)