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.
Fork of EMG by
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)