Arduino-HomeKit-ESP32
Arduino-HomeKit-ESP32 copied to clipboard
ESP Button For Multiple outputs
How will i be able to connect multiple outputs with respective buttons? i've tried multiple ways. but it is not working properly. can you suggest the way ahead?
Use ESPButton.add(id, pin, pin_down_digital);
to add all your buttons and give them different id
. (You can use the pin
number as its id
simply)
When one of your buttons is clicked, you can konw which one is clicked by checking the id
in callback.