delayMicroSeconds was not declared in this scope

I received this error today. Postings I noted recommended putting “Arduino.h” in some of the include files headers, which I proceeded to do, however they appear to already have that line. Not sure where to proceed from here. Any pointers would be welcomed. FWIW code follows;

//Import Required libraries
#include <ClearPathMotorSD.h>
#include <ClearPathStepGen.h>
#include <Conceptinetics.h>

ClearPathMotorSD X;
ClearPathStepGen machine(&X);

void setup()
{  
X.attach(8,9,6,4);          //Direction/A is pin 8, Step/B is pin 9, Enable is pin 6, HLFB is pin 4
X.setMaxVel(1000);
X.setMaxAccel(10000);
X.enable();
delay(100);

}
void spin(float rpm)
{
double delay_one = (100000 / rpm) *0.2;
double delay_two = (100000 / rpm) * 0.8;
digitalWrite(9,HIGH); 
delayMicroSeconds(delay_one);
digitalWrite(9,LOW);
delayMicroSeconds(delay_two);
}

// the loop routine runs over and over again forever:
void loop()
{  
spin(2);
}

Well - as it turns out the reference from the Arduino website compiles just fine;

int outPin = 8;               // digital pin 8

void setup() {
  pinMode(outPin, OUTPUT);    // sets the digital pin as output
}

void loop() {
  digitalWrite(outPin, HIGH); // sets the pin on
  delayMicroseconds(50);      // pauses for 50 microseconds
  digitalWrite(outPin, LOW);  // sets the pin off
  delayMicroseconds(50);      // pauses for 50 microseconds
}

So it's in my code somewhere....I'll just keep simplifying to find the problem.

Humiliation! - it was miss-spelled! Sorry - if I could delete the post I would.

Good that you found it.

Please read https://forum.arduino.cc/index.php?topic=148850.0; it contains a section how you should post code so it looks like this:

//Import Required libraries
#include <ClearPathMotorSD.h>
#include <ClearPathStepGen.h>
#include <Conceptinetics.h>

ClearPathMotorSD X;
ClearPathStepGen machine(&X);

void setup()
{ 
X.attach(8,9,6,4);          //Direction/A is pin 8, Step/B is pin 9, Enable is pin 6, HLFB is pin 4
X.setMaxVel(1000);
X.setMaxAccel(10000);
X.enable();
delay(100);

}
void spin(float rpm)
{
double delay_one = (100000 / rpm) *0.2;
double delay_two = (100000 / rpm) * 0.8;
digitalWrite(9,HIGH);
delayMicroSeconds(delay_one);
digitalWrite(9,LOW);
delayMicroSeconds(delay_two);
}

// the loop routine runs over and over again forever:
void loop()
{ 
spin(2);
}

It makes it easier to read, no risk that the forum software mangles the code (did not happen now, might happen in the future) and is easier to copy.