riley did the soldering
This commit is contained in:
parent
68a3a0ab34
commit
5d6d38febb
1 changed files with 11 additions and 9 deletions
20
doormagic.sh
20
doormagic.sh
|
@ -5,25 +5,27 @@ 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=17 # pin 11
|
||||
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=22 # pin 15
|
||||
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, set back to input mode."
|
||||
sudo raspi-gpio set $PIN dl
|
||||
|
||||
sleep 1
|
||||
|
||||
sudo raspi-gpio set $PIN dh
|
||||
|
||||
echo "Action completed on GPIO pin $PIN"
|
Loading…
Add table
Reference in a new issue