![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Werkend EMG script
Dependencies: HIDScope MODSERIAL biquadFilter mbed
Fork of EMG by
main.cpp
- Committer:
- vsluiter
- Date:
- 2013-05-31
- Revision:
- 3:1296e996026a
- Parent:
- 2:e314bb3b2d99
- Child:
- 4:8b298dfada81
File content as of revision 3:1296e996026a:
#include "mbed.h" //Classes AnalogIn emg0(PTB0); //Analog input PwmOut red(LED_RED); //PWM output Ticker timer; Serial pc(USBTX,USBRX); //Functions void looper() { float emg_value; red = emg_value = emg0; pc.printf("%.6f\n",emg_value); } int main() { pc.baud(115200); red.period_ms(2); timer.attach(looper, 0.001); while(1) //Loop { } }