summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--httpdocs/index.php6
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";
}
}