   digitalWrite(bridgePinIn, HIGH);
   pinMode(bridgePinOut, OUTPUT);
   digitalWrite(bridgePinOut, LOW);
-  
+
+  #ifdef atmega
     Serial.begin(9600);
     #if defined(micro) & defined(debug)
       while (!Serial)
     #endif
+  #endif
 
   
   #if defined(softout)

#endif

//check which arduino board we are using and build accordingly
#if defined(__AVR_ATtiny84__) || defined(__AVR_ATtiny167__) || defined(__AVR_ATtiny85)
  //if using an attiny build with all defaults, don't define anything
#elif defined(__AVR_ATmega32U4__)
  //if using an arduino micro build with eeprom enabled and different LED pin
  #define atmega
  #define micro
#else
  //if using an atmega328p or similar build with eeprom enabled
  #define atmega
#endif

#if defined(softout)

        }
      }
    }
    #endif
  
  #if defined(softout)
    mySerial.write(bit1); // transmit one byte at a time.
