asdfasdf
Dependencies: HIDScope MODSERIAL PID QEI biquadFilter mbed
Fork of cpfromralph by
Diff: main.cpp
- Revision:
- 5:4dacb7b72109
- Parent:
- 4:8b298dfada81
- Child:
- 6:80c13d99aa55
diff -r 8b298dfada81 -r 4dacb7b72109 main.cpp --- a/main.cpp Wed Oct 02 09:40:41 2013 +0000 +++ b/main.cpp Wed Oct 02 09:45:01 2013 +0000 @@ -25,8 +25,11 @@ float emg_value; /*put raw emg value both in red and in emg_value*/ red = emg_value = emg0.read(); - /*send value to PC. use 6 digits precision*/ + /*send value to PC. use 6 digits after decimal sign*/ pc.printf("%.6f\n",emg_value); + /**When not using the LED, the above could also have been done this way: + * pc.printf("%.6\n", emg0.read()); + */ } int main()