 
 
 // NETWORK SETUP  -------
+const int SS_SD_CARD = 4; // chip select for sd card reader on ethernet card (keep high to disable)
 
 // get motor id (0 for NW motor, 1 for NE, 2 for SE, 3 for SW) from EEPROM address 0
 int MOTOR_ID = EEPROM.read(EEPROM_MOTOR_ID);

  
  pinMode(encoder0PinA, INPUT); 
  pinMode(encoder0PinB, INPUT); 
  pinMode(encoder0PinZ, INPUT);
  // encoder pin on interrupt 0 (pin 2)
  attachInterrupt(0, doEncoderA, RISING);
  

const byte encoder0PinAMask = 0x04;
const int encoder0PinB = 3;  // black   PORTD BIT 3
const byte encoder0PinBMask = 0x08;
//const int encoder0PinZ = 4;  // orange
volatile long encoder0Pos __attribute__ ((section (".noinit")));
volatile long encoder0Checksum __attribute__ ((section (".noinit")));
const long encoder0ChecksumKey = 314159265L;
