Erik Sjödin wrote: > I have now looked in to the provided scripts(Button.sh). > > So for every GPIO in needed, if "exported" and direction defined: > echo "$PIN" > /sys/class/gpio/export > echo "in" > /sys/class/gpio/gpio$PIN/direction > > Is it then safe to assume that the value in > /sys/class/gpio/gpio$PIN/value will be automatically changed (0 or 1) if > button is pushed or released depending on the direction, if wired > correctly? > > In the amp_relay.sh it seems like the /sys/class/gpio/gpio$PIN/value is > manually changed by echo either 0 or 1 depending on the presense of a > media streams artist tag or not. I assume if the value if toggled to > on/1 the rasberry will start to apply power to AMP over its GPIO pin? > > BR > Erik
I will reply to my own comment: I found the following guides http://stackoverflow.com/questions/23650208/raspberry-pi-read-input-byte https://sites.google.com/site/semilleroadt/raspberry-pi-tutorials/gpio ------------------------------------------------------------------------ Erik Sjödin's Profile: http://forums.slimdevices.com/member.php?userid=64255 View this thread: http://forums.slimdevices.com/showthread.php?t=97803
_______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/unix
