Greg Erskine wrote: > Hi Erik Sjödin, > > Here's some information to ponder. This is not a complete solution but I > think there is enough info to proceed with your project. > > regards > Greg
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 ------------------------------------------------------------------------ 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
