Two switches in one node
Posted: Tue Dec 14, 2021 11:44 pm
I'm new to ESP-IDF would like to know how to add two keys on a single node, if anyone can share the files it would be a great help.
Code: Select all
button_handle_t btn_handle = iot_button_create(BUTTON_GPIO, BUTTON_ACTIVE_LEVEL);
if (btn_handle) {
/* Register a callback for a button tap (short press) event */
iot_button_set_evt_cb(btn_handle, BUTTON_CB_TAP, push_btn_cb, NULL);
}
Hi Lucas, I am having this problem, do you mind sharing the solution or posting/sending me a link of that thread with the 4 switches? Thankslucasdalmarco wrote: ↑Wed Dec 15, 2021 8:28 pmReading a thread I found an example with 4 switch, now I know the changes I need to make to get what I need.Thanks