News:

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

+-+-

+-User

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

+-Site Stats

Members
Total Members: 15487
Latest: cwr89
New This Month: 109
New This Week: 23
New Today: 4
Stats
Total Posts: 126972
Total Topics: 15575
Most Online Today: 82
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 6
Guests: 69
Total: 75

Test script (from GPIO)

Started by AAH, May 02, 2015, 06:10:10 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

AAH

Hi
  I have been working on a cape for the Pi that has 36 DC channels driven from the 2801 output using the expansion header pins 19 and 23. Also on it is a DS1307 real time clock with SDA on pin 3 and SCL on pin 5. The bit that I need a hand with is the test switch and test led that is on there. I have a test switch that connects to 0V (via a 1k resistor) on pin 12 and a led to indicate that it's in test mode on pin 11. I haven't actually used the inbuilt test functions of FPP yet as I only installed the latest build yesterday and haven't plugged onto my cape yet.
  Dave Pitts suggested to me while I was chatting with him on ACL chat that I should shout out here and someone could probably get me sorted pretty quick. I have no knowledge of Linux or any of the FPP coding/scripts etc so I need a full noobies guide.
  A bit of info on the board is at http://auschristmaslighting.com/forums/index.php?topic=7314.msg66271#msg66271 . I can paste the relevant bit of schematic if it helps.

Alan

AAH

#1
No replies so I will start the battle myself in the morning. Can anyone point a complete noob to some code examples and how to implement them on FPP. Using a GPIO pin to turn on and off the R,G,B chase mode is what I'm hoping to do. If there is a processing power limit then i may have to go with something else.

Alan

Dave Pitts was active in ACL chat tonight and he has put me onto the idea of using a test sequence and simply triggering that. That now seems like a plan that I can manage. He pointed me to http://falconchristmas.com/forum/index.php/topic,2356.msg25944.html#msg25944
How someone can still function at 5:20am has me amazed.

JonB256

David does not sleep.
Known fact.
Long time Falcon, FPP and xLights user

CaptainMurdoch

Sorry, this post must have fallen through the Tapatalk cracks and I missed it.  I haven't had a chance to reply to your PM from a couple days ago either.

I think that a 'test' sequence/playlist/event-script combination is the easiest way to implement this with the current FPP.  The new F16-B and F4-B capes for the BBB have a test button on them, so I have been thinking about how to handle that.  I think that we could come up with a solution that allowed the user to manually configure a 'test' GPIO input and FPP could monitor that GPIO input and start an internal test sequence.  Once we get a better test mode in the UI, then that would use the same support on the backend.

I think for now, you can have a script which checks to see if the test playlist is running.  if it is not, then send the command to FPP to start the playlist.  If it is running then send the command to stop the playlist.  There are example scripts in the script repository for these actions, you can download those and edit to do what you want.  The Script Repository is browseable under the "Content Setup" menu item in FPP.  Install a script, then you can view through the File Manager scripts tab or download and view/edit locally before (re)uploading.

If you want general help on setting up a GPIO triggered script, look at this thread http://falconchristmas.com/forum/index.php/topic,2356.msg25940.html#msg25940 for an example.

FPP does not currently support direct-attached WS2801 pixels on the BBB, the WiringPi library we use to drive these doesn't work on the BBB and we haven't implemented a replacement, so the WS2801 channel output type will be disabled on the BBB in FPP v1.5.  If you have working code to drive WS2801 pixels from a BBB, then I'll be happy to take a look at making it work in FPP.
-
Chris

Support FPP

+- Recent Topics

FPP connect by darylc
Today at 06:49:10 AM

Very unexpected error message by darylc
Today at 02:54:04 AM

I'm Stumped by saleencb
November 29, 2022, 11:58:52 PM

Raspberry PI 4 won't connect to WIFI by Poporacer
November 29, 2022, 10:45:10 PM

Make FPP turn off ? by Poporacer
November 29, 2022, 10:36:13 PM

FPP not releasing control to WLED when idle by Poporacer
November 29, 2022, 10:35:09 PM

Christmas 2022 Lights by ShadowLight8
November 29, 2022, 05:54:00 PM

FPP and projector by morrydavis
November 29, 2022, 05:42:57 PM

Remote Relay Control by MGHaff007
November 29, 2022, 05:42:01 PM

E1.31 data not getting to WLED controller by morrydavis
November 29, 2022, 05:41:06 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod