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 |
loop() |
Examples |
void setup()
{
pinMode(WLED, OUTPUT);
}
void loop()
{
digitalWrite(WLED, HIGH);
delay(1000);
digitalWrite(WLED, LOW);
delay(1000);
}
|
Description |
Continuously executes the lines of code contained inside its block until the program is stopped. The loop() function is used in conjunction with setup(). The number of times loop() executes in each second may be controlled with the delay() and delayMicroseconds() functions. |
Syntax |
loop() {
statements
}
|
Parameters |
statements |
A sequence of statements to be executed over and over again |
|
Returns |
None |
Usage |
Application |
Related |
setup()
|
Updated on July 07, 2011 11:08:36pm PDT