Disconnecting output pin
Posted: Sun Nov 26, 2023 12:02 am
Hi,
I'm using the following method to connect a pin to a signal:
esp_rom_gpio_connect_out_signal(pin, signal, false, false);
gpio_hal_iomux_func_sel(GPIO_PIN_MUX_REG[pin], PIN_FUNC_GPIO);
gpio_set_drive_capability((gpio_num_t)pin, (gpio_drive_cap_t)3);
I found it somewhere on the internet, can't remember where, but it works fine. The question is if it is possible to disconnect the pin from a signal and connecting another pin without restarting ESP32?
I tried searching the include folder for something like esp_rom_gpio_disconnect_out_signal, but it doesn't exist.
I'm using the following method to connect a pin to a signal:
esp_rom_gpio_connect_out_signal(pin, signal, false, false);
gpio_hal_iomux_func_sel(GPIO_PIN_MUX_REG[pin], PIN_FUNC_GPIO);
gpio_set_drive_capability((gpio_num_t)pin, (gpio_drive_cap_t)3);
I found it somewhere on the internet, can't remember where, but it works fine. The question is if it is possible to disconnect the pin from a signal and connecting another pin without restarting ESP32?
I tried searching the include folder for something like esp_rom_gpio_disconnect_out_signal, but it doesn't exist.