 
 void setup() {
   pinMode(LED_BUILTIN, OUTPUT);
-  Serial.begin(serialRate);
+  SerialUSB.begin(serialRate);
 
   Analog::setup();
   Timer::setup(sampleRate, measure);


void loop() {
  static int counter = 0;
  bool state = (counter++ >> 5) % 2;
  digitalWrite(LED_BUILTIN, rbuf.isFull() ? HIGH : LOW);
  push();
  delayMicroseconds(5);
}

  while (rbuf.hasElements()) {
    MODEL m = rbuf.pop();
#ifdef USE_BINARY
    SerialUSB.write(rbuf.isFull() ? 'f' : 'n');
    SerialUSB.write(m.bytes, NBYTES);
#else
    SerialUSB.print(rbuf.size());
    for (int i = 0; i < NWORDS; i++) {
      SerialUSB.print('\t');
      SerialUSB.print(m.words[i], DEC);
    }
#endif
    SerialUSB.write('\n');
  }
}

