Skip to content

How to handle physical buttons #617

Answered by Gerben1701
Gerben1701 asked this question in Q&A
Discussion options

You must be logged in to vote

So setting the DEFAULT_EFFECT_INTERVAL in globals.h doesn't set this value. I'm expecting it has to do with the order of things... at some point the SetInterval method of the EffectsManager is called, may be before setting the parameter... need to look into this more.
Anyway, re-setting it in the setup loop did the trick! No more auto-cycling through effects. Calling it a workaround and calling it a day (for now).
Button is working also, all is well in the kingdom.
As stated, running in DEMO mode, but main thing is having at least two effects in the effectslist (effects.cpp).
Enabled button 1 on pin 5 (globals.h).
Impression of my code below.

So me asking a question turned into some dear-…

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by Gerben1701
Comment options

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

Comment options

You must be logged in to vote
0 replies
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