   //}
   long now = micros();
   Serial.println(now-start);
-  _delay_ms(20);
-  /*for (pos = mid-100; pos < mid+100; pos++) {
+  _delay_ms(20);*/
+  
+  for (pos = 168; pos < 192; pos++) {
 
-    OSP_SET_AND_FIRE(pos*F_CPU / 1000000);
+    OSP_SET_AND_FIRE(pos);
 
     //while (OSP_INPROGRESS());         // This just shows how you would wait if nessisary - not nessisary in this application. 
 

  Serial.begin(38400);
  osp_setup();
  OSP_SET_WIDTH(254);
}

void loop()
{
  // Step though 0-19 cycle long pulses for demo purposes 
  long start = micros();
  //for(int i=0; i < 150; i++)
  //{
    OSP_FIRE(); //160 = 10us

int pos;
int maxt = MAX + OFFSET;
int mint = MIN + OFFSET;
double mid = 191.62;
double amp = 23.30;
long start;

// Setup the one-shot pulse generator and initialize with a pulse width that is (cycles) clock counts long

