Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2018-04-10 Thread paul-
Chill, We have an updated version ready. You can update by just running pcp-update pcp-sbpd.tcz run sbpd --help to take a look at the command line changes for buttons. (The encoder stuff should not have changed) PS. Why are you using the 5v power rail for your encoder. The rpi inputs are

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2018-04-10 Thread chill
Many thanks Paul I'll have a play with that this evening. Just had a read up on pull-up resistors. I assumed the encoder needed 5V power for the rotary part to function, but I guess that was a rookie mistake. Is that the 'resist' option in the sbpd command line? (I won't have access to my

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2018-04-10 Thread paul-
The resist function is how to set the internal input resistors. They either are set to Pull Up to 3.3v Pull Down to 0v or Off. Since your buttons connect the 0v line to the rpi input pin, you want to set the resistor to pull up, and then the "pressed" condition is 0 (This is the default setup

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2018-04-10 Thread chill
Right - next challenge (for you, not me, I just have to wait a couple of days and then run the new command :)) How would we go about adding extra commands to the capabilities of this tool, other than POWR, PLAY, PREV, NEXT, VOL+, VOL- ? I realise there aren't many others that make much sense

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2018-04-10 Thread chill
Yes, that's how I've got it now. /usr/local/sbin/sbpd -d -s e,12,16,VOLM,1 b,17,PLAY,2,0,POWR b,27,NEXT,2,0 b,22,PREV,2,0 b,4,POWR,2,0 b,23,VOL+,2,0 b,24,VOL-,2,0 The encoder is now connected to 3.3V rather than 5V. But I don't understand whether the pins it's using (12 and 16) should have

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2018-04-10 Thread paul-
There are way too many command options to list, we are not limited to the remote control commands, any CLI command can be made. Go to your web interface of your LMS instance, and then Press the help button on the lower left corner, then hit "Technical Information", then hit "The Logitech Media

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2018-04-10 Thread chill
paul- wrote: > What commands might you want? > Well now you ask, not many from that list actually: muting play.single arrow_up arrow_down arrow_left arrow_right knob_left knob_right knob_push - I could see the 'muting' option being useful occasionally, e.g. if the player is part of a synched

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2018-04-10 Thread paul-
The script option was meant for doing other things, that would be much slower to send commands to the server. But for commands like favorites that you might want to be variable, then the script is definitely the way to go. As for commands, here is the current list. I think you can map them