diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-06-10 09:10:03 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2011-06-10 09:10:03 -0400 |
commit | df044ee0c3a8602ac3329a86ff6c62d3ec4568b0 (patch) | |
tree | 100dcf093a7596c2632d4b944a46c5f3bd271a38 /docs/source/lang/api/digitalwrite.rst | |
parent | 7374b7e9e264cd231f1e2bba44e776533938d41a (diff) | |
download | librambutan-df044ee0c3a8602ac3329a86ff6c62d3ec4568b0.tar.gz librambutan-df044ee0c3a8602ac3329a86ff6c62d3ec4568b0.zip |
Docs: Use "BOARD_LED_PIN" instead of "13".
Fix examples where pin 13 was used explicitly instead of
BOARD_LED_PIN. Also change an AVR-specific example in
docs/lang/cpp/booleanvariables.rst to Maple conventions.
Diffstat (limited to 'docs/source/lang/api/digitalwrite.rst')
-rw-r--r-- | docs/source/lang/api/digitalwrite.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/source/lang/api/digitalwrite.rst b/docs/source/lang/api/digitalwrite.rst index 376cbc3..bae8db9 100644 --- a/docs/source/lang/api/digitalwrite.rst +++ b/docs/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 |