Can I use "Boot" button as a GPIO push button after program is loaded onto flash in ESP32?

nmtrivedi
Posts: 6
Joined: Wed Jan 04, 2017 2:10 pm

Can I use "Boot" button as a GPIO push button after program is loaded onto flash in ESP32?

Postby nmtrivedi » Wed Jan 04, 2017 2:21 pm

I am new to ESP32 platform. I have ESP32_Core_board_v2 which doesn't have any dedicated Push Button GPIO on board. I can attach external switch with the GPIO pins but I want to use "Boot" button as push button GPIO meaning if I press it while the program is running, it will call registered call back function and I can do the required stuff there. Is this possible with ESP32 board that I have?

ESP_Angus
Posts: 1649
Joined: Sun May 08, 2016 4:11 am

Re: Can I use "Boot" button as a GPIO push button after program is loaded onto flash in ESP32?

Postby ESP_Angus » Wed Jan 04, 2017 8:46 pm

Yes, BOOT is GPIO0 (HIGH when released, LOW when pressed) so you can use it like any other GPIO, and use the GPIO driver functions to connect an interrupt.

For a schematic of the ESP32 Core Board V2, see this thread.

Who is online

Users browsing this forum: Google [Bot] and 10 guests