aboutsummaryrefslogtreecommitdiffstats
path: root/docs/source/arduino/delaymicroseconds.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/source/arduino/delaymicroseconds.rst')
-rw-r--r--docs/source/arduino/delaymicroseconds.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/source/arduino/delaymicroseconds.rst b/docs/source/arduino/delaymicroseconds.rst
index 10f3a1b..d1016f1 100644
--- a/docs/source/arduino/delaymicroseconds.rst
+++ b/docs/source/arduino/delaymicroseconds.rst
@@ -21,18 +21,18 @@ Example
The following example configures pin number 8 to work as an output
pin, and sends a train of pulses with a period of roughly 100
microseconds::
-
+
int outPin = 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
+ delayMicroseconds(50); // pauses for 50 microseconds
digitalWrite(outPin, LOW); // sets the pin off
- delayMicroseconds(50); // pauses for 50 microseconds
+ delayMicroseconds(50); // pauses for 50 microseconds
}
@@ -62,4 +62,4 @@ See Also
-.. include:: cc-attribution.txt \ No newline at end of file
+.. include:: cc-attribution.txt