also setup the dooropen gpio pins like the others
for explenation about the reason, see the previous commit message
This commit is contained in:
parent
700e848e9a
commit
b08e72612d
5
dooropen
5
dooropen
|
@ -1,12 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "Initializing Door Systems..."
|
||||
echo "17" > /sys/class/gpio/unexport
|
||||
echo "17" > /sys/class/gpio/export
|
||||
sleep 0.5
|
||||
echo "Securing Communication to Door Systems..."
|
||||
echo "out" > /sys/class/gpio/gpio17/direction
|
||||
sleep 0.5
|
||||
echo "Open Communication Channel..."
|
||||
sleep 0.5
|
||||
echo "Opening Door..."
|
||||
|
|
8
setup
8
setup
|
@ -8,9 +8,15 @@ chown -R root:gpio /sys/class/gpio/gpio27/*
|
|||
chmod g+w /sys/class/gpio/gpio27/*
|
||||
|
||||
echo "Setting up gpio: lock"
|
||||
echo "27" > /sys/class/gpio/unexport
|
||||
echo "22" > /sys/class/gpio/unexport
|
||||
echo "22" > /sys/class/gpio/export
|
||||
echo "out" > /sys/class/gpio/gpio22/direction
|
||||
chown -R root:gpio /sys/class/gpio/gpio22/*
|
||||
chmod g+w /sys/class/gpio/gpio22/*
|
||||
|
||||
echo "Setting up gpio: dooropen"
|
||||
echo "17" > /sys/class/gpio/unexport
|
||||
echo "17" > /sys/class/gpio/export
|
||||
echo "out" > /sys/class/gpio/gpio17/direction
|
||||
chown -R root:gpio /sys/class/gpio/gpio17/*
|
||||
chmod g+w /sys/class/gpio/gpio17/*
|
||||
|
|
Loading…
Reference in a new issue