M-H wrote:
> No, I standardise on the Generic/simple TI5102 DAC, as it will work with
> the 'phat beat' and 'phat dac' ,and this pirate audio board without
> issues, so I can swap boards and sd-cards
> ( If someone knows what the differences are , please enlighten me. )
>
> MH
Interesting that the board works with that selection too. That's
another option for Yatsushiro to try - my suggestion was aimed at making
sure he wasn't using the default 'Analog' option.
Have you got the buttons working yet? Here's a quick recap:
The sbpd_commands.cfg file isn't necessary if we're just using keyboard
commands to control jivelite, so:
Put this in /home/tc/sbpd-script.sh
Code:
--------------------
#!/bin/sh
# start pigpiod deamon
pigpiod -t 0
sleep 1
# load uinput module - required to be able to send keystrokes
# 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
# Other useful key commands
# KEY_h ( = home)
# button A
SW1=5 # GPIO pin
number
SH1=KEY:KEY_EQUAL # command for SHORT press ( =
volume up)
LO1=KEY:KEY_SPACE # command for LONG press (=
pause)
LMS1=250 # milliseconds for long
press
# button B
SW2=6
SH2=KEY:KEY_MINUS # ( = volume down)
LO2=KEY:KEY_Q # ( = power)
LMS2=250
# button X
SW3=16
SH3=KEY:KEY_UP
LO3=KEY:KEY_RIGHT
LMS3=250
# button Y
SW4=20
SH4=KEY:KEY_DOWN
#LO4=KEY:KEY_LEFT
LO4=KEY:KEY_ESC
LMS4=250
#CMD="sbpd -v -f /home/tc/sbpd_commands.cfg \
CMD="sbpd -v \
b,$SW1,$SH1,2,0,$LO1,$LMS1 \
b,$SW2,$SH2,2,0,$LO2,$LMS2 \
b,$SW3,$SH3,2,0,$LO3,$LMS3 \
b,$SW4,$SH4,2,0,$LO4,$LMS4"
echo $CMD
$CMD
--------------------
Make the script executable with:
Code:
--------------------
tc@piCorePlayer:~$ chmod +x sbpd-script.sh
--------------------
Install the pcp-sbpd.tcz extension.
Add this as a user command at the bottom of the 'tweaks' section in
pCP.
Code:
--------------------
/home/tc/sbpd-script.sh
--------------------
Backup and reboot.
------------------------------------------------------------------------
chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111502
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix