-
Sorry to trouble the community with what seems like it should be straight forward but I haven't been able to figure out what I'm missing. When the reentry_shot completes for the first time the LEDs associated with the show just turn off after 2 seconds. However, when the reentry_shot completes for the second time the LEDs associated with the show blink as expected. What am I missing here?
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
What exactly do you want it to do? You are resetting all the shots 2s after completing it with your reset_events:
If your flash_color is not showing when you want, it may because the priority is too low. You are targeting the same LEDs with multiple simultaneous shows. If multiple shows have the same priority, the latest one wins. Maybe this gives you want you want?
|
Beta Was this translation helpful? Give feedback.
-
Thanks for responding Thomas. I was off hiking/biking/skiing in the wilds
of southern Utah hence the delayed response.
How I want the three LEDs to work is the LEDs toggle on and off until all
three are lit. Once all three are lit, all three LEDs will blink for two
seconds and then all three will turn off.
Your priority fix makes the LEDs work as expected. Thank you.
There's more to the shot - eventually I hope to increase a playfield value
each time the reentry shot group is completed. But for now, is this -
targeting the same LEDs with multiple simultaneous shows and using priority
to determine which one controls the LEDs a good way to solve the problem?
P.S. If you haven't figured it out yet, I'm using Space Cadet as the basis
for learning MPF. The shot above is for the three reentry rollover lanes at
the top.
…On Tue, Apr 11, 2023 at 1:14 PM cobra18t ***@***.***> wrote:
What exactly do you want it to do?
You are resetting all the shots 2s after completing it with your
reset_events:
shot_groups:
reentry_shot:
shots: reentryL_shot, reentryM_shot, reentryR_shot
rotate_left_events: s_left_flipper_active
rotate_right_events: s_right_flipper_active
reset_events:
reentry_shot_lit_complete: 2s # mode_reentry_started
If your flash_color is not showing when you want, it may because the
priority is too low. You are targeting the same LEDs with multiple
simultaneous shows. If multiple shows have the same priority, the latest
one wins. Maybe this gives you want you want?
flash_yellow:
- duration: 2
shows:
flash_color:
show_tokens:
color: yellow
leds: l_re-entry_left, l_re-entry_middle, l_re-entry_right
speed: 4
priority: 10
—
Reply to this email directly, view it on GitHub
<#88 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXUPZ6HSZHZU4XEXDIQPITLXAWUQRANCNFSM6AAAAAAVQSMTOA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
.com>
|
Beta Was this translation helpful? Give feedback.
-
Thank you Thomas
…On Thu, Apr 20, 2023 at 6:20 PM cobra18t ***@***.***> wrote:
Yes, priority is usually how that is handled. You can also enable/disable
shots and that will affect whether the associated shows appear or not.
—
Reply to this email directly, view it on GitHub
<#88 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXUPZ6DC6KQZZREXXV45KW3XCHHF7ANCNFSM6AAAAAAVQSMTOA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
.com>
|
Beta Was this translation helpful? Give feedback.
What exactly do you want it to do?
You are resetting all the shots 2s after completing it with your reset_events:
If your flash_color is not showing when you want, it may because the priority is too low. You are targeting the same LEDs with multiple simultaneous shows. If multiple shows have the same priority, the latest one wins. Maybe this gives you want you want?