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: 16643
Latest: chazzle22
New This Month: 7
New This Week: 2
New Today: 2
Stats
Total Posts: 133905
Total Topics: 16687
Most Online Today: 43
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 0
Guests: 37
Total: 37

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

Getting an error on Initial Set up of v 8.2 FPP by MikeKrebs
November 03, 2024, 07:58:06 PM

F48 Output Issues - Pixel Strand by dbarton02
November 03, 2024, 01:52:25 PM

F16 v5 invalid file by JonD
November 03, 2024, 11:08:00 AM

3D Printable X-Connect connectors by dreiman
November 03, 2024, 09:47:45 AM

Does the Falcon f16v4 support TM1814 RGBW LEDs? by btm231
November 02, 2024, 11:08:38 PM

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

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod