![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Werkend EMG script
Dependencies: HIDScope MODSERIAL biquadFilter mbed
Fork of EMG by
main.cpp@1:db54d9412d18, 2013-05-23 (annotated)
- Committer:
- ArvidKeemink
- Date:
- Thu May 23 13:33:19 2013 +0000
- Revision:
- 1:db54d9412d18
- Parent:
- 0:32bb76391d89
- Child:
- 2:e314bb3b2d99
Added comments. Commitment test.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
vsluiter | 0:32bb76391d89 | 1 | #include "mbed.h" |
vsluiter | 0:32bb76391d89 | 2 | |
ArvidKeemink | 1:db54d9412d18 | 3 | AnalogIn emg0(PTB0); //Analog input |
ArvidKeemink | 1:db54d9412d18 | 4 | PwmOut red(LED_RED); //PWM output |
vsluiter | 0:32bb76391d89 | 5 | |
vsluiter | 0:32bb76391d89 | 6 | int main() |
vsluiter | 0:32bb76391d89 | 7 | { |
ArvidKeemink | 1:db54d9412d18 | 8 | while(1) //Loop |
vsluiter | 0:32bb76391d89 | 9 | { |
vsluiter | 0:32bb76391d89 | 10 | red = emg0; |
ArvidKeemink | 1:db54d9412d18 | 11 | wait(0.01); //Looptime (approx) |
vsluiter | 0:32bb76391d89 | 12 | |
vsluiter | 0:32bb76391d89 | 13 | } |
vsluiter | 0:32bb76391d89 | 14 | } |