   return val;
 }
 
-void myDelay()
-{
-  for ( j = 0; j < 10000; j++ );
-}
-

/**
  *
  */
  
#define PROBE_COUNT 50
#define MICROS 1000000.
#define KORREKTUR 1.001341341

int min;
int max;

  }
  end = micros();
  freq = ( ( PROBE_COUNT * MICROS * KORREKTUR ) / ( end - start ) );
  if ( DEBUG ) 
  {
    Serial.print( min );
    Serial.print( " " );
    Serial.print( max );
    Serial.print( " " );
  }
  Serial.println( freq, 3 );
}

void period()
{
  while ( analogReadPlus() > 50 );
  while ( analogReadPlus() < 100 );
}

int analogReadPlus() 
