Browse Source

Use the proper button alias BUTTON_PIN to the system instruction

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

+ 3
- 1
examples/wfi.c View File

@@ -112,7 +112,9 @@ void setup (void)
// Use the gpio program to initialise the hardware // Use the gpio program to initialise the hardware
// (This is the crude, but effective bit) // (This is the crude, but effective bit)


system ("gpio edge 0 falling") ;
char cmd[80] ;
sprintf (cmd, "gpio edge %d falling", BUTTON_PIN) ;
system (cmd) ;
system ("gpio export 17 out") ; system ("gpio export 17 out") ;
system ("gpio export 18 out") ; system ("gpio export 18 out") ;




Loading…
Cancel
Save