alf45tar / PedalinoMini

Wireless and Bluetooth MIDI Foot Controller
GNU General Public License v3.0
484 stars 84 forks source link

External button #366

Closed bobvc133 closed 1 year ago

bobvc133 commented 2 years ago

I want to connect two external buttons on ESP32_DOIT, one to control the configuration file switch, one to control the library switch, GPIO0 has been mapped to GPIO23 and can be used normally, and I also want to set an 8th button similar to GPIO35 of TTGO T DISPALY, which can be used GPIO2 interface, what code needs to be modified? Snipaste_2022-09-12_14-49-40

bobvc133 commented 1 year ago

I tested and found that when GPIO23 is mapped as the BOOT button, and the power on/off function is set, it can be powered off but cannot be powered on

alf45tar commented 1 year ago

Not completely clear your request. Let me try to reply.

Configuration file switch is not possible using pedals. This is not an available action. It is not so complex to implement. Do you need it?

What do you mean with library switch? Is it the same of bank switch? If yes, it is already implemented as an action and can be linked to any pedal.

What do yo mean with GPIO23 mapped as BOOT button? BOOT button is connected to GPIO00.

bobvc133 commented 1 year ago

What I mean is to ask what extra GPIOs can be used on the ESP32_DOIT development board. The TTGO development board has two onboard buttons, GPIO0 and GPIO35, which can be set, while the ESP32_DOIT development board has only one GPIO0 onboard button. I also need an external button. Snipaste_2022-09-28_23-19-55

bobvc133 commented 1 year ago

I just want to connect two external buttons, similar to the GPIO0 and GPIO35 onboard buttons of the TTGO development board, because the onboard buttons developed by ESP32_DOIT are EN and GPIO0, which cannot be used directly. I also don't want to connect external buttons via flying wires. Snipaste_2022-09-28_23-35-08

bobvc133 commented 1 year ago

This problem has been solved, modify the code to change GPIO0 to GPIO2, add a pull-down resistor, and then add GPIO23 port as pedal 8 Snipaste_2022-12-03_23-28-33