Script voor het weergeven van 1 EMG signaal met behulp van een OLIMEX shield. Let hierbij goed op dat je de juiste pinnetjes op het OLIMEX shield verbonden hebt, in dit geval A0 als uitgang. Verder maken we gebruik van 3,3 Volt!

Dependencies:   HIDScope mbed

Fork of EMG by Tom Tom

Revision:
16:9f7797ffd0fb
Parent:
15:0da764eea774
Child:
18:21d8e7a81cf5
--- a/main.cpp	Mon Sep 21 13:52:35 2015 +0000
+++ b/main.cpp	Mon Sep 21 17:49:26 2015 +0000
@@ -1,5 +1,4 @@
 #include "mbed.h"
-#include "MODSERIAL.h"
 #include "HIDScope.h"
 
 //Define objects
@@ -16,7 +15,7 @@
     double emg_value = emg.read();
     /* Second, set the sampled emg value in channel zero (the first channel) in the 'HIDScope' variable named 'scope' */
     scope.set(0,emg_value);
-    /* Repeat the step above if required for more channels (channel 0 up to 5 = 6 channels)
+    /* 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();
 }