diff options
Diffstat (limited to 'source/lang')
-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 |