also setup the dooropen gpio pins like the others

for explenation about the reason, see the previous commit message
This commit is contained in:
anthraxx 2015-08-26 22:33:43 +02:00
parent 700e848e9a
commit b08e72612d
2 changed files with 7 additions and 6 deletions

View file

@ -1,12 +1,7 @@
#!/bin/sh #!/bin/sh
echo "Initializing Door Systems..." 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 "Securing Communication to Door Systems..."
echo "out" > /sys/class/gpio/gpio17/direction
sleep 0.5
echo "Open Communication Channel..." echo "Open Communication Channel..."
sleep 0.5 sleep 0.5
echo "Opening Door..." echo "Opening Door..."

8
setup
View file

@ -8,9 +8,15 @@ chown -R root:gpio /sys/class/gpio/gpio27/*
chmod g+w /sys/class/gpio/gpio27/* chmod g+w /sys/class/gpio/gpio27/*
echo "Setting up gpio: lock" echo "Setting up gpio: lock"
echo "27" > /sys/class/gpio/unexport
echo "22" > /sys/class/gpio/unexport echo "22" > /sys/class/gpio/unexport
echo "22" > /sys/class/gpio/export echo "22" > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio22/direction echo "out" > /sys/class/gpio/gpio22/direction
chown -R root:gpio /sys/class/gpio/gpio22/* chown -R root:gpio /sys/class/gpio/gpio22/*
chmod g+w /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/*