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 biquadFilter mbed
Fork of Milestone_sample by
Diff: main.cpp
- Revision:
- 20:bd9495b31f50
- Parent:
- 19:466ada92bf65
- Child:
- 21:1da43fdbd254
diff -r 466ada92bf65 -r bd9495b31f50 main.cpp
--- a/main.cpp Mon Oct 22 12:57:28 2018 +0000
+++ b/main.cpp Mon Oct 22 13:00:11 2018 +0000
@@ -28,7 +28,6 @@
//HIDscope
Ticker sample_timer;
HIDScope scope( 2 );
-DigitalOut led(LED1);
//Global variables
int encoder = 0; //Starting point encoder
@@ -86,7 +85,6 @@
* Finally, send all channels to the PC at once */
scope.send();
/* To indicate that the function is working, the LED is toggled */
- led = !led;
}
void EMGFilter0()
@@ -179,7 +177,7 @@
ledg = 0;
}
- if(x>=4) //Reset back to x = 0
+ if(x==4) //Reset back to x = 0
{
x = -1;
}
