 #include "ADC.h"
 #include "Timer.h"
 
-
 const int  sampleRate     = 3000;
 const long serialRate     = 2000000;
 const int  bufferCapacity = 2048;

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



void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
  SerialUSB.begin(serialRate);

  Analog::setup();
  Timer::setup(sampleRate, measure);
