esp-iot-solution
esp-iot-solution copied to clipboard
Button supports two instances in one app? (AEGHB-802)
Answers checklist.
- [X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
- [X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
- [X] 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.
you can create any number of button for any types
In such case, multiple "button" instances share the same timer, right?
the polling of multiple buttons is handled through a single timer.