News:

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

+-+-

+-User

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

+-Site Stats

Members
Total Members: 16578
Latest: grantpatterson
New This Month: 16
New This Week: 7
New Today: 4
Stats
Total Posts: 133511
Total Topics: 16613
Most Online Today: 44
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 1
Guests: 43
Total: 44

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

F8-PB V1.2 by darylc
October 07, 2024, 10:07:09 PM

Composite analog video output on Pi 4 / FPP 8.1 by MikeKrebs
October 07, 2024, 08:48:24 PM

color issues by Poporacer
October 07, 2024, 07:27:35 PM

FPP 8.1 Released! by Santacarl
October 07, 2024, 09:52:08 AM

PiCap V2 Manual by Brenton
October 07, 2024, 06:44:44 AM

Moving from FPP 3.x to 5. Anything to look out for? by breese
October 07, 2024, 04:27:47 AM

Max Outputs per Port - Impact from Refresh Rate by darylc
October 06, 2024, 09:34:59 PM

F16V5 - SRx1v5 Channel 1 Blinking by PIC
October 06, 2024, 04:12:33 PM

FPP 8.0 and 8.1 Issues with HDMI Audio by computermoose44
October 06, 2024, 03:25:53 PM

Upgrading my Kulp controller and navigation buttons don't work by Poporacer
October 06, 2024, 10:21:50 AM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod