atoombom
Dependencies: Encoder HIDScope mbed
Fork of EMG by
Revision 5:4dacb7b72109, committed 2013-10-02
- Comitter:
- vsluiter
- Date:
- Wed Oct 02 09:45:01 2013 +0000
- Parent:
- 4:8b298dfada81
- Child:
- 6:80c13d99aa55
- Commit message:
- Added comments
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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()