diff options
author | Erich Eckner <git@eckner.net> | 2020-05-01 12:11:41 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-05-01 12:11:41 +0200 |
commit | 2420dfa09d20ad47a5d6593114d667694eee602d (patch) | |
tree | 32303d78d99bd41f12cb9f13d50c4a04322df269 | |
parent | 5313fd8d398b451e81f6e77ce87d23c3253a22f5 (diff) | |
download | raspi-lights-out-2420dfa09d20ad47a5d6593114d667694eee602d.tar.xz |
change to pins which are not used during bootup
-rw-r--r-- | httpdocs/index.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/httpdocs/index.php b/httpdocs/index.php index e8a97ad..e586dd0 100644 --- a/httpdocs/index.php +++ b/httpdocs/index.php @@ -1,6 +1,6 @@ <?php -$f = popen('/usr/bin/gpio read 7 2>&1', 'r'); +$f = popen('/usr/bin/gpio read 4 2>&1', 'r'); if ($f === false) { print 'Cannot access gpio'; die(); @@ -45,10 +45,10 @@ function push_it() { if (($duration > 0) && ($duration < 300)) { print 'pushing for ' . ($duration * 0.1) . ' seconds ... <br>' . "\n"; - shell_exec('/usr/bin/gpio write 9 1'); + shell_exec('/usr/bin/gpio write 3 1'); flush(); usleep(100000 * $duration); - shell_exec('/usr/bin/gpio write 9 0'); + shell_exec('/usr/bin/gpio write 3 0'); print '... done<br>' . "\n"; } } |