Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buttons automatically scroll up (A btn event without pressing) #128

Open
martin072 opened this issue Nov 9, 2021 · 0 comments
Open

buttons automatically scroll up (A btn event without pressing) #128

martin072 opened this issue Nov 9, 2021 · 0 comments

Comments

@martin072
Copy link

I have a small sketch that uses the ez menu and buttons, with ez.buttons.poll()
it seems that the left btn, button A is randomly triggered without touching it..

any idea's how this can be?

This is part of the sketch

void loop (
while(true) {
    String btn = ez.buttons.poll();
    if (btn !="" ) {
      Serial.print("BTN Feedback: ");
      Serial.print(btn);
    }
    if (btn == "up") {
      Serial.println("BTN UP Pressed");
      tUP();
      break;
    }else if (btn == "settings") {
      menuSettings();
      break;
    } else if (btn == "down") {
      Serial.println("BTN DOWN Pressed");  <---- Triggered without pushing the button (nothing connected to the M5stack)
      tDOWN();
      break;
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant