Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mad
concierge
Commits
b08e7261
Commit
b08e7261
authored
Aug 26, 2015
by
anthraxx
Browse files
also setup the dooropen gpio pins like the others
for explenation about the reason, see the previous commit message
parent
700e848e
Changes
2
Show whitespace changes
Inline
Side-by-side
dooropen
View file @
b08e7261
#!/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..."
...
...
setup
View file @
b08e7261
...
...
@@ -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/
*
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment