working version but stripped of most unnecessary code like print statements
Dependencies: HIDScope MODSERIAL biquadFilter mbed FastPWM QEI
Revision 10:09b8424a7b39, committed 2014-09-10
- Comitter:
- vsluiter
- Date:
- Wed Sep 10 09:11:30 2014 +0000
- Parent:
- 9:d33e7b175ad7
- Child:
- 11:ce72ec658a95
- Child:
- 12:768048d7f742
- Commit message:
- used red.write() instead of red=
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Sep 10 05:06:32 2014 +0000 +++ b/main.cpp Wed Sep 10 09:11:30 2014 +0000 @@ -25,7 +25,7 @@ /*variable to store value in*/ uint16_t emg_value; /*put raw emg value both in red and in emg_value*/ - red = emg0.read(); // read float value (0..1 = 0..3.3V) + red.write(emg0.read()); // read float value (0..1 = 0..3.3V) emg_value = emg0.read_u16(); // read direct ADC result (0..4096 = 0..3.3V) /*send value to PC. Line below is used to prevent buffer overrun */ if(pc.rxBufferGetSize(0)-pc.rxBufferGetCount() > 30)