Add switch on/off scripts for wittgenstein
This commit is contained in:
parent
f9285f8451
commit
518455b7de
2 changed files with 18 additions and 0 deletions
7
files/wittgenstein/switch-off.sh
Executable file
7
files/wittgenstein/switch-off.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
gpio write 2 0
|
||||
gpio write 3 0
|
||||
|
||||
gpio mode 2 tri
|
||||
gpio mode 3 tri
|
11
files/wittgenstein/switch-on.sh
Executable file
11
files/wittgenstein/switch-on.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
# INT
|
||||
gpio mode 0 tri
|
||||
|
||||
# Power
|
||||
gpio mode 2 out
|
||||
gpio mode 3 out
|
||||
|
||||
gpio write 2 1
|
||||
gpio write 3 1
|
Loading…
Add table
Reference in a new issue