Home of the Squeezebox™ & Transporter® network music players.
Page 18 of 18 FirstFirst ... 8161718
Results 171 to 175 of 175
  1. #171
    Junior Member
    Join Date
    Apr 2019
    Posts
    22
    Quote Originally Posted by paul- View Post
    Just pick some, the pins will be configured in the software.

    Page 102 is the power up configuration on the bcm chip. https://www.raspberrypi.org/document...eripherals.pdf

    The firmware can change this too......but,donĺt worry much. Stay away from the i2c pins or other interface pins used by your DAC
    Thank you for your reply, the link was helpful!

    Am I right that both pins should be pull-up? And not just the other.

  2. #172
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    1,770
    Yes, but as a mentioned, sbpd will do it for you.

    https://github.com/coolio107/Squeeze...c3/GPIO.c#L236
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  3. #173
    Junior Member
    Join Date
    Apr 2019
    Posts
    22
    Quote Originally Posted by paul- View Post
    Yes, but as a mentioned, sbpd will do it for you.

    https://github.com/coolio107/Squeeze...c3/GPIO.c#L236
    Hello,

    I downloaded pcp-spbd extension and added this to my user commands in the picoreplayer web gui: /usr/local/sbin/sbpd -v -d e,23,24,VOLM,1

    I have connected my encoder to physical pins 16 and 18 (and ground). However, nothing is happening when rotating the encoder.

    This is what I get when I run sbpd -v:

    Code:
    1557942917.0522 6 sbpd.c,282: Options parsing: Set verbose mode
    1557942917.0524 6 sbpd.c,471: Using builtin button configuration
    1557942917.0524 6 control.c,81: Adding Command PLAY: Fragment ["pause"]
    1557942917.0524 6 control.c,81: Adding Command VOL+: Fragment ["button","volup"]
    1557942917.0524 6 control.c,81: Adding Command VOL-: Fragment ["button","voldown"]
    1557942917.0525 6 control.c,81: Adding Command PREV: Fragment ["button","rew"]
    1557942917.0525 6 control.c,81: Adding Command NEXT: Fragment ["button","fwd"]
    1557942917.0525 6 control.c,81: Adding Command POWR: Fragment ["button","power"]
    1557942917.0525 6 GPIO.c,253: Initializing GPIO
    1557942917.0532 6 discovery.c,381: MAC address found: b8:27:xx:xx:5f:xx
    1557942917.0533 6 servercomm.c,176: Initializing CURL
    1557942917.0614 6 sbpd.c,237: Starting main loop polling
    1557942917.0618 6 discovery.c,234: Found server 1001A8C0. A new address
    1557942917.1627 6 discovery.c,345: discovery packet: port: 9000, name: piCorePlayer, uuid: c433a163-aa39-4b89-8c5b-5ade74bb5fc9
    1557942917.1628 6 discovery.c,130: Squeezebox control port found: 9000
    1557942917.1628 6 discovery.c,149: Server address found: 192.168.1.16
    Any suggestions?

    Thank you!
    Last edited by Jursi; 2019-05-15 at 11:07.

  4. #174
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    1,770
    Leave the ,1 off the end of the command.

    Also if you are running the command from user commands, you have to make sure to kill it before debugging. Debug everything from command line before starting it automatically.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  5. #175
    Junior Member
    Join Date
    Apr 2019
    Posts
    22
    Quote Originally Posted by paul- View Post
    Leave the ,1 off the end of the command.

    Also if you are running the command from user commands, you have to make sure to kill it before debugging. Debug everything from command line before starting it automatically.
    Thank you for the answer.

    Now it is working, I left the ,1 off the end of the command. I also had to change VOLM to VOLU as stated here: https://github.com/coolio107/Squeeze...aemon/issues/8

    Thanks!

    -Jursi

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •