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

Button supports two instances in one app? (AEGHB-802) #402

Open
3 tasks done
mike-2020 opened this issue Sep 6, 2024 · 2 comments
Open
3 tasks done

Button supports two instances in one app? (AEGHB-802) #402

mike-2020 opened this issue Sep 6, 2024 · 2 comments
Labels

Comments

@mike-2020
Copy link

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

Many internal variables of "button" are defined as static global variables. So, want to confirm if I can create two button instances in my app? one is for GPIO button, one is for ADC button.

@github-actions github-actions bot changed the title Button supports two instances in one app? Button supports two instances in one app? (AEGHB-802) Sep 6, 2024
@lijunru-hub
Copy link
Contributor

you can create any number of button for any types

@mike-2020
Copy link
Author

In such case, multiple "button" instances share the same timer, right?

@leeebo leeebo added the button label Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants