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: 16639
Latest: Tacsavage
New This Month: 4
New This Week: 14
New Today: 4
Stats
Total Posts: 133884
Total Topics: 16685
Most Online Today: 118
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 2
Guests: 81
Total: 83

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

F16 v5 invalid file by JonD
Today at 06:51:40 AM

LED panel formatting issue ? by Unibits
November 01, 2024, 05:18:54 AM

Solution for USB Dongle not appearing in FPP for colorlight card by darylc
October 31, 2024, 07:17:43 PM

destroyed micro sd cards installing FPP 8.1 by jnealand
October 31, 2024, 02:12:37 PM

Pi not booting after Update to 8.2. by JonD
October 31, 2024, 06:19:35 AM

USB to serial converter cable by hakko808
October 30, 2024, 10:44:05 PM

Remotes going idle by ironsniof
October 30, 2024, 09:47:45 PM

Partially Solved - Sound Issue by Rabid_Child
October 30, 2024, 09:05:36 PM

FPP 8.2 Released! by MikeKrebs
October 30, 2024, 08:07:06 PM

How Do I upload Shaders to FPP by AAH
October 30, 2024, 03:28:56 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod