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

#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.
