Script to install LCD 3.5 Shield MPD button control

Post Reply
User avatar
Fourdee
Posts: 298
Joined: Fri Apr 03, 2015 5:01 am
languages_spoken: english
ODROIDs: C1 / C2 / XU4 + Cloudshell.
Contact:

Script to install LCD 3.5 Shield MPD button control

Unread post by Fourdee » Tue Nov 22, 2016 9:28 pm

This script will: Requires:
  • MPD installed and working
  • C1/C2/XU4
  • Debian Jessie or higher
  • Ubuntu 16.xx
  • Any Debian based OS with SystemD
Keys are:
  • 1 = Next
  • 2 = Previous
  • 3 = Play/Pause
  • 4 = Toggle random
See the scripts sourcecode: http://dietpi.com/downloads/misc/commun ... PD_Keys.sh

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
How to install:

Code: Select all

sudo ./odroid_LCD35_MPD_Keys.sh
How to run the service:
Either reboot, or, run:

Code: Select all

sudo systemctl start odroid_lcd_mpd_keys
How to uninstall:

Code: Select all

sudo ./odroid_LCD35_MPD_Keys.sh -1
http://DietPi.com - Lightweight justice for your Odroid.
DietPi web hosting is powered by http://MyVirtualServer.com

User avatar
rooted
Posts: 6435
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Contact:

Re: Script to install LCD 3.5 Shield MPD button control

Unread post by rooted » Wed Nov 23, 2016 5:53 am

I don't use this but it's very cool, thanks for sharing it.

audiotechguy
Posts: 142
Joined: Sat Apr 09, 2016 2:49 pm
languages_spoken: english
Contact:

Re: Script to install LCD 3.5 Shield MPD button control

Unread post by audiotechguy » Thu Dec 28, 2017 7:33 pm

Fourdee wrote:This script will: Requires:
  • MPD installed and working
  • C1/C2/XU4
  • Debian Jessie or higher
  • Ubuntu 16.xx
  • Any Debian based OS with SystemD
Keys are:
  • 1 = Next
  • 2 = Previous
  • 3 = Play/Pause
  • 4 = Toggle random
See the scripts sourcecode: http://dietpi.com/downloads/misc/commun ... PD_Keys.sh

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
How to install:

Code: Select all

sudo ./odroid_LCD35_MPD_Keys.sh
How to run the service:
Either reboot, or, run:

Code: Select all

sudo systemctl start odroid_lcd_mpd_keys
How to uninstall:

Code: Select all

sudo ./odroid_LCD35_MPD_Keys.sh -1

What exactly can this be used for. Say I want to use that key set to cycle through different app windows? Is that possible


Sent from my iPhone using Tapatalk

User avatar
mad_ady
Posts: 5393
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Contact:

Re: Script to install LCD 3.5 Shield MPD button control

Unread post by mad_ady » Fri Dec 29, 2017 4:25 am

Yes, but you would need to customize it. I'd like to suggest my implementation of it with multiclick support: https://github.com/mad-ady/multibutton

Regarding switching between windows, I assume you mean open windows in a X11 environment that can be differentiated by title. If yes, you could use something like DISPLAY=:0 wmctrl -R "My Window Title
"
. See man wmctrl for details.

audiotechguy
Posts: 142
Joined: Sat Apr 09, 2016 2:49 pm
languages_spoken: english
Contact:

Re: Script to install LCD 3.5 Shield MPD button control

Unread post by audiotechguy » Sat Dec 15, 2018 9:46 am

mad_ady wrote:Yes, but you would need to customize it. I'd like to suggest my implementation of it with multiclick support: https://github.com/mad-ady/multibutton

Regarding switching between windows, I assume you mean open windows in a X11 environment that can be differentiated by title. If yes, you could use something like DISPLAY=:0 wmctrl -R "My Window Title
"
. See man wmctrl for details.
Ia it possible to let’s say use one button to open a audio analyzer window and the other level meter and other Cpu usage info,


Sent from my iPhone using Tapatalk

User avatar
mad_ady
Posts: 5393
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Contact:

Re: Script to install LCD 3.5 Shield MPD button control

Unread post by mad_ady » Sat Dec 15, 2018 3:20 pm

Yes, you can call whatever you want as action with DISPLAY=:0 graphical-program

audiotechguy
Posts: 142
Joined: Sat Apr 09, 2016 2:49 pm
languages_spoken: english
Contact:

Re: Script to install LCD 3.5 Shield MPD button control

Unread post by audiotechguy » Sun Dec 16, 2018 12:57 pm

mad_ady wrote:Yes, you can call whatever you want as action with DISPLAY=:0 graphical-program
Cool, as I experiment I will se how it all works, I don’t know how to create programs but I will use app windows that are already on the the device that for example a jack audio meter and make it run on the mini screen


Sent from my iPhone using Tapatalk

audiotechguy
Posts: 142
Joined: Sat Apr 09, 2016 2:49 pm
languages_spoken: english
Contact:

Re: Script to install LCD 3.5 Shield MPD button control

Unread post by audiotechguy » Sun Dec 16, 2018 7:22 pm

Are you experienced with using the screen and programming it, I feel like I will need a lot of help


Sent from my iPhone using Tapatalk

Post Reply

Return to “3.5inch LCD Shield”

Who is online

Users browsing this forum: No registered users and 1 guest