projects
/
x300-pci
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use any gpio command
[x300-pci]
/
gpio.pl
diff --git
a/gpio.pl
b/gpio.pl
index
e1d8215
..
579d845
100755
(executable)
--- a/
gpio.pl
+++ b/
gpio.pl
@@
-96,6
+96,8
@@
sub cmd {
warn "# pin $pin ", $v;
$v ^= 1;
system "gpio -g write $pin $v";
+ } elsif ( $cmd =~ m/^gpio\s+(.+)/ ) {
+ system "gpio -g $1";
}
}