Compare commits
No commits in common. "712c827f966b1d7ca7b36d3c044111ff7a9b2ea3" and "22a3878e3c08a2055b2aab9667a9338a92835d94" have entirely different histories.
712c827f96
...
22a3878e3c
@ -1,18 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
PIN_ELIGHT=7
|
||||
|
||||
# init
|
||||
gpio mode $PIN_ELIGHT output
|
||||
|
||||
# command
|
||||
if [[ "$1" == "on" ]]; then
|
||||
gpio write $PIN_ELIGHT 1
|
||||
elif [[ "$1" == "off" ]]; then
|
||||
gpio write $PIN_ELIGHT 0
|
||||
elif [[ "$1" == "read" ]]; then
|
||||
gpio read $PIN_ELIGHT
|
||||
else
|
||||
gpio toggle $PIN_ELIGHT
|
||||
fi
|
||||
|
@ -1,18 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
PIN_PAPOWER=5
|
||||
|
||||
# init
|
||||
gpio mode $PIN_PAPOWER output
|
||||
|
||||
# command
|
||||
if [[ "$1" == "on" ]]; then
|
||||
gpio write $PIN_PAPOWER 1
|
||||
elif [[ "$1" == "off" ]]; then
|
||||
gpio write $PIN_PAPOWER 0
|
||||
elif [[ "$1" == "read" ]]; then
|
||||
gpio read $PIN_PAPOWER
|
||||
else
|
||||
gpio toggle $PIN_PAPOWER
|
||||
fi
|
||||
|
@ -1,20 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
PIN_SALIGHT=11
|
||||
|
||||
# init
|
||||
gpio mode $PIN_SALIGHT output
|
||||
|
||||
# command
|
||||
if [[ "$1" == "on" ]]; then
|
||||
gpio write $PIN_SALIGHT 1
|
||||
elif [[ "$1" == "off" ]]; then
|
||||
gpio write $PIN_SALIGHT 0
|
||||
elif [[ "$1" == "read" ]]; then
|
||||
gpio read $PIN_SALIGHT
|
||||
elif [[ "$1" == "blink" ]]; then
|
||||
gpio blink $PIN_SALIGHT $2 $3
|
||||
else
|
||||
gpio toggle $PIN_SALIGHT
|
||||
fi
|
||||
|
@ -1,4 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
uptime | head -n 1 | cut -f3 -d, | cut -f2 -d:
|
||||
|
Loading…
Reference in New Issue
Block a user