Skip to content
This repository was archived by the owner on Sep 30, 2019. It is now read-only.

Commit 616263a

Browse files
committed
testuserbtn: switched from GPIO to evtest
1 parent 0ae0f43 commit 616263a

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

testuserbtn

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,2 @@
11
#!/bin/sh
2-
GPIO = "/sys/class/gpio"
3-
PIN = "4"
4-
echo "$PIN" > $GPIO/export
5-
echo "in" > $GPIO/gpio$PIN/direction
6-
echo "Press the USR button..."
7-
VAL = `cat $GPIO/gpio$PIN/value`
8-
while [ "$VAL" = "0" ]; do
9-
VAL = `cat $GPIO/gpio$PIN/value`
10-
done
11-
echo "Release the USR button..."
12-
while [ "$VAL" = "1" ]; do
13-
VAL = `cat $GPIO/gpio$PIN/value`
14-
done
15-
2+
evtest /dev/input/event0

0 commit comments

Comments
 (0)