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 QEI biquadFilter mbed
Fork of EMG_Controller by
Diff: emg.h
- Revision:
- 6:6cb7c0247560
- Parent:
- 3:1d43dd4f37eb
- Child:
- 9:1cb2d5ab51e6
--- a/emg.h Tue Oct 25 11:13:13 2016 +0000 +++ b/emg.h Tue Oct 25 12:07:53 2016 +0000 @@ -30,6 +30,9 @@ //Timeout to change state after 10 seconds Timeout change_state2; +//led +DigitalOut led(LED_RED); + //Emg input AnalogIn emg0( A0 ); AnalogIn emg1( A1 ); @@ -68,11 +71,13 @@ } void calibrate() { - state = STATE_CALIBRATION; + state = STATE_CALIBRATION; + led.write(0); } void run() { state = STATE_RUN; + led.write(1); } void EMG_filter();