control for robotic arm that can play chess using a granular gripper

Dependencies:   Encoder mbed HIDScope Servo MODSERIAL

Fork of chessRobot by a steenbeek

Revision:
6:b957d8809e7c
Parent:
5:73bfad06b775
Child:
12:61759f94c07a
--- a/main.cpp	Mon Oct 05 17:35:02 2015 +0200
+++ b/main.cpp	Mon Oct 05 17:51:59 2015 +0200
@@ -4,15 +4,15 @@
 #include "config.h"  // settings and pin configurations
 
 #define DEBUG // send debug data to HIDScope
+#ifdef DEBUG
+    dubugInit();
+#endif
+
+enablePins();
+motorInit(); 
 
 int main(){
 
-    #ifdef DEBUG
-        dubugInit();
-    #endif
-
-    enablePins();
-    motorInit(); 
     while (true) {
         // checkSwitches();
         // readEMG();