 
 unsigned long lastTime = 0;
 unsigned long now = 0;
-unsigned long highTime = 2;
-unsigned long lowTime = 18;
 bool isHigh = false;
 int value = 0;
 byte character = 0;

#define PinTransportMotor 11
#define PinStepSensor 12

int pins[] = {PinBit0, PinBit1, PinBit2, PinBit3, PinBit4, PinBit5, PinBit6, PinBit7};

enum writeMode {error, ascii, binary, hex, dec, baudot, human};

      case 'd':
      case 'D':
        mode = dec;
        Serial.println("Decimal mode: Enter 3-digit numbers. Invalid input to exit");
        break;
      case 'b':
      case 'B':    
        mode = binary;
        Serial.print("Binary mode - Wait for timeout to exit.");
        lastTime = millis();
        break;
      case 'a':
      case 'A':
