News:

Server migration complete, Welcome to version 2.1.1

+-+-

+-User

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+-Site Stats

Members
Total Members: 16398
Latest: rafelog927
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 132035
Total Topics: 16363
Most Online Today: 77
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 0
Guests: 58
Total: 58

Better single button control. Start, stop & next song

Started by dreiman, November 08, 2019, 09:52:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dreiman

I have been playing and I have improved my single button control script.  You can do 3 things with 1 button. 

Quick press to start a specified playlist.
Quick press to skip to the next song.
Long press to stop the playlist.

This is all done with one button. 

You hook up your button or switch in the usual way following the schematic which can be found in the help section on the GPIO input page.

Upload both Pressed.sh and Release.sh.

Create an even for each. Name them what you want, but I make the name of the events the same as the file name without .sh.

Under GPIO inputs, on the pin that you will be connecting your switch output to, enable it, and for falling, set it to Pressed, and set rising to Released.

Restart FPPD.

Connect switch.

ENJOY!!

Support FPP

+- Recent Topics

Kiosk mode touchscreen by Poporacer
February 19, 2024, 08:57:25 AM

reviving a bbb on an octoscroller by Poporacer
February 18, 2024, 11:25:33 AM

FPP After Hours Music Plugin has been updated by Poporacer
February 16, 2024, 03:40:05 PM

External WiFi Adapter and Antenna by JonB256
February 16, 2024, 08:25:13 AM

troubles getting UCS2904/TM1814 to work properly by ocupmoc
February 12, 2024, 11:15:53 AM

F16v4s keep freezing up by Zcarpenter
February 12, 2024, 08:02:46 AM

xLights in Ubuntu 22.04 by LedMutt
February 07, 2024, 08:48:43 PM

FPP 8 early alpha pre-release feedback by LedMutt
February 07, 2024, 08:39:23 PM

Why a custom/minimized bootstrap implementation in fpp? by jcross
February 07, 2024, 12:03:14 PM

AfterHours Plugin status from API or MQTT? by jcross
February 07, 2024, 10:12:32 AM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod