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(44); // pauses for 44 microseconds
digitalWrite(outPin, LOW); // sets the pin off
delayMicroseconds(44); // pauses for 44 microseconds
You mean about the correct delay to use?
I would suggest you try both and check the generated frequency, then you'll see which one is wrong and probably gain some experience which will help you remember the proper period and toggle delay relation for a given frequency.