-
Notifications
You must be signed in to change notification settings - Fork 0
/
utils.zip
49 lines (28 loc) · 10 KB
/
utils.zip
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
test-gpio-off.php 0000644 0001750 0001750 00000000305 12247370044 012055 0 ustar pi pi <?
echo 'Current script owner: ' . get_current_user() . "\n";
$pin = 17;
$file = sprintf("/sys/class/gpio/gpio%d/value", $pin);
printf("%s: off\n", $file);
file_put_contents($file, "0");
?>