button组件不能使用两个按钮?

Moderator: ESP_Bob

systemwuyanzhu
Posts: 2
Joined: Sat Aug 19, 2023 11:17 am

button组件不能使用两个按钮?

Postby systemwuyanzhu » Sat Aug 19, 2023 11:22 am

为什么button组件不能初始化两个按钮,或者说是有我不知道的操作手法?
espnow_example_main.c
(7.63 KiB) Downloaded 780 times
Attachments
espnow_example.h
(3.06 KiB) Downloaded 702 times

ESP_LiuH
Posts: 42
Joined: Fri Feb 10, 2023 7:20 am

Re: button组件不能使用两个按钮?

Postby ESP_LiuH » Wed Aug 23, 2023 11:34 am

是什么芯片?是在创建第二个 button 时就失败了? 还是可以成功创建,只是无法进入对应的回调函数?烦请提供下失败的 LOG

ESP_Junru
Posts: 49
Joined: Tue Jul 12, 2022 6:26 am

Re: button组件不能使用两个按钮?

Postby ESP_Junru » Wed Aug 23, 2023 11:43 am

button 组件可以创建多个 button,甚至同一个 gpio 也可以创建多个 button。麻烦提供一下 log

Who is online

Users browsing this forum: No registered users and 91 guests