Jeff07971 wrote: > Hi Greg, > > Yes I posted the script that I use now (I did not write the original > though) it works fine for me.
This code toggles the active_low status of a GPIO (from the script). sudo sh -c 'echo "0" > /sys/class/gpio/gpio25/active_low' > The whole point of including this in squeezelite, as I see it, is NOT to > have to write a script ! I do not agree. The issue with the original script was it had to continually polls the LMS server for squeezelite's status. Now squeezelite is telling us when it changes status. A lot less comminication. It's like the kids saying "Are we there yet? Are we there yet? Are we there yet? Are we there yet?" Old polling method. Now dad says "We are here". New method. > I use the script I posted at the moment but many who use PCP may not be > able to and may not have the knowledge to transfer the script to PCP to > be run by the -S switch. I think Paul has already posted the suitable script. > Why on earth would you build hardware to do this when it can be done in > software ? Because we shouldn't plug directly into the GPIO ports. Yes, I know we do, but we shouldn't. We need to match voltage, restrict current and ideally fully isolate the signal. The engineer that designed your amp would have never imagined it would be directly connected to the GPIO pins of a CPU. Your buffer may have this option. > The easiest way to turn a power amp (or any other mains powered device) > is with an SSR (which has opto-isolation) but without inversion you can > not do this with the -G switch. See the the command above. If that doesn't work.... got to go....shopping! > Sorry If I sound miffed, I do appreciate what you guys do but the -G > switch at the moment is just daft. ------------------------------------------------------------------------ Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403 View this thread: http://forums.slimdevices.com/showthread.php?t=105018 _______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/unix
