- Install a bash script which monitors the switch values from http://odroid.com/dokuwiki/doku.php?id= ... ing_keypad.
- Install MPC client to send the switch commands to MPD
- Create a service which launches the bash script during boot
- MPD installed and working
- C1/C2/XU4
- Debian Jessie or higher
- Ubuntu 16.xx
- Any Debian based OS with SystemD
- 1 = Next
- 2 = Previous
- 3 = Play/Pause
- 4 = Toggle random
Download script:
Code: Select all
wget http://dietpi.com/downloads/misc/community/odroid_LCD35_MPD_Keys.sh -O odroid_LCD35_MPD_Keys.sh
sudo chmod +x odroid_LCD35_MPD_Keys.sh
Code: Select all
sudo ./odroid_LCD35_MPD_Keys.sh
Either reboot, or, run:
Code: Select all
sudo systemctl start odroid_lcd_mpd_keys
Code: Select all
sudo ./odroid_LCD35_MPD_Keys.sh -1