Commit b08e7261 authored by anthraxx's avatar anthraxx
Browse files

also setup the dooropen gpio pins like the others

for explenation about the reason, see the previous commit message
parent 700e848e
#!/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,9 +8,15 @@ chown -R root:gpio /sys/class/gpio/gpio27/* ...@@ -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/*
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment