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: HIDScope MODSERIAL mbed
Fork of EMGfilter24_3 by
Diff: main.cpp
- Revision:
- 2:6402a7071ba3
- Parent:
- 1:6081dc1ecd1f
- Child:
- 3:faed8b7f6542
diff -r 6081dc1ecd1f -r 6402a7071ba3 main.cpp
--- a/main.cpp Tue Oct 25 12:03:32 2016 +0000
+++ b/main.cpp Tue Oct 25 12:53:45 2016 +0000
@@ -32,13 +32,12 @@
{
// Set the sampled emg values in channel 0 (the first channel) and 1 (the second channel) in the 'HIDScope' instance named 'scope'
scope.set(0, emg0.read() );
-// scope.set(1, emg1.read() );
- /* Repeat the step above if required for more channels of required (channel 0 up to 5 = 6 channels)
+ /* Repeat the step above if required for more channels of required (channel 0 up to 5 = 6 channels)
* Ensure that enough channels are available (HIDScope scope( 2 ))
* Finally, send all channels to the PC at once */
scope.send();
// To indicate that the function is working, the LED is toggled
- ledje = !ledje;
+ ledje = ledje;
}
@@ -71,7 +70,8 @@
while(1){
- scope.set(1, lf_y);
+ scope.set(1, lf_y);
+ scope.send();
}
