working version but stripped of most unnecessary code like print statements

Dependencies:   HIDScope MODSERIAL biquadFilter mbed FastPWM QEI

Files at this revision

API Documentation at this revision

Comitter:
tomlankhorst
Date:
Thu Sep 22 08:04:14 2016 +0000
Parent:
17:290d0b765a96
Child:
19:2bf824669684
Commit message:
Updated HIDScope lib. ; Added blinking LED in sample fn.

Changed in this revision

HIDScope.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/HIDScope.lib	Tue Sep 22 07:00:54 2015 +0000
+++ b/HIDScope.lib	Thu Sep 22 08:04:14 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/tomlankhorst/code/HIDScope/#5020a2c0934b
+http://mbed.org/users/tomlankhorst/code/HIDScope/#eade4ec5282b
--- a/main.cpp	Tue Sep 22 07:00:54 2015 +0000
+++ b/main.cpp	Thu Sep 22 08:04:14 2016 +0000
@@ -5,6 +5,7 @@
 AnalogIn    emg(A0); //Analog input
 Ticker      sample_timer;
 HIDScope    scope(1);
+DigitalOut  led(LED1);
 
 /** Sample function
  * this function samples the emg and sends it to HIDScope
@@ -18,14 +19,16 @@
     /* Repeat the step above if required for more channels (channel 0 up to 5 = 6 channels) */
     /* Finally, send all channels to the PC at once */
     scope.send();
+    /* To indicate that the function is working, the LED is toggled */
+    led = !led;
 }
 
 int main()
 {
     /**Attach the 'sample' function to the timer 'sample_timer'.
-    * this ensures that 'sample' is executed every... 0.002 seconds
+    * this ensures that 'sample' is executed every... 0.01 seconds
     */
-    sample_timer.attach(&sample, 0.002);
+    sample_timer.attach(&sample, 0.01);
 
     /*empty loop, sample() is executed periodically*/
     while(1) {}
--- a/mbed.bld	Tue Sep 22 07:00:54 2015 +0000
+++ b/mbed.bld	Thu Sep 22 08:04:14 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/9327015d4013
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/abea610beb85
\ No newline at end of file