Light Rings and Stripes

35 views
Skip to first unread message

Greg Sealby

unread,
Apr 9, 2019, 12:27:16 PM4/9/19
to MPF Users
I have a few questions regarding light rings/stripes that I hope someone can point me to the right location in the documentation.  I've been reviewing these pages to see if these are functions I want to use, and I'm still not quite sure what these functions actually do and how to play them:

  1. Is there an overview/example of what these functions do?
  2. I am assuming that you configure a light ring or stripe and play this somehow using a light_player or show.  Does anyone have an example of this?  If this is not right, how do they play?  Are they auto?
  3. I see that there is a setting for number_template to set the address to the lights in the ring/stripe.  We are using PD-LED (http://docs.missionpinball.org/en/latest/hardware/multimorphic/leds.html)  which has a number for each board and RGB channel (eg. 1-22-23-24).  Would I configure the number_template as 1-{}-{}-{}?
  4. How do you set the color value for the light?  Do you set the default_on_color value in light_template

jabdoa

unread,
Apr 9, 2019, 8:50:48 PM4/9/19
to MPF Users
Those elementa are just helpers to add a lot of lights. They can be controlled normally using light player. Internally they create lights for you. I use them for long light strips because it saves a lot of typing. Rings are probably more of a toy currently.

> I see that there is a setting for number_template to set the address to the lights in the ring/stripe. We are using PD-LED (http://docs.missionpinball.org/en/latest/hardware/multimorphic/leds.html) which has a number for each board and RGB channel (eg. 1-22-23-24). Would I configure the number_template as 1-{}-{}-{}?

Good question. This probably just won't work for RGB on PD-LED. We can totally add support if you want it. Would be something like 1-{}-{+1}-{+2} or similar.

> How do you set the color value for the light? Do you set the default_on_color value in light_template

Usually using light player. The syntax above would be a RGB light. I'm not sure if we support single channel lights currently (like single red LEDs with 1-{}). We should also add that.

I guess overall those rings are rarely used because you can also just create 6 LEDs using copy and paste and layout them in the monitor. Strips are used for longer strips of serial LEDs because it saves a lot of typing. Makes sense? We are totally happy to add more features to it if you need them (or take contributions upstream).


Jan

Greg Sealby

unread,
Apr 10, 2019, 10:20:14 AM4/10/19
to MPF Users
Thanks Jan, appreciate the fast response.

I was thinking that these might provide some out of the box sequencing when played, which it not what it seems to do.  More on the config side of things.   I think I'll continue on with your suggestion and keep manually configuring with shows.
Reply all
Reply to author
Forward
0 new messages