Breaking out of loop / while with encoder #271
Unanswered
kimbrussow
asked this question in
Q&A
Replies: 1 comment
-
|
Read here |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using LcdMenu to control processing (led light strip / FastLED)
one of my SubMenus has the following:
ITEM_COMMAND("Pattern 1", {
Pat1();
}), << calls the function:
void Pat1()
{
do{
for (int i = 0; i < NUM_LEDS; i++) {
// for testing loop Serial.println("in loop");
leds[i] = CRGB::Yellow;
FastLED.show();
delay(100);
blah blah blah...
} while("get something from the encoder here"!= true);
}
Question: how to "get something from the encoder" to exit the do loop??
Beta Was this translation helpful? Give feedback.
All reactions