wait a second
This commit is contained in:
parent
ab6ebb1a1a
commit
68a3a0ab34
1 changed files with 6 additions and 8 deletions
14
doormagic.sh
14
doormagic.sh
|
@ -5,27 +5,25 @@ if [ "$USER" == "open" ]; then
|
|||
echo "Linking to DDR Mondbasis..."
|
||||
echo "Asking the party for permission to unlock door...."
|
||||
echo "Waiting for Faxmodem..."
|
||||
echo "chanelling the force"
|
||||
echo "Chanelling the force..."
|
||||
echo "Opening door..."
|
||||
PIN=17 # pin
|
||||
PIN=17
|
||||
elif [ "$USER" == "close" ]; then
|
||||
echo "Connecting to space systems..."
|
||||
echo "Linking to DDR Mondbasis..."
|
||||
echo "Rickrolling folks on mondbasis..."
|
||||
echo "Rickrolling folks on Mondbasis..."
|
||||
echo "Locating Messlatte..."
|
||||
echo "Closing door..."
|
||||
PIN=22 # pin 15
|
||||
PIN=22
|
||||
else
|
||||
echo "You shall not pass!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
sudo raspi-gpio set $PIN op
|
||||
|
||||
sudo raspi-gpio set $PIN dl
|
||||
|
||||
sleep 1
|
||||
|
||||
sudo raspi-gpio set $PIN dh
|
||||
sudo raspi-gpio set $PIN ip
|
||||
|
||||
echo "Action completed on GPIO pin $PIN"
|
||||
echo "Action completed on GPIO pin $PIN, set back to input mode."
|
||||
|
|
Loading…
Add table
Reference in a new issue