Commit 0ec133cf authored by carbon's avatar carbon

enable LED blink

parent c3909d75
...@@ -15,9 +15,14 @@ case "$1" in ...@@ -15,9 +15,14 @@ case "$1" in
echo "Starting app..." echo "Starting app..."
if [ -f $SYSTEMPATH/blink.sh ]; then
. $SYSTEMPATH/blink.sh &
fi
if [ -f $SYSTEMPATH/rndis.sh ]; then if [ -f $SYSTEMPATH/rndis.sh ]; then
. $SYSTEMPATH/rndis.sh & . $SYSTEMPATH/rndis.sh &
fi fi
if [ -f $USERDATAPATH/auto.sh ]; then if [ -f $USERDATAPATH/auto.sh ]; then
usleep 30000 usleep 30000
. $USERDATAPATH/auto.sh & . $USERDATAPATH/auto.sh &
......
#!/bin/sh
LED_GPIO=/sys/class/gpio/gpio440
if test -d $LED_GPIO; then
echo "GPIO440 already exported"
else
echo 440 > /sys/class/gpio/export
fi
echo out > $LED_GPIO/direction
while true; do
echo 0 > $LED_GPIO/value
sleep 0.5
echo 1 > $LED_GPIO/value
sleep 0.5
done
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