Ok I try to explain it more detailed.
My Setup is a Raspberry Pi 3 with JustBoom Amp HAT.
The rotary encoder was this one I think
https://shop.justboom.co/products/rotary-encoder-push-switch
I wired the encoder so that they worked with this command before I
updated to piCorePlayer 6 and the newest SBPD extension

Code:
--------------------
    sbpd e,23,24,VOLU,1 e,12,6,TRAC,1 b,7,POWR,2,0 b,5,PLAY,2,0
--------------------


I learned that with the updated sbpd extension there must be pigpio
installed too.
So I installed pigpio and now I use the following script that is started
via user command line in the tweaks menu:

Code:
--------------------
    #!/bin/sh
  
  # start pigpiod daemon
  pigpiod -t 0
  
  # give the daemon a moment to start up before issuing the sbpd command
  sleep 1
  
  # load uinput module, then set the permission to group writable, so you don't 
need to run sbpd with root permissions
  sudo modprobe uinput
  sudo chmod g+w /dev/uinput
  
  # issue the sbpd command
  sbpd e,23,24,VOLU,1 e,12,6,TRAC,1 b,7,POWR,2,0 b,5,PLAY,2,0
--------------------


The VOLU and TRAC commands are working fine but the POWR and the PLAY
command is not working.

This was working with the older version of SBPD and I did not change
anything physically at the encoders.
I hope this is enough information to identify the problem.


------------------------------------------------------------------------
luigi2000's Profile: http://forums.slimdevices.com/member.php?userid=68910
View this thread: http://forums.slimdevices.com/showthread.php?t=107001

_______________________________________________
diy mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/diy

Reply via email to