try this for a change
Dependencies: HIDScope MODSERIAL QEI biquadFilter mbed
Fork of EMG_5 by
main.cpp@0:32bb76391d89, 2013-05-23 (annotated)
- Committer:
- vsluiter
- Date:
- Thu May 23 10:59:03 2013 +0000
- Revision:
- 0:32bb76391d89
- Child:
- 1:db54d9412d18
EMG demo program for KL25Z with EMG shield Olimex
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 | |
vsluiter | 0:32bb76391d89 | 3 | AnalogIn emg0(PTB0); |
vsluiter | 0:32bb76391d89 | 4 | PwmOut red(LED_RED); |
vsluiter | 0:32bb76391d89 | 5 | |
vsluiter | 0:32bb76391d89 | 6 | int main() |
vsluiter | 0:32bb76391d89 | 7 | { |
vsluiter | 0:32bb76391d89 | 8 | while(1) |
vsluiter | 0:32bb76391d89 | 9 | { |
vsluiter | 0:32bb76391d89 | 10 | red = emg0; |
vsluiter | 0:32bb76391d89 | 11 | wait(0.01); |
vsluiter | 0:32bb76391d89 | 12 | |
vsluiter | 0:32bb76391d89 | 13 | } |
vsluiter | 0:32bb76391d89 | 14 | } |