News:

LATEST RELEASE:  FPP 7.0 - Download from here - https://github.com/FalconChristmas/fpp/releases/tag/7.0

+-+-

+-User

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

+-Site Stats

Members
Total Members: 15932
Latest: pavit66767
New This Month: 21
New This Week: 1
New Today: 0
Stats
Total Posts: 129677
Total Topics: 15991
Most Online Today: 122
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 1
Guests: 84
Total: 85

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

Matrix audio issue by MikeKrebs
September 25, 2023, 09:11:08 PM

Music and models out of sync by MikeKrebs
September 25, 2023, 09:08:25 PM

Is the Pi 3B still supported on 7.1? by MikeKrebs
September 25, 2023, 08:50:49 PM

Anybody know what this is or who made it? by JonD
September 25, 2023, 05:23:21 AM

Differential expansion question by cjrobin27
September 24, 2023, 08:07:02 PM

ColorLight LEDVISION V9.0 compatibility? by kenoman742
September 24, 2023, 11:28:42 AM

Kulp K8Pi Issues by JonD
September 24, 2023, 10:00:18 AM

eseq speed issue by dkulp
September 24, 2023, 07:41:19 AM

F48v3 with a dead network jack by tbone321
September 23, 2023, 10:36:13 PM

Wifi Antenna by rayster
September 23, 2023, 05:07:40 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod