Hi all,

so I tried to do this wonderful thing to add a rotary encoder connected
to the gpio to control the volume. And... all my attempts failed. I read
the thread like millions times.
First of all mega noobs about command lines etc... but i did my best.

The material;
Raspberry pi A+
PiFi DAC+ v2.0 (set as Hifiberry DAC+ and works like a charm) > gpio 18
to 21 are used by the DAC.
A micro embedded electronic HAT which allowed to use 3 sets of all the
GPIO pins.
Everything is working and I have sound and all.
Rotary encoder KY040 : gnd to gnd , + to 3.3V, sw to 26, dt to 23 and
clk to 24

I created a script.sh in home/tc

Code:
--------------------
    #!/bin/sh
  
  # start pigpiod daemon
  
  pigpiod -t 0 -f -l -s 10
  
  # 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
  
  # This command for volume and play pause
  
  sbpd e,23,24,VOLU,2
  b,26,PAUS,2,0,STOP,500
--------------------


did the 
Code:
--------------------
    chmod 755 script.sh
--------------------


when I started my script no more sound.
So I rebbot and digged a little bit. When I started pigpiod > no sound
any more.
and I can't figure why

I started sbpd just to check and I have that
36431

Any help will be appreciated. 

Thank you for your time and making/maintaining picoreplayer


+-------------------------------------------------------------------+
|Filename: Capture d’écran 2021-12-12 182605.png                    |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=36431|
+-------------------------------------------------------------------+

------------------------------------------------------------------------
Themightybob's Profile: http://forums.slimdevices.com/member.php?userid=69977
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