aboutsummaryrefslogtreecommitdiffstats
path: root/source/lang/api/digitalwrite.rst
diff options
context:
space:
mode:
Diffstat (limited to 'source/lang/api/digitalwrite.rst')
-rw-r--r--source/lang/api/digitalwrite.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/lang/api/digitalwrite.rst b/source/lang/api/digitalwrite.rst
index 376cbc3..bae8db9 100644
--- a/source/lang/api/digitalwrite.rst
+++ b/source/lang/api/digitalwrite.rst
@@ -28,9 +28,10 @@ more slowly as an output than the other pins.
Example
-------
-The following example sets pin 13 to ``HIGH``, makes a one-second-long
-delay, sets the pin back to ``LOW``, and delays again, causing a
-blinking pattern (you could also use :ref:`lang-toggleled`)::
+The following example sets the built-in LED pin to ``HIGH``, makes a
+one-second-long delay, sets the pin back to ``LOW``, and delays again,
+causing a blinking pattern (you could also use
+:ref:`lang-toggleled`)::
void setup() {
pinMode(BOARD_LED_PIN, OUTPUT); // sets the digital pin as output