diff options
author | Marti Bolivar <mbolivar@mit.edu> | 2010-11-21 01:40:37 -0500 |
---|---|---|
committer | Marti Bolivar <mbolivar@mit.edu> | 2010-11-21 01:40:37 -0500 |
commit | c770a7f14404822c1164a2399079411a37808cfd (patch) | |
tree | 599188be6e3a5d105f9b8c4baba19d280b3d1058 /source/arduino/delaymicroseconds.rst | |
parent | 4b60b1cad5fe16895179d0bd8a5dc1e6e4c7564c (diff) | |
download | librambutan-c770a7f14404822c1164a2399079411a37808cfd.tar.gz librambutan-c770a7f14404822c1164a2399079411a37808cfd.zip |
updated serial bootloader spec; other improvements
Diffstat (limited to 'source/arduino/delaymicroseconds.rst')
-rw-r--r-- | source/arduino/delaymicroseconds.rst | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/arduino/delaymicroseconds.rst b/source/arduino/delaymicroseconds.rst index 10f3a1b..d1016f1 100644 --- a/source/arduino/delaymicroseconds.rst +++ b/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 |