News:

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

+-+-

+-User

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

+-Site Stats

Members
Total Members: 15733
Latest: aquila2heman
New This Month: 15
New This Week: 0
New Today: 0
Stats
Total Posts: 128972
Total Topics: 15886
Most Online Today: 153
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 1
Guests: 117
Total: 118

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

Weird latency over artnet by MikeKrebs
May 30, 2023, 09:50:12 PM

Discontinued P10 1/2 Scan Panel Issues by MikeKrebs
May 30, 2023, 09:40:30 PM

Fpp and xlights preview not working by bloojoop
May 30, 2023, 08:42:23 PM

EEEPROM Files by shanebou24
May 30, 2023, 12:42:24 PM

hanson pi hat problems wih DPi pixels. by MikeKrebs
May 29, 2023, 09:12:13 PM

Logic Shift a 12v Data Pin to Control 5v WS2812b with Optocoupler by brookedot
May 29, 2023, 11:49:51 AM

Sound Reactive in Real Time by dkulp
May 29, 2023, 10:34:07 AM

colorlight 5a-75b not working with raspberry pi4B fpp by Kensington Graves
May 29, 2023, 09:12:44 AM

Lack of communication from supplier by darylc
May 26, 2023, 11:13:11 AM

DIY BBB CAPE by shanebou24
May 26, 2023, 08:56:42 AM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod