aboutsummaryrefslogtreecommitdiffstats
path: root/source/lang/api/digitalread.rst
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-09-22 10:46:36 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2011-09-23 16:26:40 -0400
commit33dd48cd16e51466188a28a37cc2a2b3b3f4305d (patch)
treeb63b6e6c13b4139b2dd91ac1388653816226b54c /source/lang/api/digitalread.rst
parentbde14c85ed1ddb10a47cded027c240bb7b91c996 (diff)
downloadlibrambutan-33dd48cd16e51466188a28a37cc2a2b3b3f4305d.tar.gz
librambutan-33dd48cd16e51466188a28a37cc2a2b3b3f4305d.zip
Fix digitalRead() example bug.
Thanks to forum user jumpnowdev. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'source/lang/api/digitalread.rst')
-rw-r--r--source/lang/api/digitalread.rst2
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