Karpova Lab fork of stateScript

Dependencies:   SMARTWAV SOMO_II mbed

Fork of stateScript_v2_karpova by Andy Lustig

Revision:
8:436cf2ab961c
Parent:
5:abee20c0bf2a
Child:
9:f15ad8d18881
diff -r 42aa1e804047 -r 436cf2ab961c mbedInterface/mbedInterface.cpp
--- a/mbedInterface/mbedInterface.cpp	Wed Jan 27 20:17:16 2016 +0000
+++ b/mbedInterface/mbedInterface.cpp	Wed Jan 27 21:31:45 2016 +0000
@@ -1,6 +1,7 @@
 #include "mbedInterface.h"
 #include "mbed.h"
-
+#define EPHYSRIG
+//#define TRAINRIG
 
 
 //--------------------------------------------------------------
@@ -133,12 +134,21 @@
 //MBED-specific stuff
 //---------------------------------------------------------------------
 
+////translate pin numbers to hardware pins
+//PinName outPins[NUMOUTPORTS] = {p11,p13,p15,p18,p21,p23,p25,p29,p20,p6}; //Old board output pins
+////PinName outPins[NUMPORTS] = {p18,p15,p13,p11,p29,p25,p23,p21,p20}; //New board output pins
+//PinName inPins[NUMINPORTS] = {p12,p14,p16,p17,p22,p24,p26,p30,p7};
+
+#ifdef TRAINRIG
 //translate pin numbers to hardware pins
-PinName outPins[NUMOUTPORTS] = {p11,p13,p15,p18,p21,p23,p25,p29,p20,p6}; //Old board output pins
-//PinName outPins[NUMPORTS] = {p18,p15,p13,p11,p29,p25,p23,p21,p20}; //New board output pins
-PinName inPins[NUMINPORTS] = {p12,p14,p16,p17,p22,p24,p26,p30,p7};
-
-
+PinName outPins[NUMPORTS] = {p7,p10,p13,p16,p17,p18,p21,p22}; //p21 and p21 are place holders 
+PinName inPins[NUMPORTS]  = {p5,p6,p8,p9,p11,p12,p14,p15};
+#endif
+#ifdef EPHYSRIG
+//translate pin numbers to hardware pins
+PinName outPins[NUMPORTS] = {p7,p10,p12,p14,p16,p17,p18,p21,p22};
+PinName inPins[NUMPORTS]  = {p5,p6,p8,p9,p11,p13,p15,p23,p24};
+#endif
 
 //The sound output uses a SmartWav device and their simple serial library
 SMARTWAV sWav(p9,p10,p19);   //(TX,RX,Reset);