Created
August 23, 2015 15:46
-
-
Save patmandenver/340f6c548051a90ec805 to your computer and use it in GitHub Desktop.
Blink an LED on Intel Edison
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# My Blinky Code | |
# | |
############### | |
echo 49 > /sys/class/gpio/export | |
echo 214 > /sys/class/gpio/export | |
echo low > /sys/class/gpio/gpio214/direction | |
echo 256 > /sys/class/gpio/export | |
echo high > /sys/class/gpio/gpio256/direction | |
echo high > /sys/class/gpio/gpio214/direction | |
echo out > /sys/class/gpio/gpio49/direction | |
while : | |
do | |
echo 1 > /sys/class/gpio/gpio49/value | |
sleep 1 | |
echo 0 > /sys/class/gpio/gpio49/value | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment