 #define D1           A9
 #define D0           A10
 
-#define REG_STATE_OPEN '.'
-#define REG_STATE_WHITE 'W'
-#define REG_STATE_BLACK 'B'
+#define LED_REG      1 // TX
+#define LED_D7       0 // RX
+#define LED_D6       2
+#define LED_D5       3
+#define LED_D4       5
+#define LED_D3       7
+#define LED_D2       16
+#define LED_D1       14
+#define LED_D0       15
+
+
+#define REG_STATE_OPEN   '.'
+#define REG_STATE_WHITE  'W'
+#define REG_STATE_BLACK  'B'
 
 #define DATA_STATE_PAPER '.'
 #define DATA_STATE_HOLE  'X'

  unsigned int d1  = analogRead(D1);
  unsigned int d0  = analogRead(D0);
  
  byte freg = getReg(reg);
  byte fd7  = getData(d7);
  byte fd6  = getData(d6);

  Serial.write(fd1);
  Serial.write(fd0);
  Serial.println();
  #endif
}

byte getReg(unsigned int adc)
