Framework (
A-Z)
Reference for Wiring version 1.0 Build 0100+ If you have a previous version, use the reference included with your software. If see any errors or have any comments, let us know.
Name |
delayMicroseconds() |
Examples |
int pin = 0;
int ledpin = 1;
void setup() {
pinMode(pin, INPUT);
pinMode(ledpin, OUTPUT);
}
void loop() {
if (pin == HIGH) {
digitalWrite(ledpin, HIGH);
} else {
digitalWrite(ledpin, LOW);
}
delayMicroseconds(250);
}
|
Description |
Forces the program to stop running for a specified time. Delay time is specified in millionths of a second. The function call delayMicroseconds(3000) will stop the program for three milli seconds or 0.003 seconds. |
Syntax |
delayMicroseconds(microseconds)
|
Parameters |
microseconds |
long: specified as microseconds (there are 1000000 microseconds in 1 second) |
|
Returns |
None |
Usage |
Application |
Related |
delay()
|
Updated on July 07, 2011 11:08:07pm PDT