Skip to content

How to stop the effects auto cycling #88

Answered by xcalibur839
knotbeerdan asked this question in Q&A
Discussion options

You must be logged in to vote

If you check the HTML and JS on that page, you can see that there is currently no event handler triggered when the checked state of the checkboxes changes.

I submitted PR #89 last night to address this, please check it out and report back how it goes! Do note:

  • Disabling an effect that is currently running does not immediately stop the effect, it will continue to run until DEFAULT_EFFECT_INTERVAL has elapsed
  • If you only have one effect in AllEffects[] and you disable that effect, the LEDs will appear to freeze in whatever their final state was after DEFAULT_EFFECT_INTERVAL has elapsed. This does not happen when there are multiple effects in AllEffects[] and all of the effects are disabled…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@knotbeerdan
Comment options

Answer selected by knotbeerdan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants