   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)

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

}

void loop() {
  #ifdef atmega
  //serial data stuff for coreir-uplink support
  // send data only when you receive data:
  if (easylap_on == 1) {
