diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-09-22 10:46:36 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2011-09-23 16:26:40 -0400 |
commit | 33dd48cd16e51466188a28a37cc2a2b3b3f4305d (patch) | |
tree | b63b6e6c13b4139b2dd91ac1388653816226b54c | |
parent | bde14c85ed1ddb10a47cded027c240bb7b91c996 (diff) | |
download | librambutan-33dd48cd16e51466188a28a37cc2a2b3b3f4305d.tar.gz librambutan-33dd48cd16e51466188a28a37cc2a2b3b3f4305d.zip |
Fix digitalRead() example bug.
Thanks to forum user jumpnowdev.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
-rw-r--r-- | source/lang/api/digitalread.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lang/api/digitalread.rst b/source/lang/api/digitalread.rst index ccf4a4c..03ccd7f 100644 --- a/source/lang/api/digitalread.rst +++ b/source/lang/api/digitalread.rst @@ -31,7 +31,7 @@ The following example turns the LED on or off when the button is pressed:: void loop() { int val = digitalRead(BOARD_BUTTON_PIN); // reads the input pin - togglePin(BOARD_LED_PIN, val); + togglePin(BOARD_LED_PIN); } Arduino Compatibility |