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

#include "ADC.h"
#include "Timer.h"


const int  sampleRate     = 3000;
const long serialRate     = 2000000;
const int  bufferCapacity = 2048;


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

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