   digitalWrite(LED_D1,  data&(1<<1));
   digitalWrite(LED_D0,  data&(1<<0));
 }
+
+void sendCard(byte* pData, byte len)
+{
+  for (byte i=0; i<len; i++)
+  {
+    Serial.print(pData[i]);
+    Serial.print(" ");
+  }
+  Serial.println();
+}
+
+
+

//e.g. if IN saw a hole and OUT did not, might assume we missed a hole
//might just be able to do this by ORing each line together

// return data is in hexascii
// 00 - power up status/version etc
// 01 - valid card, 8 bytes follow

#define LED_D2       16
#define LED_D1       14
#define LED_D0       15

#define CARD_ROWS 8


void setup()
