-
Notifications
You must be signed in to change notification settings - Fork 0
/
startupH0R.sh
executable file
·58 lines (50 loc) · 1.03 KB
/
startupH0R.sh
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
50
51
52
53
54
55
56
57
58
#!/bash/bin
### This is the script to start the hauer_on_repeat program on startup
### to add to startup routine, do:
### 1) sudo crontab -e
### 2) add line "@reboot <path-to-dir>/startupH0R.sh
cd /home/pi/hauer_on_repeat/build
### export GPIO ###
#button GPIO
gpio export 2 in
gpio export 3 in
gpio export 4 in
gpio export 17 in
gpio export 27 in
gpio export 22 in
gpio export 10 in
gpio export 9 in
gpio export 11 in
gpio export 5 in
gpio export 6 in
gpio export 13 in
#led GPIO
gpio export 19 out
gpio export 26 out
gpio export 18 out
gpio export 23 out
gpio export 24 out
gpio export 25 out
gpio export 8 out
gpio export 7 out
gpio export 12 out
gpio export 16 out
gpio export 20 out
gpio export 21 out
gpio -g write 19 1
gpio -g write 26 1
gpio -g write 18 1
gpio -g write 23 1
gpio -g write 24 1
gpio -g write 25 1
gpio -g write 8 1
gpio -g write 7 1
gpio -g write 12 1
gpio -g write 16 1
gpio -g write 20 1
gpio -g write 21 1
#while true
#do
firefox /home/pi/hauer_on_repeat/web/nr0.html &
/home/pi/hauer_on_repeat/build/hauer_on_repeat
#done