You can do blinking LEDs from console.
Before Using:
echo 109 > /sys/class/gpio/export echo 110 > /sys/class/gpio/export |
#!/bin/sh echo 109 > /sys/class/gpio/export echo 110 > /sys/class/gpio/export echo out > /sys/class/gpio/gpio109/direction
echo out > /sys/class/gpio/gpio110/direction
while [ $a -ne 0 ] do if [ $a -eq 1 ] then a=2 echo 1 > /sys/class/gpio/gpio109/value echo 0 > /sys/class/gpio/gpio110/value else a=1 echo 0 > /sys/class/gpio/gpio109/value echo 1 > /sys/class/gpio/gpio110/value fi sleep 1 done |
No comments:
Post a Comment