Closed coffice12 closed 3 years ago
you defined GPIO 0 as your "BUTTON_PIN"?
@renandw The firmware already defines that. Not sure what is happening. @coffice12 Can you provide logs?
Hi guys,
I’m totally noob on this platform, so I will perhaps say something wrong but, I faced the same issue and it seems there is a typo in components > common > button > port.c
For the ESP-IDF part, which is used for ESP32 if I’m not wrong, the my_gpio_enable function set the GPIO as output instead of input.
I gave a try to add
gpio_set_direction(button_gpio, GPIO_MODE_INPUT);
directly in app_main of examples > esp32 > button > main > main.c and I’m now able the see logs when button pushed.
Hopes it can help…
搞定!谢谢你了!thins!!
connect io0 buttonand gnd
click button No response
What's wrong?