This website works better with JavaScript.
Home
Help
Sign In
heuzef
/
WiringPi
mirror of
https://github.com/WiringPi/WiringPi.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
9
Wiki
Activity
Browse Source
Use the proper button alias BUTTON_PIN to the digitalRead instructions
pull/6/head
Nelson Neves
12 years ago
parent
2a6da9eefe
commit
924af874e0
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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 ;
Write
Preview
Loading…
Cancel
Save