Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed QEI HIDScope BiQuad4th_order biquadFilter MODSERIAL FastPWM
Diff: main.cpp
- Revision:
- 12:768048d7f742
- Parent:
- 10:09b8424a7b39
diff -r 09b8424a7b39 -r 768048d7f742 main.cpp
--- 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);