4 directional EMG control of the XY table. Made during my bachelor end assignment.

Dependencies:   C12832_lcd HIDScope mbed-dsp mbed

Revision:
6:9296ea7e9952
Parent:
5:24929fa367fc
--- a/main.cpp	Fri Apr 24 08:57:30 2015 +0000
+++ b/main.cpp	Fri Apr 24 09:25:48 2015 +0000
@@ -15,10 +15,12 @@
     MS2 = 0;
     MS3 = 0;
 
-Step.period(1.0/1000);
-Step.write(0.5);
-    while (1) {
-        
-    }
+    Step.period(1.0/2000); //1 kHz, vanaf 2,5 kHz doet die niks meer. 2 kHz kan nog, maar minder vloeiend
+    Step.write(0.5); //Duty cycle van 50%
+
+
+    while(1){
+    Dir = 0; //Dir = 1 is naar boven, Dir = 0 is naar onder
+}
 
 }
\ No newline at end of file