Pascal Hibon wrote: > Even if it's only muted, this will still be better than nothing. :-) > Side question: does piCorePlayer toggle GPIO22 only when the IQaudIO amp > is selected or do you always toggle GPIO22 no matter what amp is > selected? I'm asking because that would be very useful for switching > external devices too (for example with RPI's who are not fitted with a > "hat" amplifier) !
There are a couple of ways to do what you want. This solution uses the LMS cli to check the status of the player, and then toggle on/off a gpio pin. http://www.pinkfishmedia.net/forum/showthread.php?t=165465 (Look down the page, you will see a script that Greg posted) I also have a version of squeezelite that I compiled in the option to change a GPIO pin when the power status is changed......it also will toggle the power off, if you just pause the player for a certain amount of time. I also recently added an option to fire a shell script from squeezelite when the power status is changed. I did this for a user that needed to do something a little more complicated with GPIO. ------------------------------------------------------------------------ paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=105018 _______________________________________________ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix