Browse Source

Use the proper button alias BUTTON_PIN to the digitalRead instructions

pull/6/head
Nelson Neves 12 years ago
parent
commit
924af874e0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      examples/wfi.c

+ 1
- 1
examples/wfi.c View File

@@ -89,7 +89,7 @@ PI_THREAD (waitForIt)

// Wait for key to be released

while (digitalRead (0) == LOW)
while (digitalRead (BUTTON_PIN) == LOW)
delay (1) ;

debounceTime = millis () + DEBOUNCE_TIME ;


Loading…
Cancel
Save